Thread View: linux.debian.bugs.dist
4 messages
4 total messages
Started by Valters Jansons
Tue, 24 Nov 2026 13:40
Bug#1155121: RFS: libloc/0.9.20-1 -- IP geolocation query library
Author: Valters Jansons
Date: Tue, 24 Nov 2026 13:40
Date: Tue, 24 Nov 2026 13:40
64 lines
4220 bytes
4220 bytes
Package: sponsorship-requests
Severity: normal
Dear mentors,
I am looking for a sponsor for my package "libloc":
* Package name : libloc
Version : 0.9.20-1
Upstream contact : Michael Tremer <michael.tremer@ipfire.org>
* URL : https://www.ipfire.org/location/
* License : FSFAP, CC-BY-SA-4, LGPL-2.1+, GPL-2+, Artistic-or-GPL, FSFULLR
* Vcs : https://salsa.debian.org/debian/libloc
Section : net
The source builds the following binary packages:
libloc1t64 - IP geolocation query library
libloc-dev - IP geolocation query library (development files)
location - IP geolocation query library (CLI utilities)
python3-location - IP geolocation query library (Python 3 bindings)
lua-location - IP geolocation query library (Lua bindings)
To access further information about this package, please visit the following URL:
https://mentors.debian.net/package/libloc/
Alternatively, you can download the package with 'dget' using this command:
dget -x https://mentors.debian.net/debian/pool/main/libl/libloc/libloc_0.9.20-1.dsc
Changes since the last upload:
libloc (0.9.20-1) unstable; urgency=medium
.
* New upstream version 0.9.20
- Drop all pre-existing d/patches
- Add LIBLOC_3 to libloc1t64.symbols
- Install all new manpages
* Cherry-pick new upstream patches
- Fix Lua < 5.4 compatibility check
- Reduce noise in Lua tests
- Avoid installing a cron job along systemd.timer
- Set Wants=/After=network-online.target for systemd.service
* Patch around a CPython 3.15.2 build failure (CPython issue 160719)
* Update python3-location dependencies to point at python3-psycopg and
pything3-psycopg-pool instead of python3-psycopg2
* Remove systemd build dependency
* Switch to asciidoc-base instead of asciidoc, and add docbook-xml as a
build dependency for cleaner builds
* Build Lua bindings for Lua 5.1 (LuaJIT) and Lua 5.3 alongside Lua 5.4
* Add lua-unit build dependency for Lua tests
* Drop dh-sequence-bash-completion build dependency due to pre-existing
upstream bash-completion installation logic
* Stop installing a symlink as part of libloc1t64, allowing libloc-database
package to manage the symlink pointing at its own installed file
* Build Python bindings for each Python version independently
* Build for all current architectures instead of a predefined list
* Revert manpage date override intended for binNMUs due to buildd changes
* Drop d/source/include-binaries and update d/upstream/metadata
Regards,
--
Valters Jansons
Bug#1155121: Bug#1147607: RFS: libloc/0.9.19-2 -- IP geolocation query library
Author: Valters Jansons
Date: Fri, 27 Nov 2026 05:20
Date: Fri, 27 Nov 2026 05:20
19 lines
2963 bytes
2963 bytes
> You are moving the symlink from libloc to libloc-database. I don't think > this will work reliably with prerm/postinst scripts, as there is no > ordering guarantee for which package is configured or > removed/deconfigured first. I think you need at least a Breaks/Replaces > relationship here: https://wiki.debian.org/PackageTransition I do not think that this package needs a Breaks/Replaces: As mentioned in #1155122 for libloc-database, the symlink was never formally owned by this package. Maintainer scripts added the symlink, so dpkg does not track this move. The libloc-database package will have a Breaks so that this package's older prerm does not trigger unnecessarily. I clarified this in the changelog and made a new upload in https://mentors.debian.net/package/libloc/ -- Valters Jansons
Bug#1155121: Bug#1147607: RFS: libloc/0.9.19-2 -- IP geolocation query library
Author: Tobias Frost
Date: Fri, 27 Nov 2026 18:30
Date: Fri, 27 Nov 2026 18:30
57 lines
4492 bytes
4492 bytes
Hi Valetes, On Fri, 27 Nov 2026 05:10:25 +0000 Valters Jansons <valters@vibesolutions.eu> wrote: > > You are moving the symlink from libloc to libloc-database. I don't think > > this will work reliably with prerm/postinst scripts, as there is no > > ordering guarantee for which package is configured or > > removed/deconfigured first. I think you need at least a Breaks/Replaces > > relationship here: https://wiki.debian.org/PackageTransition > > I do not think that this package needs a Breaks/Replaces: As mentioned in #1155122 for libloc-database, the symlink was never formally owned by this package. Maintainer scripts added the symlink, so dpkg does not track this move. > The libloc-database package will have a Breaks so that this package's older prerm does not trigger unnecessarily. > > I clarified this in the changelog and made a new upload in https://mentors.debian.net/package/libloc/ Thanks for adding Breaks:, but Breaks alone isn't enoug - it needs to be paired with Replaces:. Looking at https://wiki.debian.org/PackageTransition, moving /var/lib/location/database.db from libloc1t64 (Package A) to libloc- database (Package B) where libloc1t64 only has a Recommends: on the database matches Case #9 (Reorg). To handle partial upgrades and error unwinds cleanly, both packages need cross-declarations: libloc-database: Needs both Breaks: libloc1t64 (<< 0.9.19-3~) Replaces: libloc1t64 (<< 0.9.19-3~). libloc1t64: Needs Breaks: libloc-database (<< 0~20260822~0345-1~). Also, please check the postinst check in libloc-database: [ ! -e /var/lib/location/database.db ] evaluates to true if a dangling symlink is present, causing ln -s to fail with "File exists" and swallow the error via || true. Would a dangling symlink be a problem? (Also, out of curiosity: I assume the symlink is there so a local admin can swap in their own database without touching what's shipped under /usr/share/.... If that's not actually a use case you need to support, or if libloc could just point straight to /usr/share/..., or ship directly under /var/lib/... - dropping the symlink might save you a bunch of maintainer-script headaches.) Cheers, -- tobi
Bug#1155121: RFS: libloc/0.9.20-1 -- IP geolocation query library
Author: Valters Jansons
Date: Mon, 30 Nov 2026 18:10
Date: Mon, 30 Nov 2026 18:10
87 lines
5698 bytes
5698 bytes
Hi Tobias, > Thanks for adding Breaks:, but Breaks alone isn't enoug - it needs to > be paired with Replaces:. PackageTransition talks about moving files which are formally owned by packages. However, `dpkg -S /var/lib/location/database.db` shows no owner, as neither package has ever installed it directly as a file. Therefore I believe Replaces would be a no-op in our scenario. > To handle partial upgrades and error unwinds cleanly, both packages > need cross-declarations: In practice, when a new libloc1t64 is freshly installed with an old libloc-database, the symlink does not get created. On upgrade, the existing link stays. The fresh install is sub-optimal, but an update of libloc-database would then add the link. If libloc1t64 also Breaks the old libloc-database, then whenever only the old one is available, fresh installs skip the Recommends, and apt never adds it back later. I think it's cleaner to let the old one be installed and get upgraded. However, we need the Breaks in libloc-database to protect against old libloc1t64 prerm logic, which deletes the link on remove. Error unwinds are not affected either way: the Breaks only adds no-op deconfigure calls on the old libloc1t64, and I added abort-remove handling in the new libloc-database postinst. > Also, please check the postinst check in libloc-database: > [...] > Would a dangling symlink be a problem? No, a dangling symlink is not a concern in libloc-database. At postinst configure time, the intended link target is already unpacked so any dangling symlink shows that a user has made some custom changes. I updated the maintainer scripts to leave local modifications be, testing -L and no longer suppressing errors with || true. I also added a postinst in libloc1t64: Some dangling links may have been created in previous versions, so we should clean them up as a one-time operation. Thank you for surfacing this. > (Also, out of curiosity: I assume the symlink is there so a local admin > can swap in their own database without touching what's shipped under > /usr/share/.... If that's not actually a use case you need to support, > or if libloc could just point straight to /usr/share/..., or ship > directly under /var/lib/... - dropping the symlink might save you a > bunch of maintainer-script headaches.) The primary scenario is that `location update` (run daily by location-update.timer, enabled by default) pulls in the latest database over internet and renames its download over that /var/lib path. This is the default location for bindings and the CLI tooling. If we set the default to /usr/share, then the updater would also write to /usr/share. Shipping the database under /var/lib instead would make dpkg overwrite a newer local download on every libloc-database upgrade, and delete it on removal. To drop the symlink, we would need upstream to support reading from multiple locations: If the /var/lib file exists, read there, otherwise read from /usr/share. This is currently not supported. Effectively, what the symlink is for is: 1. The time until the download is done. It's a daily task, and the bindings/CLI would not trigger a download if the file is missing. 2. Installations where the timer never runs, such as when lua-location is installed on its own. 3. Hosts where the internet download cannot be done. They never get an updated download, so the Debian archive provides all files needed for a usable installation. I have uploaded new versions to mentors to inform dpkg that /var/lib/location is also used by libloc-database, and to clean up the maintainer script logic. If after my explanations, you still think that libloc-database should have a Replaces and libloc1t64 should have a Breaks, let me know and I will add them in the next upload. -- Valters Jansons
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads