Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package looking-glass for openSUSE:Factory checked in at 2026-10-11 15:20:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/looking-glass (Old) and /work/SRC/openSUSE:Factory/.looking-glass.new.3698736 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "looking-glass" Sun Oct 11 15:20:44 2026 rev:3 rq:1384024 version:B7 Changes: -------- --- /work/SRC/openSUSE:Factory/looking-glass/looking-glass.changes 2026-04-23 17:14:15.864508893 +0200 +++ /work/SRC/openSUSE:Factory/.looking-glass.new.3698736/looking-glass.changes 2026-10-11 15:25:55.723409701 +0200 @@ -1,0 +2,6 @@ +Sat Oct 10 06:58:04 UTC 2026 - [email protected] + +- Add fix-compatibility-for-nettle-4.patch + * rsa: add compatibility for nettle 4.x (gh#gnif/PureSpice#22) + +------------------------------------------------------------------- New: ---- fix-compatibility-for-nettle-4.patch ----------(New B)---------- New: - Add fix-compatibility-for-nettle-4.patch * rsa: add compatibility for nettle 4.x (gh#gnif/PureSpice#22) ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ looking-glass.spec ++++++ --- /var/tmp/diff_new_pack.Pq5BVm/_old 2026-10-11 15:25:56.346436131 +0200 +++ /var/tmp/diff_new_pack.Pq5BVm/_new 2026-10-11 15:25:56.348436216 +0200 @@ -23,6 +23,8 @@ URL: https://looking-glass.io/ Source0: %{name}-%{version}.tar.xz Patch1: fix-bfd-ctf-zstd.patch +# PATCH-FIX-UPSTREAM fix-compatibility-for-nettle-4.patch gh#gnif/PureSpice#22 +Patch2: fix-compatibility-for-nettle-4.patch BuildRequires: binutils-devel BuildRequires: cmake BuildRequires: c++_compiler @@ -64,7 +66,9 @@ An extremely low latency KVMFR (KVM FrameRelay) implementation for guests with VGA PCI Passthrough. %prep -%autosetup -n %{name}-%{version} -p1 +%setup -q -n %{name}-%{version} +%patch -P 1 -p1 +%patch -P 2 -d repos/PureSpice -p1 sed -i 's|@CMAKE_INSTALL_PREFIX@|%{_prefix}|g' resources/looking-glass-client.desktop.in ++++++ fix-compatibility-for-nettle-4.patch ++++++ >From 37802d09b500e4a615d9cc36c1d1388bcf999a97 Mon Sep 17 00:00:00 2001 From: Nikko Renn <[email protected]> Date: Mon, 11 May 2026 14:57:20 -0400 Subject: [PATCH] rsa: add compatibility for nettle 4.x --- CMakeLists.txt | 7 +++++++ src/rsa.c | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4193d45..ac3739f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,13 @@ pkg_check_modules(SPICE_PKGCONFIG REQUIRED hogweed ) +if (SPICE_PKGCONFIG_nettle_VERSION) + if (SPICE_PKGCONFIG_nettle_VERSION VERSION_GREATER_EQUAL "4.0") + message(STATUS "Using nettle >= 4.0 compatibility") + add_compile_definitions(USE_NETTLE_GE_4) + endif() +endif() + add_definitions(-D USE_NETTLE) add_compile_options( diff --git a/src/rsa.c b/src/rsa.c index 73fba92..a5f384b 100644 --- a/src/rsa.c +++ b/src/rsa.c @@ -62,7 +62,12 @@ static void sha1(uint8_t * hash, const uint8_t *data, unsigned int len) sha1_init(&ctx); sha1_update(&ctx, len, data); + +#if defined(USE_NETTLE_GE_4) + sha1_digest(&ctx, hash); +#else sha1_digest(&ctx, SHA1_HASH_LEN, hash); +#endif } static void oaep_mask(uint8_t * dest, size_t dest_len,
