Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package wslay for openSUSE:Factory checked in at 2026-11-08 19:22:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/wslay (Old) and /work/SRC/openSUSE:Factory/.wslay.new.3759290 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "wslay" Sun Nov 8 19:22:40 2026 rev:7 rq:1396166 version:1.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/wslay/wslay.changes 2021-07-13 22:37:54.093903192 +0200 +++ /work/SRC/openSUSE:Factory/.wslay.new.3759290/wslay.changes 2026-11-08 19:23:23.037351363 +0100 @@ -1,0 +2,6 @@ +Sun Nov 8 17:53:33 UTC 2026 - Arjen de Korte <[email protected]> + +- Add wslay-libnettle4.patch for compatibility with libnettle-devel >= 4 + * wslay-libnettle4.patch + +------------------------------------------------------------------- New: ---- wslay-libnettle4.patch ----------(New B)---------- New: - Add wslay-libnettle4.patch for compatibility with libnettle-devel >= 4 * wslay-libnettle4.patch ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ wslay.spec ++++++ --- /var/tmp/diff_new_pack.vC2rMP/_old 2026-11-08 19:23:23.778382018 +0100 +++ /var/tmp/diff_new_pack.vC2rMP/_new 2026-11-08 19:23:23.780382101 +0100 @@ -27,9 +27,9 @@ URL: https://github.com/tatsuhiro-t/wslay Source0: https://github.com/tatsuhiro-t/wslay/archive/release-%{version}.tar.gz#/%{name}-release-%{version}.tar.gz # PATCH-FIX-UPSTREAM -- NOTE: It can only be used on Leap >= 15.3 and Tumbleweed -%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150300 Patch0: 0001-Fix-sphinx-3.3-errors.patch -%endif +# PATCH-FIX-OPENSUSE - fix for nettle >= 4 +Patch1: wslay-libnettle4.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: cunit-devel @@ -92,7 +92,11 @@ This package holds the development files. %prep -%autosetup -p1 -n %{name}-release-%{version} +%setup -q -n %{name}-release-%{version} +%patch -P 0 -p1 +%if %{pkg_vcmp libnettle-devel >= 4} +%patch -P 1 -p1 +%endif %build export CFLAGS="%{optflags} -fpermissive" ++++++ wslay-libnettle4.patch ++++++ diff -purN a/examples/echoserv.cc b/examples/echoserv.cc --- a/examples/echoserv.cc 2020-06-20 08:51:51.000000000 +0200 +++ b/examples/echoserv.cc 2026-11-08 18:21:16.054240291 +0100 @@ -50,7 +50,7 @@ #include <fstream> #include <nettle/base64.h> -#include <nettle/sha.h> +#include <nettle/sha1.h> #include <wslay/wslay.h> int create_listen_socket(const char *service) @@ -112,7 +112,7 @@ std::string sha1(const std::string& src) sha1_init(&ctx); sha1_update(&ctx, src.size(), reinterpret_cast<const uint8_t*>(src.c_str())); uint8_t temp[SHA1_DIGEST_SIZE]; - sha1_digest(&ctx, SHA1_DIGEST_SIZE, temp); + sha1_digest(&ctx, temp); std::string res(&temp[0], &temp[SHA1_DIGEST_SIZE]); return res; } diff -purN a/examples/fork-echoserv.c b/examples/fork-echoserv.c --- a/examples/fork-echoserv.c 2020-06-20 08:51:51.000000000 +0200 +++ b/examples/fork-echoserv.c 2026-11-08 18:21:46.692471721 +0100 @@ -53,7 +53,7 @@ #include <ctype.h> #include <nettle/base64.h> -#include <nettle/sha.h> +#include <nettle/sha1.h> #include <wslay/wslay.h> /* @@ -127,7 +127,7 @@ void sha1(uint8_t *dst, const uint8_t *s struct sha1_ctx ctx; sha1_init(&ctx); sha1_update(&ctx, src_length, src); - sha1_digest(&ctx, SHA1_DIGEST_SIZE, dst); + sha1_digest(&ctx, dst); } /* diff -purN a/examples/testclient.cc b/examples/testclient.cc --- a/examples/testclient.cc 2020-06-20 08:51:51.000000000 +0200 +++ b/examples/testclient.cc 2026-11-08 18:22:21.970445832 +0100 @@ -49,7 +49,7 @@ #include <fstream> #include <nettle/base64.h> -#include <nettle/sha.h> +#include <nettle/sha1.h> #include <wslay/wslay.h> int connect_to(const char *host, const char *service) @@ -103,7 +103,7 @@ std::string sha1(const std::string& src) sha1_init(&ctx); sha1_update(&ctx, src.size(), reinterpret_cast<const uint8_t*>(src.c_str())); uint8_t temp[SHA1_DIGEST_SIZE]; - sha1_digest(&ctx, SHA1_DIGEST_SIZE, temp); + sha1_digest(&ctx, temp); std::string res(&temp[0], &temp[SHA1_DIGEST_SIZE]); return res; }
