From: Jochen Sprickerhof <libloc@jochen.sprickerhof.de>
To: location@lists.ipfire.org
Subject: Re: Splitting bundled database file out from auto-update flow
Date: Fri, 5 Jun 2026 16:07:19 +0200 [thread overview]
Message-ID: <aiLYF8NVQfXV8cd7@mpd> (raw)
In-Reply-To: <CA+sCei2wnmGDnkp4nv+UnSx9Fk3KhqzT=PashS5V7LwVgnDC8w@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1544 bytes --]
Hi Valters,
* Valters Jansons <valter.jansons@gmail.com> [2026-06-05 20:05]:
>Hello,
>
>Currently, I have a bit of a concern for package managers and the
>database file updates.
>
>The location tool wants to update /var/lib/location/database.db ---
>however, there is also logic to bundle this file in package managers.
>So, when there is a new package version, the package manager believes
>it should be in charge of the file. When it looks at the update, it
>sees that the "user" has made changes to the file. This results in a
>conflict, and potentially a confusing message stating that the user
>has made modifications to the file, while it has been automatic
>updates.
>
>It would be nice to split it into two distinct locations - one file
>being modified only by the package manager (to be used as a fallback),
>and the other file being the live dynamic auto-updated choice. Has
>there been any consideration for supporting such a set-up?
This should already be the case in Debian. There is an initial Database
shipped in libloc-database and installed into
/usr/share/libloc-location/location.db:
https://packages.debian.org/sid/all/libloc-database/filelist
And libloc1t64 package installs a symlink by default that is outside of
apt/dpkg control and can be replaces by an updated file:
https://sources.debian.org/src/libloc/0.9.18-3/debian/libloc1t64.postinst#L8
It is also cleaned up again on removal:
https://sources.debian.org/src/libloc/0.9.18-3/debian/libloc1t64.prerm
Cheers Jochen
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2026-06-05 14:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-05 11:05 Valters Jansons
2026-06-05 11:11 ` Michael Tremer
2026-06-05 11:35 ` Valters Jansons
2026-06-05 12:18 ` Michael Tremer
2026-06-05 14:07 ` Jochen Sprickerhof [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aiLYF8NVQfXV8cd7@mpd \
--to=libloc@jochen.sprickerhof.de \
--cc=location@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox