Update to the upstream v6.17

Update to the upstream v6.17 @ e8da3cdc
Handle new radiacode entropy source
Build with the updated jitterentropy v3.7.0 library
Drop the older i686 force-PIC fix

Resolves: RHEL-176340

Signed-off-by: Vladislav Dronov <vdronov@redhat.com>
This commit is contained in:
Vladislav Dronov 2026-05-25 14:51:11 +02:00
parent c2edd1ce9c
commit fac7f714d3
4 changed files with 18 additions and 16 deletions

View File

@ -1,6 +0,0 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -4,15 +4,17 @@
%if 0%{?rhel} && 0%{?rhel} >= 9
%bcond_with pkcs11
%bcond_with rtlsdr
%bcond_with radiacode
%else
%bcond_without pkcs11
%bcond_without rtlsdr
%bcond_without radiacode
%endif
Summary: Random number generator related utilities
Name: rng-tools
Version: 6.17
Release: 2%{?dist}
Release: 10%{?dist}
License: GPL-2.0-or-later
URL: https://github.com/nhorman/rng-tools
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
@ -35,6 +37,9 @@ BuildRequires: rtl-sdr-devel
BuildRequires: libp11-devel
Suggests: opensc
%endif
%if %{with radiacode}
BuildRequires: libusb1-devel
%endif
Requires(post): systemd
Requires(preun): systemd
@ -62,17 +67,14 @@ TPM, jitter) and supplies entropy from them to a kernel entropy pool.
%if !%{with rtlsdr}
%define _without_rtlsdr --without-rtlsdr
%endif
%if !%{with radiacode}
%define _without_radiacode --without-radiacode
%endif
./autogen.sh
# a dirty hack to force PIC for a PIC-aware assembly code for i686
# /usr/lib/rpm/redhat/redhat-hardened-cc1 in Koji/Brew does not
# force PIC for assembly sources as of now
%ifarch i386 i686
sed -i -e '/^#define RDRAND_RETRY_LIMIT\t10/a#define __PIC__ 1' rdrand_asm.S
%endif
# a dirty hack so libdarn_impl_a_CFLAGS overrides common CFLAGS
sed -i -e 's/$(libdarn_impl_a_CFLAGS) $(CFLAGS)/$(CFLAGS) $(libdarn_impl_a_CFLAGS)/' Makefile.in
%configure %{?_without_pkcs11} %{?_without_rtlsdr}
%configure %{?_without_pkcs11} %{?_without_rtlsdr} %{?_without_radiacode}
%make_build
%install
@ -104,6 +106,12 @@ install -D %{SOURCE2} -m0644 %{buildroot}%{_sysconfdir}/sysconfig/rngd
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/rngd
%changelog
* Wed May 20 2026 Vladislav Dronov <vdronov@redhat.com> - 6.17-10
- Update to the upstream v6.17 @ e8da3cdc (RHEL-176340)
- Handle new radiacode entropy source
- Build with the updated jitterentropy v3.7.0 library
- Drop the older i686 force-PIC fix
* Thu Jun 26 2025 Vladis Dronov <vdronov@redhat.com> - 6.17-2
- Disable jitter entropy source by default (RHEL-91119)

View File

@ -1,3 +1,3 @@
# Optional arguments passed to rngd. See rngd(8) and
# https://bugzilla.redhat.com/show_bug.cgi?id=1252175#c21
RNGD_ARGS="--fill-watermark=0 -x pkcs11 -x nist -x qrypt -x namedpipe -x jitter -D daemon:daemon"
RNGD_ARGS="--fill-watermark=0 -x pkcs11 -x nist -x qrypt -x namedpipe -x jitter -x radiacode -x rtlsdr -D daemon:daemon"

View File

@ -1 +1 @@
SHA512 (rng-tools-6.17.tar.gz) = 32d2d18b9ff13976f6af0011d89fe962fac41761e66eeb24a54f372c7068c8f665537aab6b396e432954d52101b56cd73ac27d27f6a59937d48fc549d9b71421
SHA512 (rng-tools-6.17.tar.gz) = 529b1359174e1ef39dbbe4788b602daa6d84fd9998f96c19c66bf3b4cb7ec23381890cbde630541711d039936650c8bde1df2f05a4a64b4cc0d77731bed8bd04