I need to enable support for POSIX ACL in PHP-FPM. I can get ACL list with getfacl
and set them with setfacl -m
from shell so my kernel support it. I've downloaded sources of PHP7.0_7.0.19 with
$ cd /tmp/
$ apt-get source php7.0
and updated the debian/rules
file to enable ACL support:
$ cd php7.0-7.0.19/
$ vim debian/rules
and then around line 238 (export fpm_config = \
) I've added --with-fpm-acl=yes
so this config looks like:
export fpm_config = \
--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-config-file-path=/etc/php/$(PHP_NAME_VERSION)/fpm \
--with-config-file-scan-dir=/etc/php/$(PHP_NAME_VERSION)/fpm/conf.d \
--with-fpm-acl=yes \
$(COMMON_CONFIG) \
--with-libevent-dir=/usr \
$(CONFIGURE_SYSTEMD)
and i run
dpkg-buildpackage -us -uc | tee /tmp/php_build_log.log
but I get this error:
configure: exit 1
cd /tmp/php7.0-7.0.19
debian/rules:327: recipe for target 'override_dh_auto_configure-arch' failed
make[1]: Leaving directory '/tmp/php7.0-7.0.19'
debian/rules:275: recipe for target 'binary' failed