From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4gX3Cy1P4tz3323 for ; Fri, 05 Jun 2026 14:07:26 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [IPv6:2001:678:b28::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R12" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4gX3Cx1Vlyz2xHm for ; Fri, 05 Jun 2026 14:07:25 +0000 (UTC) Received: from mailproxy08.manitu.net (mailproxy08.manitu.net [217.11.48.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.manitu.net", Issuer "Sectigo Public Server Authentication CA DV R36" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4gX3Cv2F2qz2Y0 for ; Fri, 05 Jun 2026 14:07:23 +0000 (UTC) Authentication-Results: mail01.ipfire.org; dkim=pass header.d=jochen.sprickerhof.de header.s=manitu-webhosting header.b=sAxo6LDI; dmarc=none; spf=pass (mail01.ipfire.org: domain of libloc@jochen.sprickerhof.de designates 217.11.48.31 as permitted sender) smtp.mailfrom=libloc@jochen.sprickerhof.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1780668443; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=fQMRhKZO+1sX84fybHEOkTDdb5CBx+amfbs8Z0IvKiU=; b=KdbKz6O3V7i35oXS4WZ9S74BwCP4PM4M7vcUzcH/eOwhsghcNHrT6QSXDqfoB3edHR16k3 bjmzDZDQY19Ydrg4wYRPgTHpHalhxc01bvKFAehdcJM0igd9YJlcDHFWu5ZhZnVYcINvXP f/7fp9wbaLCOUgqFcSWrc5rjCgJJzIZdliuPSvveh5mzGLD9lIIlPtFclEjwTgcQkuPA7r K/TEbTsc48cJzhITSa4kK0zzRqf9Dy9WK+rMkiZmDjAO+wt1j7wET3hC9747+WRhQtbOXh QrPd5VbIfotMKEdMqpUzmtLpH3TpgPcn1qqm5qQ9XZi3i9ZtR5TYd67X5g7BjQ== ARC-Seal: i=1; a=rsa-sha256; d=lists.ipfire.org; s=202003rsa; cv=none; t=1780668443; b=cpt8sospmDhg6x/9B9nkPu0ldm9Z7eo2gVOwqKxkgZHV55wGwwSkfok8wJXnnbcmqENs4l iHfBKg5MdIhGdwIOogMr2WeYnX61n7RJJPyksGGZoLxD0iT0PpmI/2wjHoyI/4oN3yiZVk 7sO8P/mR7vwzZJ34U8XDUx2tpV1ya5Lmajpg7XAaLmp/KA58lA4Huz+ihstw6f8TgMer6e 8zyFph2Hp/BWMIN0pIL2e3h656CQcGSrTLp04KonSphKGcaDVhnKoym1v1zIME4xjsgHKq BUhI0N3IBIU2KIurdGVc0Mq1YZWddgljwDaXc7xFb5W0p380PUUAZ6OqfSqS4w== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=jochen.sprickerhof.de header.s=manitu-webhosting header.b=sAxo6LDI; dmarc=none; spf=pass (mail01.ipfire.org: domain of libloc@jochen.sprickerhof.de designates 217.11.48.31 as permitted sender) smtp.mailfrom=libloc@jochen.sprickerhof.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jochen.sprickerhof.de; s=manitu-webhosting; t=1780668444; bh=fQMRhKZO+1sX84fybHEOkTDdb5CBx+amfbs8Z0IvKiU=; h=Date:From:To:Subject:References:In-Reply-To; b=sAxo6LDI2D7mW/ng9dzgms2Q8dwO2QE4J+wAv2Po/U/QLWqMNyaGlwNda75cyyMDx +QKagqgbuQrSAYQzJf4ILAD9j81qA1vXCtCzGZ1pxAKO+kmSnISnbvnCEamshkIdwy 6RW9pjUiLL5WDnLkoMWjq0DHdleElHVtK5odgP3ijluW2Qcozl1w5t1Eu6Knx3YALJ eyPKMBo+wPtN7SPOlLfhAsR3z/y50wHFiUhQPiUHM+EJFLp6hC/UWHe7/7FKpj8wTP DedVYLTb9o3M7imDwai468k2IPgC17gn/w8Vg0odiVrZo3+Fs2yusHlRuHZtyiY+ze +CL4WgjpwFBiw== Date: Fri, 5 Jun 2026 16:07:19 +0200 From: Jochen Sprickerhof To: location@lists.ipfire.org Subject: Re: Splitting bundled database file out from auto-update flow Message-ID: Mail-Followup-To: location@lists.ipfire.org References: Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="krkBRl1ggn2vEt53" Content-Disposition: inline In-Reply-To: X-Rspamd-Server: mail01.haj.ipfire.org X-Rspamd-Queue-Id: 4gX3Cv2F2qz2Y0 X-Rspamd-Action: no action X-Spamd-Result: default: False [-5.82 / 11.00]; BAYES_HAM(-3.00)[100.00%]; SIGNED_PGP(-2.00)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_IN_DNSWL_MED(-0.20)[217.11.48.31:from]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_DKIM_ALLOW(-0.20)[jochen.sprickerhof.de:s=manitu-webhosting]; R_SPF_ALLOW(-0.20)[+ip4:217.11.48.0/24]; MX_GOOD(-0.01)[]; IP_REPUTATION_HAM(-0.01)[asn: 34240(0.00), country: DE(-0.01), ip: 217.11.48.31(0.00)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; ASN(0.00)[asn:34240, ipnet:217.11.48.0/20, country:DE]; RCVD_COUNT_ZERO(0.00)[0]; DKIM_REPUTATION(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[sprickerhof.de]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[jochen.sprickerhof.de:+] --krkBRl1ggn2vEt53 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Valters, * Valters Jansons [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=20 shipped in libloc-database and installed into=20 /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=20 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 --krkBRl1ggn2vEt53 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEc7KZy9TurdzAF+h6W//cwljmlDMFAmoi2BQACgkQW//cwljm lDMmSQ//RwO4s4Ku8pmBzfezn2PbmkPCHRAqnEFCJYG/359a07iQLcyk4DLuuE0E b6Cx0AbNkaPR4fpEfEPV14KhlL0nwBqP/T/sHz6ENX24Dhvr/RI7Uxn+o1qp0IaH Cjv/Lb76boT1AoaRo3dw1PTu7NtQfv/fvsGJIfDyzlTgtPKZ3+V3dxcIVY2ol9eA c+nuDxgGt/aP9lvK1QU3qWb2O3gjlauS+RffgIpWE2NBd232URbB8be2ON+cl9p3 Wzczf+eMRV5Vc+hZvxT28Yeki7HepvgOX/T8RNi9Qzob/z8jTrSHSu7/ZBAPs5yt +BtJM1g8Qiy2dhMvoov60IDmSspNF2vJTT5ImDaLJAty5vz5gtJwPl0ve96DHmBm 7NIRWBDcmAA2wSZAm/LNqHYyI77EL3/2jBj2LO4ekB+AwX3R21PI6L1NYp3aY6Sn Uno2X9cyYCjNNDsTn6eznTSVqRcM20Zznpy2oU5j7V7a4N9SXvCJVFUN6iKCEeDi IVqNCY8NXtHLNFS1D4E4Q2hr8VsETjuX0JSNYyC0mbCr6CB0AmQ6/tAGsM3un3CD qq4LhG32FFMBVKl+mFGemAbbYF9VwlpWeiTXtHS2VsAsuwlskbXUwvYqthgO7DHQ 8jcPqtXYVS2S8PaVx+mrpY0jgEqBUEVZpQBTqkz/HZhfTVwYpoQ= =56m8 -----END PGP SIGNATURE----- --krkBRl1ggn2vEt53--