Source: php7.4
Version: 7.4.3-3
Severity: important
Tags: patch

Hi,

php7.4 does not compile anymore on non-Linux architectures.
The issue is the systemd integration unconditionally enabled, as
obviously does not work on non-Linux architectures (as systemd is
specific to Linux).

The fix is to enable the systemd integration only on Linux; patch
attached for it.

Thanks,
-- 
Pino
--- a/debian/rules
+++ b/debian/rules
@@ -128,6 +128,10 @@ else
   CONFIGURE_DTRACE_ARGS := --disable-dtrace
 endif
 
+ifeq ($(DEB_HOST_ARCH_OS),linux)
+  CONFIGURE_SYSTEMD := --with-fpm-systemd
+endif
+
 # specify some options to our patch system
 QUILT_DIFF_OPTS := -p
 QUILT_NO_DIFF_TIMESTAMPS := 1
@@ -237,7 +241,7 @@ export fpm_config = \
                
--with-config-file-scan-dir=/etc/php/$(PHP_NAME_VERSION)/fpm/conf.d \
                $(COMMON_CONFIG) \
                --with-libevent-dir=/usr \
-               --with-fpm-systemd
+               $(CONFIGURE_SYSTEMD)
 
 export phpdbg_config = \
                --prefix=/usr --enable-phpdbg --enable-cli --disable-cgi \

Reply via email to