From 6e4c5e8e67d92b04ce55c4695e1ecd7ec0a7f45aeffd70148921b8b3f5737eff Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sat, 19 Mar 2022 07:40:35 +0000 Subject: [PATCH 1/4] OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-ivy?expand=0&rev=61 --- apache-ivy-2.4.0-jdk9.patch | 11 -- apache-ivy-2.5.0-src.tar.gz | 3 + apache-ivy-global-settings.patch | 34 ++--- apache-ivy.spec | 97 +++++++++----- ivy-2.5.0.pom | 211 +++++++++++++++++++++++++++++++ 5 files changed, 286 insertions(+), 70 deletions(-) create mode 100644 apache-ivy-2.5.0-src.tar.gz create mode 100644 ivy-2.5.0.pom diff --git a/apache-ivy-2.4.0-jdk9.patch b/apache-ivy-2.4.0-jdk9.patch index 486e6a1..38d20d3 100644 --- a/apache-ivy-2.4.0-jdk9.patch +++ b/apache-ivy-2.4.0-jdk9.patch @@ -1,14 +1,3 @@ ---- apache-ivy-2.3.0/build.properties 2012-04-02 23:11:30.000000000 +0200 -+++ apache-ivy-2.3.0/build.properties 2017-09-07 14:13:28.647597540 +0200 -@@ -42,7 +42,7 @@ - checkstyle.src.dir=${basedir}/src/etc/checkstyle - rat.report.dir=${reports.dir}/rat - --ivy.minimum.javaversion=1.5 -+ivy.minimum.javaversion=1.8 - debug.mode=on - ivy.install.version=1.4.1 - --- apache-ivy-2.3.0/build.xml 2012-04-09 08:58:36.000000000 +0200 +++ apache-ivy-2.3.0/build.xml 2017-09-07 14:46:13.128164218 +0200 @@ -517,7 +517,7 @@ diff --git a/apache-ivy-2.5.0-src.tar.gz b/apache-ivy-2.5.0-src.tar.gz new file mode 100644 index 0000000..8d52cbc --- /dev/null +++ b/apache-ivy-2.5.0-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:109583a8d10b5d9a71c57c539719ca3648ebb8ca4af867976128e7fa657312b7 +size 2719181 diff --git a/apache-ivy-global-settings.patch b/apache-ivy-global-settings.patch index 3cb0fff..3b5af77 100644 --- a/apache-ivy-global-settings.patch +++ b/apache-ivy-global-settings.patch @@ -1,27 +1,11 @@ -From 27cf17a1eea310b8d75efc7fc9d4d733fffcbdc1 Mon Sep 17 00:00:00 2001 -From: Marian Koncek -Date: Fri, 19 Oct 2018 15:25:30 +0200 -Subject: [PATCH] Change global settings - ---- - src/java/org/apache/ivy/ant/IvyAntSettings.java | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/src/java/org/apache/ivy/ant/IvyAntSettings.java b/src/java/org/apache/ivy/ant/IvyAntSettings.java -index 660ebbe..85cf97f 100644 --- a/src/java/org/apache/ivy/ant/IvyAntSettings.java +++ b/src/java/org/apache/ivy/ant/IvyAntSettings.java -@@ -354,6 +354,10 @@ public class IvyAntSettings extends DataType { - break; - } - } -+ if (!file.exists() && task.getProject().getProperty("ivy.mode") != null) { -+ file = new File("/etc/ivy/ivysettings.xml"); -+ task.log("searching settings file: trying " + file, Project.MSG_VERBOSE); -+ } - if (!file.exists()) { - file = null; - if (Boolean.valueOf(getProject().getProperty("ivy.14.compatible")).booleanValue()) { --- -2.17.2 - +@@ -345,7 +345,7 @@ public class IvyAntSettings extends DataType { + File[] settingsLocations = new File[] { + new File(getProject().getBaseDir(), settingsFileName), + new File(getProject().getBaseDir(), "ivyconf.xml"), new File(settingsFileName), +- new File("ivyconf.xml")}; ++ new File("ivyconf.xml"), new File("/etc/ivy/ivysettings.xml")}; + for (File settingsFile : settingsLocations) { + task.log("searching settings file: trying " + settingsFile, Project.MSG_VERBOSE); + if (settingsFile.exists()) { diff --git a/apache-ivy.spec b/apache-ivy.spec index 254a771..a5fcef1 100644 --- a/apache-ivy.spec +++ b/apache-ivy.spec @@ -1,7 +1,7 @@ # # spec file for package apache-ivy # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,24 +16,23 @@ # -%bcond_without ssh +%bcond_without httpclient +%bcond_without oro +%bcond_without sftp %bcond_without vfs Name: apache-ivy -Version: 2.4.0 +Version: 2.5.0 Release: 0 Summary: Java-based dependency manager License: Apache-2.0 Group: Development/Tools/Building -URL: http://ant.apache.org/ivy/ -Source0: %{name}-%{version}-src.tar.gz +URL: https://ant.apache.org/ivy/ +Source0: https://archive.apache.org/dist/ant/ivy/%{version}/%{name}-%{version}-src.tar.gz Source1: ivy.1 -Source2: http://repo1.maven.org/maven2/org/apache/ivy/ivy/%{version}/ivy-%{version}.pom -Patch0: apache-ivy-2.4.0-jdk9.patch -Patch1: apache-ivy-global-settings.patch -Patch2: port-to-bc-1.52.patch +Source2: https://repo1.maven.org/maven2/org/apache/ivy/ivy/%{version}/ivy-%{version}.pom +Patch0: apache-ivy-global-settings.patch BuildRequires: ant BuildRequires: bouncycastle-pg -BuildRequires: commons-httpclient BuildRequires: fdupes BuildRequires: java-devel >= 1.8 BuildRequires: javapackages-local @@ -45,11 +44,17 @@ BuildArch: noarch %if %{with vfs} BuildRequires: apache-commons-vfs2 %endif -%if %{with ssh} +%if %{with sftp} BuildRequires: jsch-agent-proxy-connector-factory BuildRequires: jsch-agent-proxy-core BuildRequires: jsch-agent-proxy-jsch %endif +%if %{with httpclient} +BuildRequires: httpcomponents-client +%endif +%if %{with oro} +BuildRequires: oro +%endif %description Apache Ivy is a tool for managing (recording, tracking, resolving and @@ -69,50 +74,74 @@ JavaDoc documentation for %{name} %prep %setup -q %patch0 -p1 -%patch1 -p1 -%patch2 -p1 cp %{SOURCE2} pom.xml %pom_remove_parent . -# Remove prebuilt documentation -rm -rf doc build/doc +%pom_remove_dep :jsch.agentproxy -# Port from commons-vfs 1.x to 2.x -%if %{with vfs} -sed -i "s/commons.vfs/&2/" {src,test}/java/org/apache/ivy/plugins/repository/vfs/* -%else -sed -i /commons-vfs/d ivy.xml -sed '/vfs.*=.*org.apache.ivy.plugins.resolver.VfsResolver/d' -i \ - src/java/org/apache/ivy/core/settings/typedef.properties -rm -rf src/java/org/apache/ivy/plugins/repository/vfs -rm -rf src/java/org/apache/ivy/plugins/resolver/VfsResolver.java +%if %{without httpclient} +%pom_remove_dep :httpclient +rm src/java/org/apache/ivy/util/url/HttpClientHandler.java %endif -%if %{without ssh} -rm -r src/java/org/apache/ivy/plugins/repository/{ssh,sftp} -rm src/java/org/apache/ivy/plugins/resolver/*{Ssh,SFTP}*.java +%if %{without oro} +%pom_remove_dep :oro +rm src/java/org/apache/ivy/plugins/matcher/GlobPatternMatcher.java +%endif + +%if %{without vfs} +%pom_remove_dep :commons-vfs2 +rm src/java/org/apache/ivy/plugins/repository/vfs/VfsRepository.java +rm src/java/org/apache/ivy/plugins/repository/vfs/VfsResource.java +rm src/java/org/apache/ivy/plugins/repository/vfs/ivy_vfs.xml +rm src/java/org/apache/ivy/plugins/resolver/VfsResolver.java +%endif + +%if %{without sftp} +%pom_remove_dep :jsch +%pom_remove_dep :jsch.agentproxy.connector-factory +%pom_remove_dep :jsch.agentproxy.jsch +rm src/java/org/apache/ivy/plugins/repository/sftp/SFTPRepository.java +rm src/java/org/apache/ivy/plugins/repository/sftp/SFTPResource.java +rm src/java/org/apache/ivy/plugins/repository/ssh/AbstractSshBasedRepository.java +rm src/java/org/apache/ivy/plugins/repository/ssh/RemoteScpException.java +rm src/java/org/apache/ivy/plugins/repository/ssh/Scp.java +rm src/java/org/apache/ivy/plugins/repository/ssh/SshCache.java +rm src/java/org/apache/ivy/plugins/repository/ssh/SshRepository.java +rm src/java/org/apache/ivy/plugins/repository/ssh/SshResource.java +rm src/java/org/apache/ivy/plugins/resolver/AbstractSshBasedResolver.java +rm src/java/org/apache/ivy/plugins/resolver/SFTPResolver.java +rm src/java/org/apache/ivy/plugins/resolver/SshResolver.java %endif %build # Craft class path mkdir -p lib -build-jar-repository lib ant ant/ant-nodeps oro jsch commons-httpclient bcprov bcpg -export CLASSPATH=$(build-classpath ant ant/ant-nodeps oro jsch commons-httpclient bcprov bcpg) +build-jar-repository -s lib ant ant/ant-nodeps jsch bcprov bcpg +export CLASSPATH=$(build-classpath ant ant/ant-nodeps jsch httpcomponents bcprov bcpg) +%if %{with httpclient} +build-jar-repository lib httpcomponents +export CLASSPATH=${CLASSPATH}:$(build-classpath httpcomponents) +%endif +%if %{with oro} +build-jar-repository lib oro +export CLASSPATH=${CLASSPATH}:$(build-classpath oro) +%endif %if %{with vfs} build-jar-repository lib commons-vfs2 export CLASSPATH=${CLASSPATH}:$(build-classpath commons-vfs2) %endif -%if %{with ssh} -build-jar-repository lib jsch.agentproxy.core \ +%if %{with sftp} +build-jar-repository -s lib jsch.agentproxy.core \ jsch.agentproxy.connector-factory \ jsch.agentproxy.jsch export CLASSPATH=${CLASSPATH}:$(build-classpath jsch.agentproxy.core jsch.agentproxy.connector-factory jsch.agentproxy.jsch) %endif # Build -ant -Dtarget.ivy.version=%{version} -Dbundle.version=%{version} /localivy /offline jar javadoc +%{ant} -v -Dtarget.ivy.version=%{version} -Dbundle.version=%{version} /localivy /offline jar javadoc %install # Code @@ -127,7 +156,7 @@ install -m 0644 pom.xml %{buildroot}/%{_mavenpomdir}/JPP-ivy.pom # API Documentation install -d %{buildroot}%{_javadocdir}/%{name} -cp -rp build/doc/reports/api/. %{buildroot}%{_javadocdir}/%{name} +cp -rp build/reports/api/. %{buildroot}%{_javadocdir}/%{name} %fdupes -s %{buildroot}%{_javadocdir}/%{name} # Command line script @@ -143,7 +172,7 @@ install %{SOURCE1} %{buildroot}%{_mandir}/man1/ivy.1 %files -f .mfiles %license LICENSE NOTICE -%doc README +%doc README.adoc %config %{_sysconfdir}/ant.d/%{name} %{_javadir}/%{name} %attr(755,root,root) %{_bindir}/* diff --git a/ivy-2.5.0.pom b/ivy-2.5.0.pom new file mode 100644 index 0000000..e252be7 --- /dev/null +++ b/ivy-2.5.0.pom @@ -0,0 +1,211 @@ + + + + + 4.0.0 + + org.apache + apache + 7 + + org.apache.ivy + ivy + 2.5.0 + Apache Ivy + http://ant.apache.org/ivy/ + + scm:svn:https://svn.apache.org/repos/asf/ant/ivy/core/trunk/ + scm:svn:https://svn.apache.org/repos/asf/ant/ivy/core/trunk + https://svn.apache.org/repos/asf/ant/ivy/core/trunk + + + + Ant/Ivy Developers List + dev-subscribe@ant.apache.org + dev-unsubscribe@ant.apache.org + dev@ant.apache.org + https://mail-archives.apache.org/mod_mbox/ant-dev + + + Ivy Users List + ivy-user-subscribe@ant.apache.org + ivy-user-unsubscribe@ant.apache.org + ivy-user@ant.apache.org + https://mail-archives.apache.org/mod_mbox/ant-ivy-user + + + + jira + https://issues.apache.org/jira/browse/IVY + + + + org.apache.ant + ant + 1.9.14 + true + + + org.apache.httpcomponents + httpclient + 4.5.9 + true + + + oro + oro + 2.0.8 + true + + + org.apache.commons + commons-vfs2 + 2.2 + true + + + com.jcraft + jsch + 0.1.55 + true + + + com.jcraft + jsch.agentproxy + 0.0.9 + true + + + com.jcraft + jsch.agentproxy.connector-factory + 0.0.9 + true + + + com.jcraft + jsch.agentproxy.jsch + 0.0.9 + true + + + org.bouncycastle + bcpg-jdk15on + 1.62 + true + + + org.bouncycastle + bcprov-jdk15on + 1.62 + true + + + junit + junit + 4.12 + test + + + org.hamcrest + hamcrest-core + 1.3 + test + + + org.hamcrest + hamcrest-library + 1.3 + test + + + org.apache.ant + ant-testutil + 1.9.14 + test + + + * + * + + + + + org.apache.ant + ant-launcher + 1.9.14 + test + + + * + * + + + + + org.apache.ant + ant-junit + 1.9.14 + test + + + * + * + + + + + org.apache.ant + ant-junit4 + 1.9.14 + test + + + * + * + + + + + ant-contrib + ant-contrib + 1.0b3 + test + + + * + * + + + + + xmlunit + xmlunit + 1.6 + test + + + * + * + + + + + From 071fc2586760403525642051b2227cf22df5a113352fe80248d695f93bb2b10a Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sat, 19 Mar 2022 13:24:49 +0000 Subject: [PATCH 2/4] OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-ivy?expand=0&rev=62 --- apache-ivy.changes | 9 +++++++++ apache-ivy.spec | 1 + 2 files changed, 10 insertions(+) diff --git a/apache-ivy.changes b/apache-ivy.changes index 446eb22..78d0c33 100644 --- a/apache-ivy.changes +++ b/apache-ivy.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sat Mar 19 13:22:59 UTC 2022 - Fridrich Strba + +- Upgrade to upstream version 2.5.0 +- Force building with JDK < 14, since it imports statically a class + removed in JDK14 +- Change dependencies for the httpclient to httpcomponents-client + instead of apache-commons-httpclient + ------------------------------------------------------------------- Tue Dec 10 22:39:53 UTC 2019 - Fridrich Strba diff --git a/apache-ivy.spec b/apache-ivy.spec index a5fcef1..88464c1 100644 --- a/apache-ivy.spec +++ b/apache-ivy.spec @@ -38,6 +38,7 @@ BuildRequires: java-devel >= 1.8 BuildRequires: javapackages-local BuildRequires: jsch BuildRequires: oro +BuildConflicts: java-devel >= 14 Provides: ivy = %{version}-%{release} Obsoletes: ivy < %{version}-%{release} BuildArch: noarch From 1ccf19a3ee7adfd5570ac42f95f71ef63078ceed0fa924ea6a451e940389a7e9 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sat, 19 Mar 2022 13:26:16 +0000 Subject: [PATCH 3/4] OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-ivy?expand=0&rev=63 --- apache-ivy-2.4.0-jdk9.patch | 11 -- apache-ivy-2.4.0-src.tar.gz | 3 - ivy-2.4.0.pom | 193 ------------------------------------ port-to-bc-1.52.patch | 93 ----------------- 4 files changed, 300 deletions(-) delete mode 100644 apache-ivy-2.4.0-jdk9.patch delete mode 100644 apache-ivy-2.4.0-src.tar.gz delete mode 100644 ivy-2.4.0.pom delete mode 100644 port-to-bc-1.52.patch diff --git a/apache-ivy-2.4.0-jdk9.patch b/apache-ivy-2.4.0-jdk9.patch deleted file mode 100644 index 38d20d3..0000000 --- a/apache-ivy-2.4.0-jdk9.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- apache-ivy-2.3.0/build.xml 2012-04-09 08:58:36.000000000 +0200 -+++ apache-ivy-2.3.0/build.xml 2017-09-07 14:46:13.128164218 +0200 -@@ -517,7 +517,7 @@ - - - -- -+ - - - diff --git a/apache-ivy-2.4.0-src.tar.gz b/apache-ivy-2.4.0-src.tar.gz deleted file mode 100644 index ea0453b..0000000 --- a/apache-ivy-2.4.0-src.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:202f08ca41f4bdf1c081aa8b2e531565be6c73e9e5e0d68137f454f14eb16ef6 -size 3616939 diff --git a/ivy-2.4.0.pom b/ivy-2.4.0.pom deleted file mode 100644 index 81116e1..0000000 --- a/ivy-2.4.0.pom +++ /dev/null @@ -1,193 +0,0 @@ - - - - - 4.0.0 - - org.apache - apache - 7 - - org.apache.ivy - ivy - 2.4.0 - Apache Ivy - http://ant.apache.org/ivy/ - - scm:svn:http://svn.apache.org/repos/asf/ant/ivy/core/trunk/ - scm:svn:https://svn.apache.org/repos/asf/ant/ivy/core/trunk - http://svn.apache.org/repos/asf/ant/ivy/core/trunk - - - - Ant/Ivy Developers List - dev-subscribe@ant.apache.org - dev-unsubscribe@ant.apache.org - dev@ant.apache.org - http://mail-archives.apache.org/mod_mbox/ant-dev - - - Ivy Users List - ivy-user-subscribe@ant.apache.org - ivy-user-unsubscribe@ant.apache.org - ivy-user@ant.apache.org - http://mail-archives.apache.org/mod_mbox/ant-ivy-user - - - - jira - http://issues.apache.org/jira/browse/IVY - - - - org.apache.ant - ant - 1.7.1 - true - - - org.apache.ant - ant-nodeps - 1.7.1 - true - - - org.apache.ant - ant-trax - 1.7.1 - true - - - commons-httpclient - commons-httpclient - 3.0 - true - - - oro - oro - 2.0.8 - true - - - commons-vfs - commons-vfs - 1.0 - true - - - com.jcraft - jsch - 0.1.50 - true - - - com.jcraft - jsch.agentproxy - 0.0.6 - true - - - com.jcraft - jsch.agentproxy.connector-factory - 0.0.6 - true - - - com.jcraft - jsch.agentproxy.jsch - 0.0.6 - true - - - org.bouncycastle - bcpg-jdk14 - 1.45 - true - - - org.bouncycastle - bcprov-jdk14 - 1.45 - true - - - junit - junit - 3.8.2 - test - - - commons-lang - commons-lang - 2.6 - test - - - org.apache.ant - ant-testutil - 1.7.0 - test - - - * - * - - - - - ant - ant-launcher - 1.6.2 - test - - - * - * - - - - - ant-contrib - ant-contrib - 1.0b3 - test - - - * - * - - - - - xerces - xercesImpl - 2.6.2 - test - - - xerces - xmlParserAPIs - 2.6.2 - test - - - diff --git a/port-to-bc-1.52.patch b/port-to-bc-1.52.patch deleted file mode 100644 index 7b73be3..0000000 --- a/port-to-bc-1.52.patch +++ /dev/null @@ -1,93 +0,0 @@ -diff --git a/ivy.xml b/ivy.xml -index d448897..7d8896a 100644 ---- a/ivy.xml -+++ b/ivy.xml -@@ -50,8 +50,8 @@ - - - -- -- -+ -+ - - - -diff --git a/src/java/org/apache/ivy/plugins/signer/bouncycastle/OpenPGPSignatureGenerator.java b/src/java/org/apache/ivy/plugins/signer/bouncycastle/OpenPGPSignatureGenerator.java -index af7beae..bec8ae4 100644 ---- a/src/java/org/apache/ivy/plugins/signer/bouncycastle/OpenPGPSignatureGenerator.java -+++ b/src/java/org/apache/ivy/plugins/signer/bouncycastle/OpenPGPSignatureGenerator.java -@@ -23,16 +23,18 @@ import java.io.FileOutputStream; - import java.io.IOException; - import java.io.InputStream; - import java.io.OutputStream; --import java.security.NoSuchAlgorithmException; --import java.security.NoSuchProviderException; - import java.security.Security; --import java.security.SignatureException; - import java.util.Iterator; - - import org.apache.ivy.plugins.signer.SignatureGenerator; - import org.bouncycastle.bcpg.ArmoredOutputStream; - import org.bouncycastle.bcpg.BCPGOutputStream; - import org.bouncycastle.jce.provider.BouncyCastleProvider; -+import org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor; -+import org.bouncycastle.openpgp.operator.bc.BcKeyFingerprintCalculator; -+import org.bouncycastle.openpgp.operator.bc.BcPBESecretKeyDecryptorBuilder; -+import org.bouncycastle.openpgp.operator.bc.BcPGPContentSignerBuilder; -+import org.bouncycastle.openpgp.operator.bc.BcPGPDigestCalculatorProvider; - import org.bouncycastle.openpgp.PGPException; - import org.bouncycastle.openpgp.PGPPrivateKey; - import org.bouncycastle.openpgp.PGPSecretKey; -@@ -101,11 +103,13 @@ public class OpenPGPSignatureGenerator implements SignatureGenerator { - pgpSec = readSecretKey(keyIn); - } - -- PGPPrivateKey pgpPrivKey = pgpSec.extractPrivateKey(password.toCharArray(), -- BouncyCastleProvider.PROVIDER_NAME); -- PGPSignatureGenerator sGen = new PGPSignatureGenerator(pgpSec.getPublicKey() -- .getAlgorithm(), PGPUtil.SHA1, BouncyCastleProvider.PROVIDER_NAME); -- sGen.initSign(PGPSignature.BINARY_DOCUMENT, pgpPrivKey); -+ PBESecretKeyDecryptor decryptor = new BcPBESecretKeyDecryptorBuilder( -+ new BcPGPDigestCalculatorProvider()).build(password.toCharArray()); -+ PGPPrivateKey pgpPrivKey = pgpSec.extractPrivateKey(decryptor); -+ PGPSignatureGenerator sGen = new PGPSignatureGenerator( -+ new BcPGPContentSignerBuilder(pgpSec.getPublicKey() -+ .getAlgorithm(), PGPUtil.SHA1)); -+ sGen.init(PGPSignature.BINARY_DOCUMENT, pgpPrivKey); - - in = new FileInputStream(src); - out = new BCPGOutputStream(new ArmoredOutputStream(new FileOutputStream(dest))); -@@ -116,22 +120,10 @@ public class OpenPGPSignatureGenerator implements SignatureGenerator { - } - - sGen.generate().encode(out); -- } catch (SignatureException e) { -- IOException ioexc = new IOException(); -- ioexc.initCause(e); -- throw ioexc; - } catch (PGPException e) { - IOException ioexc = new IOException(); - ioexc.initCause(e); - throw ioexc; -- } catch (NoSuchAlgorithmException e) { -- IOException ioexc = new IOException(); -- ioexc.initCause(e); -- throw ioexc; -- } catch (NoSuchProviderException e) { -- IOException ioexc = new IOException(); -- ioexc.initCause(e); -- throw ioexc; - } finally { - if (out != null) { - try { -@@ -156,7 +148,8 @@ public class OpenPGPSignatureGenerator implements SignatureGenerator { - - private PGPSecretKey readSecretKey(InputStream in) throws IOException, PGPException { - in = PGPUtil.getDecoderStream(in); -- PGPSecretKeyRingCollection pgpSec = new PGPSecretKeyRingCollection(in); -+ PGPSecretKeyRingCollection pgpSec = new PGPSecretKeyRingCollection(in, -+ new BcKeyFingerprintCalculator()); - - PGPSecretKey key = null; - for (Iterator it = pgpSec.getKeyRings(); key == null && it.hasNext();) { From 2ed8953a5685868cc150b56268cb7d8ffdd85047efa2bd307b763add4a152470 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sat, 19 Mar 2022 13:28:38 +0000 Subject: [PATCH 4/4] OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-ivy?expand=0&rev=64 --- apache-ivy.changes | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apache-ivy.changes b/apache-ivy.changes index 78d0c33..0f68b76 100644 --- a/apache-ivy.changes +++ b/apache-ivy.changes @@ -6,6 +6,13 @@ Sat Mar 19 13:22:59 UTC 2022 - Fridrich Strba removed in JDK14 - Change dependencies for the httpclient to httpcomponents-client instead of apache-commons-httpclient +- Modified patch: + * apache-ivy-global-settings.patch + + implement the same functionality with a bit of less code +- Removed patches: + * apache-ivy-2.4.0-jdk9.patch + * port-to-bc-1.52.patch + + not needed with this version ------------------------------------------------------------------- Tue Dec 10 22:39:53 UTC 2019 - Fridrich Strba