Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package freetds for openSUSE:Factory checked in at 2026-08-01 18:28:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/freetds (Old) and /work/SRC/openSUSE:Factory/.freetds.new.16738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "freetds" Sat Aug 1 18:28:31 2026 rev:47 rq:1366728 version:1.4.27 Changes: -------- --- /work/SRC/openSUSE:Factory/freetds/freetds.changes 2025-09-04 17:59:07.862073194 +0200 +++ /work/SRC/openSUSE:Factory/.freetds.new.16738/freetds.changes 2026-08-01 18:29:17.923707524 +0200 @@ -1,0 +2,16 @@ +Fri Jul 17 16:13:27 UTC 2026 - Pedro Monreal <[email protected]> + +- More fixes for FTBFS with libnettle 4.0: (boo#1257934) + * Hash length parameter was removed from digest functions like + nettle_md4_digest and sha1_digest. + * Rebase freetds-Fix-FTBFS-nettle-4.0.patch + +------------------------------------------------------------------- +Mon Apr 20 08:47:41 UTC 2026 - Pedro Monreal <[email protected]> + +- Fix FTBFS with libnettle 4.0: (boo#1257934) + * utils: Fix compatibility with Nettle 4 library + Hash length parameter was removed from nettle_md5_digest. + * Add freetds-Fix-FTBFS-nettle-4.0.patch + +------------------------------------------------------------------- New: ---- freetds-Fix-FTBFS-nettle-4.0.patch ----------(New B)---------- New: nettle_md4_digest and sha1_digest. * Rebase freetds-Fix-FTBFS-nettle-4.0.patch ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ freetds.spec ++++++ --- /var/tmp/diff_new_pack.4U4KFA/_old 2026-08-01 18:29:18.791737097 +0200 +++ /var/tmp/diff_new_pack.4U4KFA/_new 2026-08-01 18:29:18.791737097 +0200 @@ -25,6 +25,8 @@ Source: https://www.freetds.org/files/stable/freetds-%{version}.tar.gz Source1: baselibs.conf Patch0: configure-return-void-fix.patch +#PATCH-FIX-UPSTREAM bsc#1257934 FTBFS with libnettle 4.0 update +Patch1: freetds-Fix-FTBFS-nettle-4.0.patch BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: pkgconfig ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.4U4KFA/_old 2026-08-01 18:29:18.827738324 +0200 +++ /var/tmp/diff_new_pack.4U4KFA/_new 2026-08-01 18:29:18.831738460 +0200 @@ -1,5 +1,5 @@ -mtime: 1756903822 -commit: 35a4fb88cc53a55d94b66821560511592c50205700ea192aae8c07e511c2c483 +mtime: 1784539320 +commit: df10d3bb1464bb418c87676622c15ca11748ee80acdfa18da72df38b398d9985 url: https://src.opensuse.org/clibs/freetds revision: master ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-07-20 11:22:00.000000000 +0200 @@ -0,0 +1 @@ +.osc ++++++ freetds-Fix-FTBFS-nettle-4.0.patch ++++++ >From e2bf8f3a3e81f1aa94fd15fa206dd4ec5ddf2ec7 Mon Sep 17 00:00:00 2001 From: Frediano Ziglio <[email protected]> Date: Sat, 14 Feb 2026 17:16:58 +0000 Subject: [PATCH] utils: Fix compatibility with Nettle 4 library Hash length parameter was removed from nettle_md5_digest. Method suggested by Satadru Pramanik. Signed-off-by: Frediano Ziglio <[email protected]> --- include/freetds/utils/md5.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/freetds/utils/md5.h b/include/freetds/utils/md5.h index c134b0c49c..ff59a936c6 100644 --- a/include/freetds/utils/md5.h +++ b/include/freetds/utils/md5.h @@ -25,6 +25,7 @@ typedef struct MD5Context MD5_CTX; #else #include <nettle/md5.h> +#include <nettle/version.h> typedef struct md5_ctx MD5_CTX; @@ -40,7 +41,11 @@ static inline void MD5Update(MD5_CTX *ctx, const uint8_t *buf, size_t len) static inline void MD5Final(MD5_CTX *ctx, uint8_t *digest) { +#if defined(NETTLE_VERSION_MAJOR) && NETTLE_VERSION_MAJOR >= 4 + nettle_md5_digest(ctx, digest); +#else nettle_md5_digest(ctx, 16, digest); +#endif } #endif >From 67663a02c5ba746254fadb882ff22798c2590d8d Mon Sep 17 00:00:00 2001 From: Frediano Ziglio <[email protected]> Date: Fri, 15 May 2026 22:38:43 +0100 Subject: [PATCH] Fix compatibility with Nettle 4 library Hash length parameter was removed from digest functions like nettle_md4_digest and sha1_digest. Change similar to commit e2bf8f3a3e81f1aa94fd15fa206dd4ec5ddf2ec7 (cfr "utils: Fix compatibility with Nettle 4 library"). Signed-off-by: Frediano Ziglio <[email protected]> --- include/freetds/utils/md4.h | 5 +++++ src/tds/sec_negotiate_gnutls.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/include/freetds/utils/md4.h b/include/freetds/utils/md4.h index 0a4e3abbbf..61109d9186 100644 --- a/include/freetds/utils/md4.h +++ b/include/freetds/utils/md4.h @@ -23,6 +23,7 @@ typedef struct MD4Context MD4_CTX; #else #include <nettle/md4.h> +#include <nettle/version.h> typedef struct md4_ctx MD4_CTX; @@ -38,7 +39,11 @@ static inline void MD4Update(MD4_CTX *ctx, const uint8_t *buf, size_t len) static inline void MD4Final(MD4_CTX *ctx, uint8_t *digest) { +#if defined(NETTLE_VERSION_MAJOR) && NETTLE_VERSION_MAJOR >= 4 + nettle_md4_digest(ctx, digest); +#else nettle_md4_digest(ctx, 16, digest); +#endif } diff --git a/src/tds/sec_negotiate_gnutls.h b/src/tds/sec_negotiate_gnutls.h index 10bf90b2fc..6a1f8d5218 100644 --- a/src/tds/sec_negotiate_gnutls.h +++ b/src/tds/sec_negotiate_gnutls.h @@ -35,6 +35,7 @@ # include <nettle/asn1.h> # include <nettle/rsa.h> # include <nettle/bignum.h> +# include <nettle/version.h> #endif /** @@ -186,7 +187,11 @@ sha1(uint8_t *hash, const void *data, size_t len) struct sha1_ctx ctx; sha1_init(&ctx); sha1_update(&ctx, len, (const uint8_t *) data); +#if defined(NETTLE_VERSION_MAJOR) && NETTLE_VERSION_MAJOR >= 4 + sha1_digest(&ctx, hash); +#else sha1_digest(&ctx, 20, hash); +#endif } #endif
