Bug 235135

Summary: devel/pear - PHPBASE is not respected
Product: Ports & Packages Reporter: James T. Koerting <jtkoerting>
Component: Individual Port(s)Assignee: Jochen Neumeister <joneum>
Status: Closed FIXED    
Severity: Affects Only Me CC: fluffy, w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (joneum)
Version: Latest   
Hardware: Any   
OS: Any   

Description James T. Koerting 2019-01-22 18:08:54 UTC

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

-       @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');|" \
 # pear violates stage when staging as root, hide this
Comment 1 Walter Schwarzenfeld freebsd_triage 2019-08-08 09:45:47 UTC
Maintainer feedback, please!
Comment 2 Dima Panov freebsd_committer 2020-11-04 14:26:59 UTC
Covered by r554082 (https://svnweb.freebsd.org/changeset/ports/554082)