[Bug 214166] The php "use" feature does not properly register dependency for mod_php 7

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 3 13:21:00 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214166

            Bug ID: 214166
           Summary: The php "use" feature does not properly register
                    dependency for mod_php 7
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr at FreeBSD.org
          Reporter: vivek at khera.org
                CC: freebsd-ports-bugs at FreeBSD.org

With DEFAULT_VERSIONS having php=7.0 set in make.conf, and a port specifies
WANT_PHP_MOD=yes, the port build will look for libphp5.so and be unable to
satisfy the dependency after installing the specified port, mod_php70. It
should look for libphp7.so instead.

The error comes from line 191 of Mk/Uses/php.mk where it hard-codes libphp5.so
as the file to find, yet uses ${MOD_PHP_PORT} to specify the dependency.  This
variable is set to www/mod_php${PHP_VER} and PHP_VER is properly set to 70 by
the settings in make.conf.

It looks like this (from poudriere log) for building one of my local meta ports
to install a specific server configuration. Obviously, this works fine with PHP
5.6 since the library is properly named in the dependencies.

===>   kci-wordpressblog-8 depends on file:
/usr/local/libexec/apache24/libphp5.so - not found
===>   Installing existing package /packages/All/mod_php70-7.0.12.txz
[pkg.kcilink.com] Installing mod_php70-7.0.12...
[pkg.kcilink.com] Extracting mod_php70-7.0.12: .... done
[activating module `php7' in /usr/local/etc/apache24/httpd.conf]
Message from mod_php70-7.0.12:
***************************************************************

Make sure index.php is part of your DirectoryIndex.

You should add the following to your Apache configuration file:

<FilesMatch "\.php$">
    SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
    SetHandler application/x-httpd-php-source
</FilesMatch>

***************************************************************
===>   kci-wordpressblog-8 depends on file:
/usr/local/libexec/apache24/libphp5.so - not found
*** Error code 1

Stop.
make: stopped in /usr/ports/local/kci-wordpressblog
====>> Cleaning up wrkdir
===>  Cleaning for kci-wordpressblog-8

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ports-bugs mailing list