Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2019 18:08:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 235135] devel/pear - PHPBASE is not respected
Message-ID:  <bug-235135-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235135

            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@FreeBSD.org
          Reporter: jtkoerting@gmail.com
             Flags: maintainer-feedback?(joneum@FreeBSD.org)
          Assignee: joneum@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?=3D     ${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=3D${STAGEDIR} ${LOCALBASE}/bin/p=
hp -q
./go-pear
+       @cd ${WRKSRC} && ${SETENV} DESTDIR=3D${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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-235135-7788>