[Bug 235135] devel/pear - PHPBASE is not respected

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 22 18:08:57 UTC 2019


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

            Bug ID: 235135
           Summary: devel/pear - PHPBASE is not respected
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: joneum at FreeBSD.org
          Reporter: jtkoerting at gmail.com
             Flags: maintainer-feedback?(joneum at FreeBSD.org)
          Assignee: joneum at FreeBSD.org

Hi,

in the current Makefile of devel/pear the php binary is prefixed with
${LOCALBASE} instead of ${PHPBASE} which is manually set or inherited from
LOCALBASE:

/usr/ports/Mk/Uses/php.mk:PHPBASE?=     ${LOCALBASE}


This simple patch should work for all people using the PHPBASE for different
php installations:


--- /usr/ports/devel/pear/Makefile.orig 2018-12-14 12:28:43.000000000 +0100
+++ /usr/ports/devel/pear/Makefile      2019-01-22 18:45:40.026894000 +0100
@@ -37,7 +37,7 @@
        @cd ${WRKSRC}/go-pear-bundle/tmp && ${TAR} -cf
../PEAR-${PORTVERSION}.tar PEAR-${PORTVERSION} package.xml

 do-install:
-       @cd ${WRKSRC} && ${SETENV} DESTDIR=${STAGEDIR} ${LOCALBASE}/bin/php -q
./go-pear
+       @cd ${WRKSRC} && ${SETENV} DESTDIR=${STAGEDIR} ${PHPBASE}/bin/php -q
./go-pear
        @${SED} -i "" "s|<?php|<?php dl('pcre.so'); dl('xml.so');|" \
                ${STAGEDIR}${PEARDIR}/peclcmd.php
 # pear violates stage when staging as root, hide this

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list