summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Brinkmann <luckyduck@gentoo.org>2005-01-31 22:44:55 +0000
committerJan Brinkmann <luckyduck@gentoo.org>2005-01-31 22:44:55 +0000
commit4fe538b320b97b6417c44a46811007f622cbc027 (patch)
treee56da2d876c72929f93892a7d488a96943200a6f /dev-java/rhino
parentCleanup autotools stuff. (diff)
downloadhistorical-4fe538b320b97b6417c44a46811007f622cbc027.tar.gz
historical-4fe538b320b97b6417c44a46811007f622cbc027.tar.bz2
historical-4fe538b320b97b6417c44a46811007f622cbc027.zip
added a patch to fix compilation with jdk1.5, fixes bug #80257
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'dev-java/rhino')
-rw-r--r--dev-java/rhino/ChangeLog6
-rw-r--r--dev-java/rhino/Manifest5
-rw-r--r--dev-java/rhino/files/1.5.5_jdk15.patch24
-rw-r--r--dev-java/rhino/rhino-1.5.5-r1.ebuild3
4 files changed, 34 insertions, 4 deletions
diff --git a/dev-java/rhino/ChangeLog b/dev-java/rhino/ChangeLog
index 1857c065eb75..07c94df4b365 100644
--- a/dev-java/rhino/ChangeLog
+++ b/dev-java/rhino/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-java/rhino
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/rhino/ChangeLog,v 1.26 2005/01/29 21:16:24 luckyduck Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/rhino/ChangeLog,v 1.27 2005/01/31 22:44:55 luckyduck Exp $
+
+ 31 Jan 2005; Jan Brinkmann <luckyduck@gentoo.org> +files/1.5.5_jdk15.patch,
+ rhino-1.5.5-r1.ebuild:
+ added a patch to fix compilation with jdk1.5, fixes bug #80257
*rhino-1.6.1-r1 (29 Jan 2005)
diff --git a/dev-java/rhino/Manifest b/dev-java/rhino/Manifest
index d51be8117aa3..181ceca13af7 100644
--- a/dev-java/rhino/Manifest
+++ b/dev-java/rhino/Manifest
@@ -1,9 +1,10 @@
-MD5 e57b6a32307ad8c6cf74420d5a620557 rhino-1.5.5-r1.ebuild 1297
+MD5 1b9c3e4ae0426269156ee02c9459cb16 rhino-1.5.5-r1.ebuild 1335
MD5 5eeeee81ebba44cbb1dfd00df9f064ca rhino-1.6.1-r1.ebuild 1362
-MD5 1a3432d8c452ac084afe6fdb5486b074 ChangeLog 3378
+MD5 66bd1de97a686167374df689d404c646 ChangeLog 3547
MD5 4622606981d4aa0930c917b65cf2f202 metadata.xml 350
MD5 c663f3b82777d7ee2506dc0a03955198 files/jsscript 123
MD5 6d48e39fc85ff462180102a36f8fc589 files/digest-rhino-1.5.5-r1 126
MD5 bba5a68c73328abd7ba67bcf3e828452 files/digest-rhino-1.6.1-r1 126
MD5 0a5ef83b30538dd468f24d14be07769f files/00_dont-fetch-swing-ex.patch 604
MD5 1efa33d52544cf9e08d6538fd15936c2 files/rhino-1.6-gentoo.patch 4761
+MD5 f100305f5b88ad4a91d4000da8e92f73 files/1.5.5_jdk15.patch 1202
diff --git a/dev-java/rhino/files/1.5.5_jdk15.patch b/dev-java/rhino/files/1.5.5_jdk15.patch
new file mode 100644
index 000000000000..e1cbccb4648b
--- /dev/null
+++ b/dev-java/rhino/files/1.5.5_jdk15.patch
@@ -0,0 +1,24 @@
+diff -uprN toolsrc.orig/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java
+--- toolsrc.orig/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java 2005-01-31 23:35:59.926932408 +0100
++++ toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java 2005-01-31 23:42:08.121958256 +0100
+@@ -124,7 +124,8 @@ public class JavaPolicySecurity extends
+
+ public JavaPolicySecurity() {
+ // To trigger error on jdk-1.1 with lazy load
+- new CodeSource(null, null);
++ java.security.CodeSigner[] foo = new java.security.CodeSigner[1];
++ new CodeSource(null, foo);
+ }
+
+ protected void callProcessFileSecure(final Context cx,
+@@ -167,7 +168,9 @@ public class JavaPolicySecurity extends
+ }
+
+ private ProtectionDomain getUrlDomain(URL url) {
+- CodeSource cs = new CodeSource(url, null);
++ // dummy needed for jdk1.5
++ java.security.CodeSigner[] foo = new java.security.CodeSigner[1];
++ CodeSource cs = new CodeSource(url, foo);
+ PermissionCollection pc = Policy.getPolicy().getPermissions(cs);
+ return new ProtectionDomain(cs, pc);
+ }
diff --git a/dev-java/rhino/rhino-1.5.5-r1.ebuild b/dev-java/rhino/rhino-1.5.5-r1.ebuild
index 4dff9daa5ad5..ec3f75d806dc 100644
--- a/dev-java/rhino/rhino-1.5.5-r1.ebuild
+++ b/dev-java/rhino/rhino-1.5.5-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/rhino/rhino-1.5.5-r1.ebuild,v 1.2 2005/01/29 21:23:03 luckyduck Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/rhino/rhino-1.5.5-r1.ebuild,v 1.3 2005/01/31 22:44:55 luckyduck Exp $
inherit eutils java-pkg
@@ -23,6 +23,7 @@ src_unpack() {
unpack ${MY_P}.zip
cd ${S}
mkdir build/
+ epatch ${FILESDIR}/${PV}_jdk15.patch
epatch ${FILESDIR}/00_dont-fetch-swing-ex.patch
cp ${DISTDIR}/rhino-swing-ex-1.0.zip build/swingExSrc.zip || die "unpack error"