[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#992746: plocate: FTBFS on Hurd/kFreeBSD: dependency "systemd" not found



Source: plocate
Version: 1.1.9-2
Severity: important
Tags: ftbfs
User: debian-hurd@lists.debian.org
Usertags: hurd hurd-i386
User: debian-bsd@lists.debian.org
Usertags: kfreebsd-i386 kfreebsd-amd64
X-Debbugs-CC: debian-hurd@lists.debian.org, debian-bsd@lists.debian.org

plocate FTBFS on Hurd/kFreeBSD due to depending on systemd's pkg-config
file, which is only available on Linux platforms. Since mlocate has
been removed from Debian, this leaves those platforms with only
findutils locate, which is a lot slower than even mlocate was.

https://buildd.debian.org/status/package.php?p=plocate

It looks like plocate only uses the systemd pkg-config file to install
systemd unit files and already supports building without systemd via
the install_systemd option. So meson.build should detect a host arch
kernel other than Linux and auto-disable install_systemd. Probably
meson.build should also not fail when systemd is not present, this will
make it more portable to distros that do not have systemd at all like
Alpine, OpenWRT, Void Linux etc. I note that some of these distros are
having to manually disable systemd instead of having that autodetected.
Some of these distros are also adding portability patches for musl.

https://en.wikipedia.org/wiki/Category:Linux_distributions_without_systemd
https://repology.org/project/plocate/packages
https://raw.githubusercontent.com/void-linux/void-packages/master/srcpkgs/plocate/template

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: