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
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-22 18:08 UTC by James T. Koerting
Modified: 2019-01-22 18:08 UTC (History)
0 users

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


Attachments

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
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