Building openjdk7 with the POLICY option enabled doesn't actually install the unlimited strength policy files. The javax.crypto Makefile changed a little, so the post-patch command in the port is no longer modifying the Makefile to call the "install-unlimited" target. Instead, the UNLIMITED_CRYPTO environment variable can be set. Fix: Patch attached. I included a PORTREVISION bump with this change. Patch attached with submission follows: How-To-Repeat: 1) Install openjdk7 with POLICY option enabled 2) Run a java program that requires unlimited strength policy files
Responsible Changed From-To: freebsd-ports-bugs->glewis Over to maintainer (via the GNATS Auto Assign Tool)
Author: glewis Date: Fri Dec 27 04:32:45 2013 New Revision: 337641 URL: http://svnweb.freebsd.org/changeset/ports/337641 Log: . Fix the POLICY option to actually install the unlimited strength policy files again. PR: 185015 Submitted by: Phil Phillips <pphillips@experts-exchange.com> Modified: head/java/openjdk7/Makefile Modified: head/java/openjdk7/Makefile ============================================================================== --- head/java/openjdk7/Makefile Fri Dec 27 02:52:21 2013 (r337640) +++ head/java/openjdk7/Makefile Fri Dec 27 04:32:45 2013 (r337641) @@ -3,6 +3,7 @@ PORTNAME= openjdk PORTVERSION= ${JDK_MAJOR_VERSION}.${PORT_MINOR_VERSION}.${PORT_BUILD_NUMBER} +PORTREVISION= 1 CATEGORIES= java devel MASTER_SITES= http://download.java.net/openjdk/jdk${JDK_MAJOR_VERSION}u${JDK_MINOR_VERSION}/promoted/b${JDK_BUILD_NUMBER}/ \ http://download.java.net/jaxp/1.4.5/:jaxp \ @@ -110,6 +111,10 @@ NO_STAGE= yes MAKE_ENV+= ALT_OBJCOPY="/nonexistent" .endif +.if ${PORT_OPTIONS:MPOLICY} +MAKE_ENV+= UNLIMITED_CRYPTO=1 +.endif + .if ${PORT_OPTIONS:MTZUPDATE} RUN_DEPENDS+= ${LOCALBASE}/share/java/zi:${PORTSDIR}/java/java-zoneinfo .endif @@ -135,10 +140,6 @@ PATCH= gpatch post-patch: @${REINPLACE_CMD} "s|%%LOCALBASE%%|${LOCALBASE}|" \ ${WRKSRC}/hotspot/src/os/bsd/vm/os_bsd.cpp -.if ${PORT_OPTIONS:MPOLICY} - @${REINPLACE_CMD} 's|build-policy install-limited|build-policy install-unlimited|' \ - ${WRKSRC}/jdk/make/javax/crypto/Makefile -.endif .if empty(ICONV_LIB) @${REINPLACE_CMD} 's| -liconv||' \ ${WRKSRC}/Makefile \ _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed. Thanks!