diff options
author | Keri Harris <keri@gentoo.org> | 2022-05-27 19:36:41 +0200 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2022-05-27 19:38:43 +0200 |
commit | af2d73433a2869344c961aa0f1f73b6372f8ddba (patch) | |
tree | b2d5af6e17272a014997aebfb5e5809360c3ce0f /dev-lang | |
parent | dev-libs/libnop: add to tree (diff) | |
download | gentoo-af2d73433a2869344c961aa0f1f73b6372f8ddba.tar.gz gentoo-af2d73433a2869344c961aa0f1f73b6372f8ddba.tar.bz2 gentoo-af2d73433a2869344c961aa0f1f73b6372f8ddba.zip |
dev-lang/interprolog: support compiling with Java 17
Closes: https://bugs.gentoo.org/846929
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Keri Harris <keri@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/interprolog/files/interprolog-2.1.2-java17.patch | 13 | ||||
-rw-r--r-- | dev-lang/interprolog/interprolog-2.1.2.ebuild | 3 |
2 files changed, 15 insertions, 1 deletions
diff --git a/dev-lang/interprolog/files/interprolog-2.1.2-java17.patch b/dev-lang/interprolog/files/interprolog-2.1.2-java17.patch new file mode 100644 index 000000000000..5c0ad07b8daa --- /dev/null +++ b/dev-lang/interprolog/files/interprolog-2.1.2-java17.patch @@ -0,0 +1,13 @@ +--- interprolog212.orig/com/declarativa/interprolog/AbstractPrologEngine.java 2005-09-30 19:26:22.000000000 +0200 ++++ interprolog212/com/declarativa/interprolog/AbstractPrologEngine.java 2022-05-27 19:26:35.059409877 +0200 +@@ -389,9 +389,7 @@ + progressMessage("Cleaning path "+p);
+ if (System.getProperty("java.version").compareTo("1.4")>=0) {
+ try{
+- Method decode = URLDecoder.class.getMethod("decode", new
+- Class[]{String.class, String.class});
+- return (String)decode.invoke(new URLDecoder(),new Object[]{p,"UTF-8"});
++ return URLDecoder.decode(p,"UTF-8");
+ } catch (Exception e){
+ throw new IPException("Inconsistency in PrologEngine.cleanPath"+e);
+ }
diff --git a/dev-lang/interprolog/interprolog-2.1.2.ebuild b/dev-lang/interprolog/interprolog-2.1.2.ebuild index af273a150564..dc9d77efd441 100644 --- a/dev-lang/interprolog/interprolog-2.1.2.ebuild +++ b/dev-lang/interprolog/interprolog-2.1.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -33,6 +33,7 @@ EANT_GENTOO_CLASSPATH="junit" src_prepare() { eapply "${FILESDIR}"/${P}-java1.4.patch + eapply "${FILESDIR}"/${P}-java17.patch eapply_user cp "${FILESDIR}"/build.xml "${S}" || die |