Bug 225633 - www/mod_php72: Installation from ports fails on "Staging" (also mod_php71)
Summary: www/mod_php72: Installation from ports fails on "Staging" (also mod_php71)
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jochen Neumeister
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-02 16:40 UTC by Alexander Shikov
Modified: 2018-12-01 12:20 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (tz)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Shikov 2018-02-02 16:40:30 UTC
Hello!

On fresh ports tree installation of mod_php72 fails on "Staging":
===>  Staging for mod_php72-7.2.1
===>   mod_php72-7.2.1 depends on file: /usr/local/sbin/apxs - found
===>   Generating temporary packing list
/bin/mkdir -p /usr/ports/www/mod_php72/work/stage/usr/local/libexec/apache24
install  -s -m 0644 /usr/ports/www/mod_php72/work/php-7.2.1/libs/libphp7.so  /usr/ports/www/mod_php72/work/stage/usr/local/libexec/apache24
install: /usr/ports/www/mod_php72/work/php-7.2.1/libs/libphp7.so: No such file or directory
*** Error code 71

Stop.
make[1]: stopped in /usr/ports/www/mod_php72
*** Error code 1

Stop.
make: stopped in /usr/ports/www/mod_php72

FreeBSD version is 11.1-RELEASE-p6 on amd64. 

mod_php72 flags are:
# This file is auto-generated by 'make config'.
# Options for mod_php72-7.2.1
_OPTIONS_READ=mod_php72-7.2.1
_FILE_COMPLETE_OPTIONS_LIST=AP2FILTER PHPDBG DEBUG DTRACE IPV6 LINKTHR ZTS
OPTIONS_FILE_SET+=AP2FILTER
OPTIONS_FILE_UNSET+=PHPDBG
OPTIONS_FILE_UNSET+=DEBUG
OPTIONS_FILE_SET+=DTRACE
OPTIONS_FILE_SET+=IPV6
OPTIONS_FILE_SET+=LINKTHR
OPTIONS_FILE_SET+=ZTS


# httpd -V
Server version: Apache/2.4.29 (FreeBSD)
Server built:   unknown
Server's Module Magic Number: 20120211:68
Server loaded:  APR 1.6.3, APR-UTIL 1.6.1
Compiled using: APR 1.6.3, APR-UTIL 1.6.1
Architecture:   64-bit
Server MPM:     
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
 -D APR_USE_FLOCK_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/usr/local"
 -D SUEXEC_BIN="/usr/local/bin/suexec"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="/var/run/apache_runtime_status"
 -D DEFAULT_ERRORLOG="/var/log/httpd-error.log"
 -D AP_TYPES_CONFIG_FILE="etc/apache24/mime.types"
 -D SERVER_CONFIG_FILE="etc/apache24/httpd.conf"
Comment 1 w.schwarzenfeld freebsd_triage 2018-02-06 10:20:22 UTC
OPTIONS_FILE_SET+=AP2FILTER causes the error.
Comment 2 w.schwarzenfeld freebsd_triage 2018-05-30 10:12:29 UTC
Does the erro after ports r471095 still exists?
Comment 3 w.schwarzenfeld freebsd_triage 2018-05-30 10:17:32 UTC
Seems so, also with mod_php71:

===>   mod_php71-7.1.18 depends on file: /usr/local/sbin/apxs - found
===>   Generating temporary packing list
/bin/mkdir -p /ram/usr/ports/www/mod_php71/work/stage/usr/local/libexec/apache24
install  -s -m 0644 /ram/usr/ports/www/mod_php71/work/php-7.1.18/libs/libphp7.so  /ram/usr/ports/www/mod_php71/work/stage/usr/local/libexec/apache24
install: /ram/usr/ports/www/mod_php71/work/php-7.1.18/libs/libphp7.so: No such file or directory
*** Error code 71

Stop.
make[1]: stopped in /usr/ports/www/mod_php71
*** Error code 1

Stop.
make: stopped in /usr/ports/www/mod_php71
Comment 4 w.schwarzenfeld freebsd_triage 2018-05-30 10:57:36 UTC
I tried it with mod_php71, result:
 OPTIONS_DEFINE=	AP2FILTER
 AP2FILTER_DESC=	Use Apache 2.x filter interface (experimental)
 OPTIONS_EXCLUDE=CGI CLI FPM EMBED
-
 .include "${MASTERDIR}/Makefile"
+OPTIONS_EXCLUDE=CGI CLI FPM EMBED

I moved .include before OPTIONS_EXCLUDE, this solves the problem with libphp7.so

but caused
pkg-static: mod_php71-7.1.18 conflicts with php71-7.1.18 (installs files into the same place).  Problematic file: /usr/local/etc/rc.d/php-fpm

So I doubled the OPTIONS_EXCLUDE line.

After this it installs fine.

Maybe, someone finds a better solution.
Comment 5 w.schwarzenfeld freebsd_triage 2018-05-30 11:14:52 UTC
No seems to work, but it does not!
Comment 6 w.schwarzenfeld freebsd_triage 2018-05-30 13:47:33 UTC
If I am right, this should work:

www/mod-php7*/Makefile:
i
- OPTIONS_EXCLUDE=CGI CLI FPM EMBED
+ AP2FILTER_EXCLUDE=CGI CLI FPM EMBED
.include "${MASTERDIR}/Makefile"
+ USE_RC_SUBR=
Comment 7 Jochen Neumeister freebsd_committer 2018-11-10 18:58:46 UTC
Is there any news here, or can I close here?