🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #6454

Bug#1155121: Bug#1147607: RFS: libloc/0.9.19-2 -- IP geolocation query library

#6454
From: Tobias Frost
Date: Fri, 27 Nov 2026 18:30
57 lines
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
Technical Details
Message-ID: <O48RP-evIy-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!news.imp.ch!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
References: <NCXU6-gZwN-1@gated-at.bofh.it> <O3PvQ-el13-3@gated-at.bofh.it> <O3Wxj-ep9m-5@gated-at.bofh.it> <O2YUx-dSNk-1@gated-at.bofh.it> <O3Wxj-ep9m-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!news.imp.ch!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Tobias Frost <tobi@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1155121: Bug#1147607: RFS: libloc/0.9.19-2 -- IP geolocation query library
Date: Fri, 27 Nov 2026 19:30:01 +0100
Message-ID: <O48RP-evIy-3@gated-at.bofh.it>
References: <NCXU6-gZwN-1@gated-at.bofh.it> <O3PvQ-el13-3@gated-at.bofh.it> <O3Wxj-ep9m-5@gated-at.bofh.it> <O2YUx-dSNk-1@gated-at.bofh.it> <O3Wxj-ep9m-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Nov 27 18:23:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Tobias Frost <tobi@debian.org>, 1155121@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: package-sponsorship-requests@lists.debian.org
X-Debian-Pr-Message: followup 1155121
X-Debian-Pr-Package: sponsorship-requests
X-Debian-Pr-Keywords: moreinfo
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.62.1-4 
MIME-Version: 1.0
X-Debian-User: tobi
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005432
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 57
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 27 Nov 2026 19:21:01 +0100
X-Original-Message-ID: <a58cfe5a0d20564d2c24f3132970e7fd03686de3.camel@debian.org>
X-Original-References: <SOL53jNPzaDJFKAW86AZ2TJNYHeKrzdd_um6FpZnk3iCIqTAUngpfquS9NH59qVn8yduJ9pCADerQR-ewKveR6VUVulY6fJeoVyyCweQ89I=@vibesolutions.eu> <awinbgWG9Vs9pqG2@isildor2.loewenhoehle.ip> <N1KrcL7TRRciFdgSsQmcfF2kVtPkYhG25zpga8DweGK11JoexEZB3UxKkTdS8n_FaXE3d8hnVXsSEJmSdhUuAVfnLV97X3X5klSoEt8ck-8=@vibesolutions.eu> <179552742620.1445.2112215747229139906.reportbug@VT14-G5.localdomain> <N1KrcL7TRRciFdgSsQmcfF2kVtPkYhG25zpga8DweGK11JoexEZB3UxKkTdS8n_FaXE3d8hnVXsSEJmSdhUuAVfnLV97X3X5klSoEt8ck-8=@vibesolutions.eu>