Date: Sun, 02 Sep 2012 16:15:16 -0500 From: Bryan Drewery <bdrewery@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/171263: [PATCH] devel/ioncube: Fix build inside of a jail Message-ID: <201209022115.q82LFLJR065164@freefall.freebsd.org> Resent-Message-ID: <201209022120.q82LK6IW050922@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 171263 >Category: ports >Synopsis: [PATCH] devel/ioncube: Fix build inside of a jail >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Sep 02 21:20:06 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Bryan Drewery >Release: FreeBSD 8.3-RELEASE i386 >Organization: >Environment: >Description: When building in a clean jail, running 'make install' in devel/ioncube (without already having PHP installed), causes a build failure. This can be seen at http://www.shatow.net/freebsd/82i386-default-ioncube-4.2.1.txt This is due to PHP_VERSION not being defined by bsd.php.mk, since php is not yet installed. This patch will lookup the PHP_VERSION of the PHP that will get installed during the 'install' phase. The other option is to make PHP a build-time dependency, so that PHP_VERSION is set by bsd.php.mk ports/170002 has more information. >How-To-Repeat: >Fix: --- patch-devel-ioncube-jail.txt begins here --- # svn status M Makefile Index: Makefile =================================================================== --- Makefile (revision 303576) +++ Makefile (working copy) @@ -13,7 +13,7 @@ DISTNAME= ${PORTNAME}_loaders_fre_${VER}_${ARCH:S,i386,x86,:S,amd64,x86-64,} MAINTAINER= svyatoslav.lempert@gmail.com -COMMENT= An ionCube loader for PHP code +COMMENT= ionCube loader for PHP code ONLY_FOR_ARCHS= i386 amd64 NO_BUILD= yes @@ -35,6 +35,10 @@ VER= 9 .endif +.if empty(PHP_VERSION) +PHP_VERSION!= ${MAKE} -C ${PORTSDIR}/${PHP_PORT} -V PORTVERSION +.endif + PHP_INSTVER= ${PHP_VERSION:C/^([0-9]+\.[0-9]+).*/\1/} do-install: --- patch-devel-ioncube-jail.txt ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209022115.q82LFLJR065164>