Bug#997063: php8.0: FTBFS on hurd-i386

2021-11-11 Thread Andres Salomon

Control: clone 997063 -1

Control: reassign -1 php8.1

Control: retitle -1 php8.1: FTBFS on hurd-i386


This FTBFS occurs on php 8.1 as well, which is close to being released; 
cloning it.




Bug#997063: php8.0: FTBFS on hurd-i386

2021-10-23 Thread Svante Signell
Source: php8.0
Version: 8.0.8-1
Severity: important
Tags: patch
User: debian-h...@lists.debian.org
Usertags: hurd

Hi,

Currently php8.0 FTBFS on GNU/Hurd due to the option --with-fpm-
apparmor while apparmor is no longer built on non-linux. The patch,
debian_rules.diff, fixes this problem.

This patch has been used to successfully build php8.0 on GNU/Hurd
and GNU/Linux.

Thanks!




--- a/debian/rules	2021-07-01 17:25:46.0 +0200
+++ b/debian/rules	2021-10-22 23:28:17.0 +0200
@@ -124,6 +124,7 @@
 
 ifeq ($(DEB_HOST_ARCH_OS),linux)
   CONFIGURE_SYSTEMD := --with-fpm-systemd
+  CONFIGURE_APPARMOR := --with-fpm-apparmor
 endif
 
 # specify some options to our patch system
@@ -231,7 +232,7 @@
 		--prefix=/usr --enable-fpm --enable-cli --disable-cgi --disable-phpdbg \
 		--sysconfdir=/etc/php/$(PHP_NAME_VERSION)/fpm \
 		--with-fpm-user=www-data --with-fpm-group=www-data \
-		--with-fpm-acl --with-fpm-apparmor \
+		--with-fpm-acl $(CONFIGURE_APPARMOR) \
 		--with-config-file-path=/etc/php/$(PHP_NAME_VERSION)/fpm \
 		--with-config-file-scan-dir=/etc/php/$(PHP_NAME_VERSION)/fpm/conf.d \
 		$(COMMON_CONFIG) \