Bug 235135 - devel/pear - PHPBASE is not respected
Summary: devel/pear - PHPBASE is not respected
Status: New
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
Depends on:
Reported: 2019-01-22 18:08 UTC by James T. Koerting
Modified: 2019-08-08 09:45 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
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!