From ad9ea73b6a32e0dabe66cb0609f7c68a7b1480f9 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Sat, 15 Oct 2022 04:17:36 +0000 Subject: [PATCH] Auto sync2gitlab import of rng-tools-6.15-2.el8.src.rpm --- .gitignore | 1 + 1-je-rh-makefile.patch | 6 +---- 3-rt-use-jitter-static.patch | 6 ++++- ...patch => 4-rt-comment-out-have-aesni.patch | 0 ....patch => 5-rt-revert-build-randstat.patch | 0 6-rt-fix-jent-define.patch | 14 ----------- rng-tools.spec | 25 ++++++++++++------- rngd.sysconfig | 2 +- sources | 4 +-- 9 files changed, 26 insertions(+), 32 deletions(-) rename 5-rt-comment-out-have-aesni.patch => 4-rt-comment-out-have-aesni.patch (100%) rename 4-rt-revert-build-randstat.patch => 5-rt-revert-build-randstat.patch (100%) delete mode 100644 6-rt-fix-jent-define.patch diff --git a/.gitignore b/.gitignore index cddcc25..cf2d1b9 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /rng-tools-6.14.tar.gz /jitterentropy-library-3.4.0.tar.gz /rng-tools-6.15.tar.gz +/jitterentropy-library-3.4.1.tar.gz diff --git a/1-je-rh-makefile.patch b/1-je-rh-makefile.patch index 5fdfb4b..5d702ed 100644 --- a/1-je-rh-makefile.patch +++ b/1-je-rh-makefile.patch @@ -1,8 +1,7 @@ diff -up jitterentropy-library/Makefile jitterentropy-library/Makefile --- jitterentropy-library/Makefile 2021-07-13 17:23:42.954652287 +0200 +++ jitterentropy-library/Makefile 2021-07-13 17:27:27.958549833 +0200 -@@ -3,11 +3,11 @@ - CC ?= gcc +@@ -4,7 +4,7 @@ CC ?= gcc #Hardening ENABLE_STACK_PROTECTOR ?= 1 CFLAGS ?= -fwrapv --param ssp-buffer-size=4 -fvisibility=hidden -fPIE -Wcast-align -Wmissing-field-initializers -Wshadow -Wswitch-enum @@ -11,9 +10,6 @@ diff -up jitterentropy-library/Makefile jitterentropy-library/Makefile LDFLAGS +=-Wl,-z,relro,-z,now -lpthread # Enable internal timer support - CFLAGS += -DJENT_CONF_ENABLE_INTERNAL_TIMER - - GCCVERSIONFORMAT := $(shell echo `$(CC) -dumpversion | sed 's/\./\n/g' | wc -l`) @@ -28,7 +28,7 @@ LIBDIR := lib INCDIR := include SRCDIR := src diff --git a/3-rt-use-jitter-static.patch b/3-rt-use-jitter-static.patch index b77055c..5fea975 100644 --- a/3-rt-use-jitter-static.patch +++ b/3-rt-use-jitter-static.patch @@ -10,7 +10,7 @@ diff -up Makefile.am Makefile.am sbin_PROGRAMS = rngd bin_PROGRAMS = rngtest -@@ -27,40 +27,27 @@ if RNDR +@@ -23,44 +23,31 @@ if RNDR rngd_SOURCES += rngd_rndr.c endif @@ -22,6 +22,10 @@ diff -up Makefile.am Makefile.am -rngd_SOURCES += rngd_rtlsdr.c -endif + if QRYPT + rngd_SOURCES += rngd_qrypt.c + endif + -rngd_LDADD = librngd.a $(LIBS) $(librtlsdr_LIBS) ${libp11_LIBS} ${libcrypto_LIBS} ${jansson_LIBS} ${libcurl_LIBS} ${libxml2_LIBS} ${openssl_LIBS} ${libcap_LIBS} $(PTHREAD_LIBS) +rngd_LDADD = librngd.a $(LIBS) jitterentropy-library/libjitterentropy.a ${libcrypto_LIBS} ${jansson_LIBS} ${libcurl_LIBS} ${libxml2_LIBS} ${openssl_LIBS} ${libcap_LIBS} $(PTHREAD_LIBS) diff --git a/5-rt-comment-out-have-aesni.patch b/4-rt-comment-out-have-aesni.patch similarity index 100% rename from 5-rt-comment-out-have-aesni.patch rename to 4-rt-comment-out-have-aesni.patch diff --git a/4-rt-revert-build-randstat.patch b/5-rt-revert-build-randstat.patch similarity index 100% rename from 4-rt-revert-build-randstat.patch rename to 5-rt-revert-build-randstat.patch diff --git a/6-rt-fix-jent-define.patch b/6-rt-fix-jent-define.patch deleted file mode 100644 index e208c1a..0000000 --- a/6-rt-fix-jent-define.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- configure.ac 2022-03-24 13:14:11.000000000 +0100 -+++ configure.ac.new 2022-03-24 15:58:56.187367770 +0100 -@@ -95,7 +95,10 @@ AS_IF( - [AM_CONDITIONAL([JITTER], [true]) - AC_DEFINE([HAVE_JITTER],1,[Enable JITTER]) - AC_CHECK_LIB(jitterentropy, jent_notime_settick, -- [AC_DEFINE([HAVE_JITTER_NOTIME],1,[Enable JITTER_NOTIME])], -+ [ -+ AC_DEFINE([HAVE_JITTER_NOTIME],1,[Enable JITTER_NOTIME]) -+ AC_DEFINE([JENT_CONF_ENABLE_INTERNAL_TIMER],1,[Enable JENT_CONF_ENABLE_INTERNAL_TIMER]) -+ ], - [],-lpthread)], - AC_MSG_NOTICE([No Jitterentropy library found]),-lpthread) - ], [AC_MSG_NOTICE([Disabling JITTER entropy source])] diff --git a/rng-tools.spec b/rng-tools.spec index 815145e..c828c51 100644 --- a/rng-tools.spec +++ b/rng-tools.spec @@ -3,19 +3,19 @@ Summary: Random number generator related utilities Name: rng-tools Version: 6.15 -Release: 1%{?dist} +Release: 2%{?dist} Group: System Environment/Base License: GPLv2+ URL: https://github.com/nhorman/rng-tools Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: rngd.service Source2: rngd.sysconfig -Source3: jitterentropy-library-3.4.0.tar.gz +Source3: jitterentropy-library-3.4.1.tar.gz BuildRequires: gcc make binutils BuildRequires: gettext BuildRequires: systemd systemd-rpm-macros -BuildRequires: autoconf automake +BuildRequires: autoconf >= 2.57, automake >= 1.7 BuildRequires: libgcrypt-devel libcurl-devel BuildRequires: libxml2-devel openssl-devel BuildRequires: jansson-devel @@ -24,14 +24,16 @@ BuildRequires: libcap-devel Requires(post): systemd Requires(preun): systemd Requires(postun): systemd -Requires: selinux-policy >= 3.14.3-98 + +# This ensures that the selinux-policy package and all its dependencies +# are not pulled into containers and other systems that do not use SELinux. +Requires: (selinux-policy >= 3.14.3-98 if selinux-policy) Patch0: 1-je-rh-makefile.patch Patch1: 2-je-remove-install.patch Patch2: 3-rt-use-jitter-static.patch -Patch3: 4-rt-revert-build-randstat.patch -Patch4: 5-rt-comment-out-have-aesni.patch -Patch5: 6-rt-fix-jent-define.patch +Patch3: 4-rt-comment-out-have-aesni.patch +Patch4: 5-rt-revert-build-randstat.patch %description This is a random number generator daemon and its tools. It monitors @@ -41,7 +43,7 @@ TPM, jitter) and supplies entropy from them to a kernel entropy pool. %prep %setup -q tar xf %{SOURCE3} -mv jitterentropy-library-3.4.0 jitterentropy-library +mv jitterentropy-library-3.4.1 jitterentropy-library %autopatch -p0 %build @@ -71,7 +73,7 @@ install -D %{SOURCE2} -m0644 %{buildroot}%{_sysconfdir}/sysconfig/rngd %files %{!?_licensedir:%global license %%doc} %license COPYING -%doc AUTHORS README +%doc AUTHORS README.md %{_bindir}/rngtest %{_sbindir}/rngd %{_mandir}/man1/rngtest.1.* @@ -80,6 +82,11 @@ install -D %{SOURCE2} -m0644 %{buildroot}%{_sysconfdir}/sysconfig/rngd %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/rngd %changelog +* Tue Oct 04 2022 Vladis Dronov - 6.15-2 +- Update rng-tools to v6.15 @ 6dcc9ec2 (bz 2124602) +- Update jitterentropy library to v3.4.1 @ 4544e113 +- Do not require selinux-policy if it is not present + * Sat Apr 16 2022 Vladis Dronov - 6.15-1 - Update rng-tools to v6.15 @ 172bf0e3 (bz 2075974) - Update jitterentropy library to v3.4.0 @ 887c9871 diff --git a/rngd.sysconfig b/rngd.sysconfig index dbb6f7a..cce3c6e 100644 --- a/rngd.sysconfig +++ b/rngd.sysconfig @@ -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 -D daemon:daemon" +RNGD_ARGS="--fill-watermark=0 -x pkcs11 -x nist -x qrypt -D daemon:daemon" diff --git a/sources b/sources index 738ab0e..4cbd345 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (jitterentropy-library-3.4.0.tar.gz) = 3199b796c8d867eb3503632e1ea28a7b838f1fa93ada1bc8ba0d856967d13d08f933f67b960db4b5af8ee85670b0e274eaf7a6e33a3fa6167d63a07ec437bb58 -SHA512 (rng-tools-6.15.tar.gz) = 8c3bfb7ae83ef8fbf8e7f028a40e5405f96a2135617347c3cc52f62119f951972b07ea5f1a5f094ebf6c3db35f49d6384a96720cda874115c19934f440592641 +SHA512 (jitterentropy-library-3.4.1.tar.gz) = c832b33c084a8c56fb9ee0c0f7397fa9206cbd6fcbea047495e543566fc0d9b5d8978c8668103203d87b5b70c0e177f9ef7cc614b3ce689b90fbb8b85e6fedbb +SHA512 (rng-tools-6.15.tar.gz) = c64a15861b152edb242ff694cc2f2363e7aff0892aaecb9bbc5a7fe8c60b97fc0b320e466432f220ade0988ae4ef4acc863b509668a4bd70002a7b4c2847f8ab