From 28a360b650f06e085ccb2ff10829144f29dbdaa5fae8f8ecd254e20c7eb05e84 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sat, 19 Mar 2022 05:39:45 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/trilead-ssh2?expand=0&rev=6 --- trilead-ssh2-javadoc17.patch | 88 ++++++++++++++++++++++++++++++++++++ trilead-ssh2.changes | 7 +++ trilead-ssh2.spec | 2 + 3 files changed, 97 insertions(+) create mode 100644 trilead-ssh2-javadoc17.patch diff --git a/trilead-ssh2-javadoc17.patch b/trilead-ssh2-javadoc17.patch new file mode 100644 index 0000000..f9d2802 --- /dev/null +++ b/trilead-ssh2-javadoc17.patch @@ -0,0 +1,88 @@ +--- trilead-ssh2-trilead-ssh2-build217-jenkins-8/src/com/trilead/ssh2/ChannelCondition.java 2022-03-19 06:26:07.892206683 +0100 ++++ trilead-ssh2-trilead-ssh2-build217-jenkins-8/src/com/trilead/ssh2/ChannelCondition.java 2022-03-19 06:31:33.158164595 +0100 +@@ -17,7 +17,7 @@ + * A timeout has occurred, none of your requested conditions is fulfilled. + * However, other conditions may be true - therefore, NEVER use the "==" + * operator to test for this (or any other) condition. Always use +- * something like ((cond & ChannelCondition.CLOSED) != 0). ++ * something like ((cond & ChannelCondition.CLOSED) != 0). + */ + public static final int TIMEOUT = 1; + +--- trilead-ssh2-trilead-ssh2-build217-jenkins-8/src/com/trilead/ssh2/crypto/cipher/DES.java 2022-03-19 06:26:07.896206708 +0100 ++++ trilead-ssh2-trilead-ssh2-build217-jenkins-8/src/com/trilead/ssh2/crypto/cipher/DES.java 2022-03-19 06:35:27.631582750 +0100 +@@ -187,7 +187,7 @@ + * generate an integer based working key based on our secret key and what we + * processing we are planning to do. + * +- * Acknowledgements for this routine go to James Gillogly & Phil Karn. ++ * Acknowledgements for this routine go to James Gillogly & Phil Karn. + * (whoever, and wherever they are!). + */ + protected int[] generateWorkingKey(boolean encrypting, byte[] key, int off) +--- trilead-ssh2-trilead-ssh2-build217-jenkins-8/src/com/trilead/ssh2/DHGexParameters.java 2022-03-19 06:26:07.892206683 +0100 ++++ trilead-ssh2-trilead-ssh2-build217-jenkins-8/src/com/trilead/ssh2/DHGexParameters.java 2022-03-19 06:36:31.399968581 +0100 +@@ -39,7 +39,7 @@ + * Internally, the minimum and maximum group lengths will + * be set to zero. + * +- * @param pref_group_len has to be >= 1024 and <= 8192 ++ * @param pref_group_len has to be >= 1024 and <= 8192 + */ + public DHGexParameters(int pref_group_len) + { +@@ -58,7 +58,7 @@ + * Note: older OpenSSH servers don't understand this request, in which + * case you should use the {@link #DHGexParameters(int)} constructor. + *

+- * All values have to be >= 1024 and <= 8192. Furthermore, ++ * All values have to be >= 1024 and <= 8192. Furthermore, + * min_group_len <= pref_group_len <= max_group_len. + * + * @param min_group_len +--- trilead-ssh2-trilead-ssh2-build217-jenkins-8/src/com/trilead/ssh2/KnownHosts.java 2022-03-19 06:26:07.896206708 +0100 ++++ trilead-ssh2-trilead-ssh2-build217-jenkins-8/src/com/trilead/ssh2/KnownHosts.java 2022-03-19 06:27:45.980795075 +0100 +@@ -36,7 +36,7 @@ + * It offers basically an in-memory database for known_hosts entries, as well as some + * helper functions. Entries from a known_hosts file can be loaded at construction time. + * It is also possible to add more keys later (e.g., one can parse different +- * known_hosts files). ++ * known_hosts files). + *

+ * It is a thread safe implementation, therefore, you need only to instantiate one + * KnownHosts for your whole application. +--- trilead-ssh2-trilead-ssh2-build217-jenkins-8/src/com/trilead/ssh2/Session.java 2022-03-19 06:26:07.896206708 +0100 ++++ trilead-ssh2-trilead-ssh2-build217-jenkins-8/src/com/trilead/ssh2/Session.java 2022-03-19 06:33:58.935046105 +0100 +@@ -485,8 +485,8 @@ + * This method returns as soon as one of the following happens: + *

+ *

+ * In any case, the result value contains ALL current conditions, which may be more +@@ -514,7 +514,7 @@ + * Get the exit code/status from the remote command - if available. Be + * careful - not all server implementations return this value. It is + * generally a good idea to call this method only when all data from the +- * remote side has been consumed (see also the method). ++ * remote side has been consumed (see also the WaitForCondition method). + * + * @return An Integer holding the exit code, or + * null if no exit code is (yet) available. +--- trilead-ssh2-trilead-ssh2-build217-jenkins-8/src/com/trilead/ssh2/SFTPv3Client.java 2022-03-19 06:26:07.896206708 +0100 ++++ trilead-ssh2-trilead-ssh2-build217-jenkins-8/src/com/trilead/ssh2/SFTPv3Client.java 2022-03-19 06:38:24.044650356 +0100 +@@ -1208,8 +1208,8 @@ + *

    + *
  • The server will read as many bytes as it can from the file (up to len), + * and return them.
  • +- *
  • If EOF is encountered before reading any data, -1 is returned. +- *
  • If an error occurs, an exception is thrown
  • . ++ *
  • If EOF is encountered before reading any data, -1 is returned.
  • ++ *
  • If an error occurs, an exception is thrown.
  • + *
  • For normal disk files, it is guaranteed that the server will return the specified + * number of bytes, or up to end of file. For, e.g., device files this may return + * fewer bytes than requested.
  • diff --git a/trilead-ssh2.changes b/trilead-ssh2.changes index 8e4bbec..a2344c8 100644 --- a/trilead-ssh2.changes +++ b/trilead-ssh2.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Mar 19 05:39:01 UTC 2022 - Fridrich Strba + +- Added patch: + * trilead-ssh2-javadoc17.patch + + fix html5 errors when generating javadoc with JDK 17 + ------------------------------------------------------------------- Fri Mar 18 16:41:59 UTC 2022 - Fridrich Strba diff --git a/trilead-ssh2.spec b/trilead-ssh2.spec index c064a76..d673c11 100644 --- a/trilead-ssh2.spec +++ b/trilead-ssh2.spec @@ -26,6 +26,7 @@ License: BSD-3-Clause AND MIT Group: Development/Libraries/Java URL: https://github.com/jenkinsci/trilead-ssh2 Source0: https://github.com/jenkinsci/%{name}/archive/%{name}-build%{buildver}-jenkins-%{patchlvl}.tar.gz +Patch0: trilead-ssh2-javadoc17.patch BuildRequires: fdupes BuildRequires: java-devel >= 1.8 BuildRequires: javapackages-local @@ -48,6 +49,7 @@ API documentation for %{name}. %prep %setup -q -n %{name}-%{name}-build%{buildver}-jenkins-%{patchlvl} +%patch0 -p1 %build mkdir -p build/classes