Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package freeradius-client for openSUSE:Factory checked in at 2026-10-15 21:09:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/freeradius-client (Old) and /work/SRC/openSUSE:Factory/.freeradius-client.new.3698736 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "freeradius-client" Thu Oct 15 21:09:01 2026 rev:23 rq:1385037 version:1.1.7 Changes: -------- --- /work/SRC/openSUSE:Factory/freeradius-client/freeradius-client.changes 2024-02-29 21:50:47.802963797 +0100 +++ /work/SRC/openSUSE:Factory/.freeradius-client.new.3698736/freeradius-client.changes 2026-10-15 21:09:02.531073297 +0200 @@ -1,0 +2,16 @@ +Thu Oct 15 13:50:00 UTC 2026 - Ana Guerrero <[email protected]> + +- Add freeradius-client-nettle4.patch: + * Adapt to Nettle 4.0 API (<nettle/md5.h>, struct md5_ctx, + md5_init, md5_update, md5_digest). + * Maintain conditional compatibility with Nettle 3 and Nettle 4 + by checking NETTLE_VERSION_MAJOR. +- Download source from http instead of ftp and update URL. +- Modernize spec file: + * Cleanup of obsolete lines + * Use %make_build and %make_install macros. + * Use %ldconfig_scriptlets macro for libs subpackage. + * Use pkgconfig(nettle) in BuildRequires. + * Use %license for COPYRIGHT file. + +------------------------------------------------------------------- New: ---- freeradius-client-nettle4.patch ----------(New B)---------- New: - Add freeradius-client-nettle4.patch: * Adapt to Nettle 4.0 API (<nettle/md5.h>, struct md5_ctx, ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ freeradius-client.spec ++++++ --- /var/tmp/diff_new_pack.2UEXl4/_old 2026-10-15 21:09:03.590117599 +0200 +++ /var/tmp/diff_new_pack.2UEXl4/_new 2026-10-15 21:09:03.591117641 +0200 @@ -1,7 +1,7 @@ # # spec file for package freeradius-client # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,18 +21,17 @@ Release: 0 Summary: FreeRADIUS Client Software License: BSD-2-Clause -Group: Productivity/Networking/Radius/Clients -URL: http://www.freeradius.org/freeradius-client/ -Source: ftp://ftp.freeradius.org/pub/freeradius/%{name}-%{version}.tar.gz +URL: https://freeradius.org/sub_projects/ +Source0: https://www.freeradius.org/ftp/pub/radius/%{name}-%{version}.tar.gz Source1: README.SUSE Source2: login.example Patch0: freeradius-client-missing_size_t_definition.patch -BuildRequires: libnettle-devel +Patch1: freeradius-client-nettle4.patch BuildRequires: libtool -BuildRequires: pkg-config +BuildRequires: pkgconfig +BuildRequires: pkgconfig(nettle) >= 2.4 Obsoletes: radiusclient Obsoletes: radiusclient-ng -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description A portable, easy-to-use and standard compliant library suitable for @@ -41,14 +40,12 @@ %package libs Summary: Shared library of FreeRADIUS Client -Group: Productivity/Networking/Radius/Clients %description libs -The package contains the shared library of FreeRADIUS Client +The package contains the shared library of FreeRADIUS Client. %package devel Summary: Header files, libraries and development documentation for freeradius-client -Group: Productivity/Networking/Radius/Clients Requires: %{name}-libs = %{version} Requires: glibc-devel @@ -74,22 +71,20 @@ --with-secure-path \ --disable-static \ --with-pic -make %{?_smp_mflags} +%make_build %install -make "DESTDIR=$RPM_BUILD_ROOT" install -rm -f %{buildroot}/%{_sbindir}/login.radius +%make_install +rm -f %{buildroot}%{_sbindir}/login.radius rm -f login.radius/Makefile* rm -f login.radius/migs/Makefile* find %{buildroot} -type f -name "*.la" -delete -print -%post libs -p /sbin/ldconfig - -%postun libs -p /sbin/ldconfig +%ldconfig_scriptlets libs %files -%defattr(-, root, root) -%doc BUGS COPYRIGHT README.radexample doc/ChangeLog doc/instop.html doc/login.example +%license COPYRIGHT +%doc BUGS README.radexample doc/ChangeLog doc/instop.html doc/login.example %doc login.radius README.SUSE %dir %{_sysconfdir}/radiusclient %{_sysconfdir}/radiusclient/dictionary @@ -101,11 +96,9 @@ %{_sbindir}/* %files libs -%defattr(-, root, root) %{_libdir}/*.so.* %files devel -%defattr(-, root, root) %{_libdir}/*.so %{_includedir}/*.h ++++++ freeradius-client-nettle4.patch ++++++ Adapt MD5 implementation to Nettle 4.0 API. Nettle 4.0 dropped <nettle/md5-compat.h> and RFC 1321 compat functions. Use native <nettle/md5.h> API and conditionally handle the md5_digest signature change between Nettle 3 and Nettle 4 via NETTLE_VERSION_MAJOR. --- a/lib/rc-md5.c +++ b/lib/rc-md5.c @@ -15,10 +15,22 @@ void rc_md5_calc(unsigned char *output, unsigned char const *input, size_t inlen) { +#ifdef HAVE_NETTLE + struct md5_ctx context; + + md5_init(&context); + md5_update(&context, inlen, input); +#if defined(NETTLE_VERSION_MAJOR) && NETTLE_VERSION_MAJOR >= 4 + md5_digest(&context, output); +#else + md5_digest(&context, MD5_DIGEST_SIZE, output); +#endif +#else MD5_CTX context; MD5Init(&context); MD5Update(&context, input, inlen); MD5Final(output, &context); +#endif } --- a/lib/rc-md5.h +++ b/lib/rc-md5.h @@ -14,7 +14,8 @@ #ifdef HAVE_NETTLE -#include <nettle/md5-compat.h> +#include <nettle/md5.h> +#include <nettle/version.h> #else
