Skip to main content
Topic: AUR packages that are compiled don't build due to missing libsystemd dependency (Read 750 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

AUR packages that are compiled don't build due to missing libsystemd dependency

I don't know exactly what is wrong, but i'm pretty sure its either:
  • I'm doing something wrong and I have no idea what I am doing
  • The maintainers of the AUR packages doing something wrong,
  • The maintainers of artix-archlinux-support forgetting to put libsystemd as something it covers


This is a section of the log when I tried to install the swayfx package and some other packages that use meson:
Code: [Select]
Run-time dependency libsystemd found: NO (tried pkgconfig)

swayfx-0.3.2/meson.build:102:9: ERROR: Dependency "libsystemd" not found, tried pkgconfig

UPDATE: Thanks for helping me, the way I fixed it was go into the PKGBUILD and change libsystemd to libelogind

Re: AUR packages that are compiled don't build due to missing libsystemd dependency

Reply #1
I'm doing something wrong and I have no idea what I am doing
No offence intended but it's that one.

artix-archlinux-support does not include libsystemd. It's not supposed to.

The PKGBUILD specifically links to libsystemd
Code: [Select]
build() {
arch-meson \
-Dsd-bus-provider=libsystemd \
-Dwerror=false \
"${_pkgname}-${pkgver}" build
meson compile -C build
}
Sometimes that can be changed to use elogind instead. If so you would need to edit the PKGBUILD and build it.

Or you could get hold of the Arch libsystemd package and extract it, Put the required libs somewhere eg. /opt/systemd and use
Code: [Select]
LD_LIBRARY_PATH=/opt/systemd PROGRAMNAME
Or you could just copy the libs to /usr/lib.
Not an option if you want no trace of systemd on your system but if you don't care that's a solution.

But you can't just run a program that is linked to libsystemd by default under Artix.

Edit: Also check if the package you want is in one of the non standard Artix repo's *verse
https://wiki.artixlinux.org/Main/Repositories

Re: AUR packages that are compiled don't build due to missing libsystemd dependency

Reply #2
Alright, thanks! I was pretty sure that top one was the most likely, and now I know a little bit more. But I wonder, why doesn't artix-archlinux-support support libsystemd?

Re: AUR packages that are compiled don't build due to missing libsystemd dependency

Reply #3
Code: [Select]
configure: error: Package requirements (libsystemd >= 209) were not met:

Package 'libsystemd', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables SYSTEMD_CFLAGS
and SYSTEMD_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
==> ERROR: A failure occurred in build().

When building php83 I have that error.
How can I tell pkg-config to do not look for libsystemd?
There is no libsystemd in the source:
Code: [Select]
trizen -G php83
cd php83
grep -ri libsystemd

Edit: I found the problem there is this in the extracted source:
Code: [Select]
  if test "$PHP_FPM_SYSTEMD" != "no" ; then
    PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 209])

I tried to export the var but it did not work so I added to the PKGBUILD:
Code: [Select]
prepare() {
sed -i 's/PHP_FPM_SYSTEMD\" \!\= \"no/PHP_FPM_SYSTEMD\" \=\= "\fuuuu/g' "php-8.3.7/sapi/fpm/config.m4"