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
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-20 05:00 UTC by Phil Phillips
Modified: 2013-12-27 04:40 UTC (History)
0 users

See Also:


Attachments
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 freebsd_triage 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 freebsd_triage 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

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"
Comment 3 Greg Lewis freebsd_committer freebsd_triage 2013-12-27 04:33:03 UTC
State Changed
From-To: open->closed

Committed. Thanks!