public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/aria2] rawhide: Fix build with nettle 4.0
Date: Wed, 02 Sep 2026 14:40:24 GMT [thread overview]
Message-ID: <178836002489.1.4958191664775538847.rpms-aria2-b66ac55f6ca7@fedoraproject.org> (raw)
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
reply other threads:[~2026-09-02 14:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178836002489.1.4958191664775538847.rpms-aria2-b66ac55f6ca7@fedoraproject.org \
--to=yselkowi@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox