public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/aria2] rawhide: Fix build with nettle 4.0
@ 2026-09-02 14:40 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-09-02 14:40 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/aria2
Branch : rawhide
Commit : b66ac55f6ca76a11e33e1258a6b1a8adc54a5ec6
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-09-01T21:33:58-04:00
Stats : +39/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/aria2/c/b66ac55f6ca76a11e33e1258a6b1a8adc54a5ec6?branch=rawhide
Log:
Fix build with nettle 4.0
https://github.com/aria2/aria2/pull/2358
---
diff --git a/2358.patch b/2358.patch
new file mode 100644
index 0000000..a0f65eb
--- /dev/null
+++ b/2358.patch
@@ -0,0 +1,33 @@
+From be1caa2db4912df28d4d9236beb64e7a17b8cdfe Mon Sep 17 00:00:00 2001
+From: Antonio Rojas <arojas@archlinux.org>
+Date: Tue, 19 May 2026 16:20:16 +0800
+Subject: [PATCH] Fix build against nettle 4.0
+
+---
+ src/LibnettleMessageDigestImpl.cc | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/LibnettleMessageDigestImpl.cc b/src/LibnettleMessageDigestImpl.cc
+index c6c2d7cec6..d85c42ed37 100644
+--- a/src/LibnettleMessageDigestImpl.cc
++++ b/src/LibnettleMessageDigestImpl.cc
+@@ -36,6 +36,7 @@
+ #include "MessageDigestImpl.h"
+
+ #include <nettle/nettle-meta.h>
++#include <nettle/version.h>
+
+ #include "Adler32MessageDigestImpl.h"
+
+@@ -69,7 +70,11 @@ class MessageDigestBase : public MessageDigestImpl {
+ }
+ virtual void digest(unsigned char* md) CXX11_OVERRIDE
+ {
++#if NETTLE_VERSION_MAJOR > 3
++ hash->digest(ctx_.get(), md);
++#else
+ hash->digest(ctx_.get(), getDigestLength(), md);
++#endif
+ }
+
+ private:
diff --git a/aria2.spec b/aria2.spec
index 781141b..297ae28 100644
--- a/aria2.spec
+++ b/aria2.spec
@@ -2,12 +2,14 @@
Name: aria2
Version: 1.37.0
-Release: 10%{?dist}
+Release: 11%{?dist}
Summary: High speed download utility with resuming and segmented downloading
# Automatically converted from old format: GPLv2+ with exceptions - review is highly recommended.
License: LicenseRef-Callaway-GPLv2+-with-exceptions
URL: http://aria2.github.io/
Source0: https://github.com/aria2/%{name}/releases/download/release-%{version}/%{name}-%{version}.tar.xz
+# Fix build against Nettle 4.0
+Patch0: https://github.com/aria2/aria2/pull/2358.patch
BuildRequires: bison
BuildRequires: c-ares-devel
@@ -80,6 +82,9 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
%{_mandir}/*/man1/aria2c.1.gz
%changelog
+* Wed Sep 02 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 1.37.0-11
+- Fix build with nettle 4.0
+
* Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.37.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-02 14:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-02 14:40 [rpms/aria2] rawhide: Fix build with nettle 4.0 Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox