ports/127959: Ports fixes for java/php-java-bridge

Patrick van Staveren pvanstaveren at mintel.com
Wed Oct 8 23:10:01 UTC 2008


>Number:         127959
>Category:       ports
>Synopsis:       Ports fixes for java/php-java-bridge
>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:   Wed Oct 08 23:10:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Patrick van Staveren
>Release:        6.2 and 7.0
>Organization:
Mintel International Group
>Environment:
FreeBSD test-phpjavabridge01.mintel.co.uk 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Fri Mar  7 01:52:33 UTC 2008     root at juno.usdmm.com:/usr/obj/usr/src/sys/PE1950  amd64
>Description:
I've fixed two bugs with the java/php-java-bridge port:
1) The port does not install PREFIX/lib/php/{build}/RunJavaBridge as an executable
2) The php-java-bridge does not build with JNI support enabled on amd64, causing the installation to fail as the installation script hardcoded installation filenames.
>How-To-Repeat:
Grab the latest version of the java/php-java-bridge port from cvs, and install it on a FreeBSD 7.0 / amd64 host.  It will fail.  Furthermore, it will succeed on a i386 host.
>Fix:
Bug #1 (RunJavaBridge not executable): Fixed by changing INSTALL_DATA macro to INSTALL_PROGRAM macro.

Bug #2 (Does not build with JNI extension and fails to install): The actual bug is in a m4 macro in php-java-bridge.  I submitted the patch to the php-java-bridge team and it has been merged into release 5.3.2.1.1.  Updating the port to this version fixes the issue, as well as provides an upgrade.
If users strongly need php-java-bridge 5.2.x, the patch will apply cleanly against 5.2.x.

Patch attached with submission follows:

Index: distinfo
===================================================================
--- distinfo    (revision 99702)
+++ distinfo    (revision 99900)
@@ -1,3 +1,3 @@
-MD5 (php-java-bridge_5.2.2.tar.gz) = ef23c2de3d09105a199962a8a6bd7ac4
-SHA256 (php-java-bridge_5.2.2.tar.gz) = 54114a5f9f7002dea81e50e980201fc148375f9ae268d0165e2745e998735480
-SIZE (php-java-bridge_5.2.2.tar.gz) = 11811820
+MD5 (php-java-bridge_5.3.2.1.1.tar.gz) = bcf35986a3c1063d0501132882daf65c
+SHA256 (php-java-bridge_5.3.2.1.1.tar.gz) = dc6fe165fec9ff31106fd5331fc0dad93868ff57012ad7455b622cdee45467d4
+SIZE (php-java-bridge_5.3.2.1.1.tar.gz) = 11842035
Index: Makefile
===================================================================
--- Makefile    (revision 99702)
+++ Makefile    (revision 99900)
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=  php-java-bridge
-PORTVERSION=   5.2.2
+PORTVERSION=   5.3.2.1.1
 CATEGORIES=    devel java
 MASTER_SITES=  SF
 DISTNAME=  ${PORTNAME}_${PORTVERSION}
@@ -55,8 +55,4 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} == "amd64" && ${OSVERSION} >= 700000
-BROKEN=       does not install
-.endif
-
 .include <bsd.port.post.mk>



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list