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:
trizen -G php83
cd php83
grep -ri libsystemd
Edit: I found the problem there is this in the extracted source:
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:
prepare() {
sed -i 's/PHP_FPM_SYSTEMD\" \!\= \"no/PHP_FPM_SYSTEMD\" \=\= "\fuuuu/g' "php-8.3.7/sapi/fpm/config.m4"