Bug 218304 - lang/php71 and ZTS option again - wrong installation directory
Summary: lang/php71 and ZTS option again - wrong installation directory
Status: Closed DUPLICATE of bug 201193
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Torsten Zuehlsdorff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-02 09:00 UTC by rainer
Modified: 2018-04-08 08:23 UTC (History)
1 user (show)

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


Attachments
poudriere build log file of php 7.1 (292.51 KB, text/plain)
2017-04-02 19:06 UTC, rainer
no flags Details
php-xml 7.1 build log file (20.12 KB, text/plain)
2017-04-02 19:06 UTC, rainer
no flags Details
php-xml-rpm 7.1 build log file (10.16 KB, text/plain)
2017-04-02 19:07 UTC, rainer
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description rainer 2017-04-02 09:00:15 UTC
When compiling php71 with the ZTS option (and apparently Apache 2.4 with EVENT_MPM default), the php71-xml extension gets built in a way that it installs its library into the wrong directory.

Other ports that depend on it then fail to build:



===>   Installing existing package /packages/All/php71-xml-7.1.3.txz
[11_0-amd64-2017Q2-php71-mariadb101-job-07] Installing php71-xml-7.1.3...
[11_0-amd64-2017Q2-php71-mariadb101-job-07] Extracting php71-xml-7.1.3: ........ done
Message from php71-xml-7.1.3:
****************************************************************************

The following line has been added to your /usr/local/etc/php/ext-20-xml.ini
configuration file to automatically load the installed extension:

extension=xml.so

****************************************************************************
===>   php71-xmlrpc-7.1.3 depends on file: /usr/local/lib/php/20160303-zts/xml.so - not found
*** Error code 1



root@bsd1-build-prod:~ # tar -Jtvf /usr/local/poudriere/data/packages/11_0-amd64-2017Q2-php71-mariadb101/.building/All/php71-xml-7.1.3.txz
-rw-r--r--  0 root   wheel    1345 Jan  1  1970 +COMPACT_MANIFEST
-rw-r--r--  0 root   wheel    2668 Jan  1  1970 +MANIFEST
-rw-r--r--  0 root   wheel     184 Apr  2 02:06 /usr/local/share/licenses/php71-xml-7.1.3/catalog.mk
-rw-r--r--  0 root   wheel      70 Apr  2 02:06 /usr/local/share/licenses/php71-xml-7.1.3/LICENSE
-rw-r--r--  0 root   wheel    3218 Apr  2 02:06 /usr/local/share/licenses/php71-xml-7.1.3/PHP301
-rw-r--r--  0 root   wheel   52560 Apr  2 02:06 /usr/local/lib/php/20160303/xml.so
-rw-r--r--  0 root   wheel    4640 Apr  2 02:06 /usr/local/include/php/ext/xml/php_xml.h
-rw-r--r--  0 root   wheel     313 Apr  2 02:06 /usr/local/include/php/ext/xml/config.h
-rw-r--r--  0 root   wheel    6493 Apr  2 02:06 /usr/local/include/php/ext/xml/expat_compat.h
-rw-r--r--  0 root   wheel      17 Apr  2 02:06 /usr/local/etc/php/ext-20-xml.ini
root@bsd1-build-prod:~ # cat /usr/local/etc/poudriere.d/
10_3-amd64-2016Q4-php56-mariadb101-make.conf  10_3-amd64-2017Q1-php56-mariadb101-options/   11_0-amd64-2016Q4-php70-mariadb101-make.conf  11_0-amd64-2017Q1-php70-mariadb101-make.conf  11_0-amd64-2017Q2-php71-mariadb101-options/   hooks/                                        
10_3-amd64-2016Q4-php56-mariadb101-options/   10_3-amd64-2017Q1-php56-mariadb101-pkglist    11_0-amd64-2016Q4-php70-mariadb101-options/   11_0-amd64-2017Q1-php70-mariadb101-options/   11_0-amd64-2017Q2-php71-mariadb101-pkglist    jails/                                        
10_3-amd64-2016Q4-php56-mariadb101-pkglist    10_3-amd64-php56-mariadb101-options/          11_0-amd64-2016Q4-php70-mariadb101-pkglist    11_0-amd64-2017Q1-php70-mariadb101-pkglist    11_0-amd64-php70-mariadb101-options/          ports/                                        
10_3-amd64-2017Q1-php56-mariadb101-make.conf  10amd64-make.conf                             11_0-amd64-2016Q4-pkglist                     11_0-amd64-2017Q2-php71-mariadb101-make.conf  11_0-amd64-php71-mariadb101-options/          
root@bsd1-build-prod:~ # cat /usr/local/etc/poudriere.d/11_0-amd64-php7
11_0-amd64-php70-mariadb101-options/ 11_0-amd64-php71-mariadb101-options/ 
root@bsd1-build-prod:~ # cat /usr/local/etc/poudriere.d/11_0-amd64-php71-mariadb101-options/lang_php71
lang_php71-extensions/ lang_php71/            
root@bsd1-build-prod:~ # cat /usr/local/etc/poudriere.d/11_0-amd64-php71-mariadb101-options/lang_php71/options 
# This file is auto-generated by 'make config'.
# Options for php71-7.1.3
_OPTIONS_READ=php71-7.1.3
_FILE_COMPLETE_OPTIONS_LIST=CLI CGI FPM EMBED PHPDBG DEBUG DTRACE IPV6 LINKTHR ZTS
OPTIONS_FILE_SET+=CLI
OPTIONS_FILE_SET+=CGI
OPTIONS_FILE_SET+=FPM
OPTIONS_FILE_UNSET+=EMBED
OPTIONS_FILE_UNSET+=PHPDBG
OPTIONS_FILE_UNSET+=DEBUG
OPTIONS_FILE_SET+=DTRACE
OPTIONS_FILE_SET+=IPV6
OPTIONS_FILE_SET+=LINKTHR
OPTIONS_FILE_SET+=ZTS


This has happened a few times before...

I'm using 2017Q2 on 11.0 AMD64
Comment 1 rainer 2017-04-02 19:06:10 UTC
Created attachment 181406 [details]
poudriere build log file of php 7.1
Comment 2 rainer 2017-04-02 19:06:55 UTC
Created attachment 181407 [details]
php-xml 7.1 build log file
Comment 3 rainer 2017-04-02 19:07:32 UTC
Created attachment 181408 [details]
php-xml-rpm 7.1 build log file
Comment 4 rainer 2017-04-21 06:20:55 UTC
Unfortunately not fixed by recent update to 7.1.4
Comment 5 Bernard Spil freebsd_committer freebsd_triage 2018-04-08 08:23:44 UTC
Marking this as a duplicate of Bug 201193 - Mk/bsd.php.mk setting incorrect PHP_EXT_DIR

*** This bug has been marked as a duplicate of bug 201193 ***