On Sat, 2022-11-12 at 16:38 +0100, Axel Burri wrote:

> Have a look at the deb package, and location looks fine for me:
> ./etc/btrbk/btrbk.conf.example

Well but my point is, that I think in Debian it shouldn't be there, but
rater in:
/usr/share/doc/examples/btrbk.conf  (no .example then).



> This is moved around by debhelper [1], the btrbk Makefile clearly
> moves 
> it to /etc/btrbk/btrbk.conf.example [2].

Yes, I think [2] is the reason why [1] puts it there, but it's not
really a configuration file, just an example for it.

Also it's registered as such:
# cat /var/lib/dpkg/info/btrbk.conffiles 
/etc/btrbk/btrbk.conf.example

However, the example itself is never a (dpkg-)conffile, if people copy
it to the real btrbk.conf than /etc/btrbk/btrbk.conf.example is still
none, and if they move it there it's even a missing (dpkg-)conffile.

I'm not a policy or debhelper expert (surely not), but I think this
should be installed via dh_installexamples(1).


If you should agree, be careful though, cause the file is now already
"registered" as (dpkg-)conffile (which means dpkg wants to handle it).

This often causes obsolete conffiles, when packages change from a
(dpkg-)conffile to a "normal" (non-dpkg-handled) configuration file (at
the same pathname).
But since this wouldn't be the case here, I guess no problems should
await.

Yet, it might be better if you'd test upgrading first on some test
system.



Thanks,
Chris.

Reply via email to