Open marcosfrm opened 3 years ago
@marcosfrm Some things to say, in no particular order:
/lib
is a symlink to /usr/lib
. Ubuntu is a Debian fork, but this could be an Ubuntu-ism. I forget what it is on Ubuntu 18.04, but Ubuntu 18.04's systemd integration was "early" (better than 16.04 but still not as well-refined as 20.04)/lib/systemd/system
, however:/lib
vs. /usr/lib
systemd services in this recent thread with some Linux kernel developers: https://groups.google.com/g/linux.debian.devel/c/XCg-o11qU_I -- if you read it in full, you will see it really doesn't matter and they conclude /usr/lib
is the ideal place (also be sure to look closely at the official systemd documentation I linked)ls -l /lib
and see if it's an actual directory rather than a symlink. I suspect it's a symlinkTL;DR -- At the end of the day it probably doesn't matter. But changing it to /lib
would work on Ubuntu (ends up going into /usr/lib
anyway due to symlink) and Debian (undetermined). No idea for Arch, Mint, nix, AlmaLinux, Amazon Linux 2, etc. etc. (again, see my above comment about distros patching).
Hope this helps, and hopefully can resolve your concerns, thus this ticket.
b2d1098715b8ed27bb8bade026a11d549dca5533 changed LIBDIR to
/usr/lib
(for systemd service file), default in the RPM world (Fedora/RH, SUSE, Mageia). But I forgot about the Debian packaging. AFAIK Debian is still using/lib
, right?Can anyone with expertise in Debian packaging adjust debian/rules if necessary? I think
export LIBDIR=/lib
is enough, please take a look.Thanks.