Bug 185015 - [PATCH] java/openjdk7: unlimited strength policy option not working
Summary: [PATCH] java/openjdk7: unlimited strength policy option not working
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Greg Lewis
Depends on:
Reported: 2013-12-20 05:00 UTC by Phil Phillips
Modified: 2013-12-27 04:40 UTC (History)
0 users

See Also:

file.diff (1.08 KB, patch)
2013-12-20 05:00 UTC, Phil Phillips
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Phillips 2013-12-20 05:00:00 UTC
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
Comment 1 Edwin Groothuis freebsd_committer 2013-12-20 05:00:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->glewis

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2013-12-27 04:32:58 UTC
Author: glewis
Date: Fri Dec 27 04:32:45 2013
New Revision: 337641
URL: http://svnweb.freebsd.org/changeset/ports/337641

  . 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
--- 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
 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"
 RUN_DEPENDS+=  ${LOCALBASE}/share/java/zi:${PORTSDIR}/java/java-zoneinfo
@@ -135,10 +140,6 @@ PATCH=		gpatch
-	@${REINPLACE_CMD} 's|build-policy install-limited|build-policy install-unlimited|' \
-		${WRKSRC}/jdk/make/javax/crypto/Makefile
 .if empty(ICONV_LIB)
 	@${REINPLACE_CMD} 's| -liconv||' \
 		${WRKSRC}/Makefile \
svn-ports-all@freebsd.org mailing list
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Greg Lewis freebsd_committer 2013-12-27 04:33:03 UTC
State Changed
From-To: open->closed

Committed. Thanks!