[Pkg-samba-maint] Bug#1059187: samba: installs files into /lib/...
Chris Hofstaedtler
zeha at debian.org
Sun Dec 24 12:55:39 GMT 2023
On Sun, Dec 24, 2023 at 12:54:09PM +0300, Michael Tokarev wrote:
> Control: tag -1 + confirmed moreinfo
>
> 21.12.2023 03:09, Chris Hofstaedtler :
> > For the correct place of the systemd system units, you can ask:
> > pkg-config --variable=systemdsystemunitdir systemd
> > Provided you add systemd-dev to Build-Depends.
>
> /lib/systemd is currently hard-coded in samba's d/rules (and repeated
> in multiple places). It's easy to fix, but.
>
> The same samba package is being built on multiple distributions and
> releases, including ubuntu focal and jammy, debian bullseye and buster, -
> I provide sort of backports for these releases and this service has
> become quite popular. The suggested
>
> pkg-config --variable=systemdsystemunitdir systemd
>
> does not work on bullseye already.
This should work on bullseye, provided you Build-Depend: systemd.
> What's an alternative way to determine if we should use /lib or /usr/lib
> which works in older releases too - for systemd and for system libs like
> libnss*?
For systemd, please use systemd.pc.
For everything else, it is harder:
One option is to use dh_movetousr if available in debhelper, and
otherwise skip it (= on old suites).
For PAM, I'm guessing you can query libdir from pam.pc.
Note that there is no coordinated plan for PAM yet, so while I hope
pam.pc will, in the future, have a /usr/lib/... libdir, you cannot
exactly rely on it. However, because the paths are aliased, if you
move today it will still work.
For nsswitch, I have no useful answer. Maybe piggyback on something
else (pam?) even if that is technically wrong, or hardcode old suite
names?
Chris
More information about the Pkg-samba-maint
mailing list