From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] rng-tools: Update to version 6.14 Date: Wed, 01 Dec 2021 15:15:48 +0000 Message-ID: <602D387D-8D66-465A-B539-14951BF64A4E@ipfire.org> In-Reply-To: <20211201122903.3436682-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4819294097580793698==" List-Id: --===============4819294097580793698== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, > On 1 Dec 2021, at 12:29, Adolf Belka wrote: >=20 > - Update from 6.12 to 6.14 > - Update of rootfile not required > - patch for building rng-tools also for i586 removed as 32 bit will no long= er be EOL at > end of 2021 This is slightly jumping the gun because 2021 hasn=E2=80=99t ended, yet :) However, since this will not be part of Core Update 162 and 163 will probably= be released in the new year, this should be fine. > - Building 6.14 caused an error for not finding librtlsdr. The same check i= s in the > makefile in 6.12 but it does not get checked. I could not find why the ch= eck was being > carried out in 6.14 - it was not due to the removal of the patch. In the = end I added > the --disable-rtlsdr option to configure and this allowed the build to oc= cur without > the check for the prescence of librtlsdr being carried out. That is also fine for me. We probably don=E2=80=99t want any entropy sources = like this. Reviewed-by: Michael Tremer > - Changelog > rng-tools 6.14 > Bug Fixes: > Fixed a null pointer deref in nistbeacon entropy source > fixed some confguration tests > clarified some rngd behavior in the man page > update init code to do proper logging > various covscan fixes > fixed a memory leak in jitter entropy source > fixed possible NULL deref in rdrand source > various fixed in openssl mangling code > added randstat binary to build > minor modernizations to configure.ac > rng-tools 6.13 > Features: > Support rndr instruction on arm > Support jitter software timer on coarse time systems > Bug Fixes: > Merged all openssl use into a single helper library > Improved console output readability >=20 > Signed-off-by: Adolf Belka > --- > lfs/rng-tools | 10 +++--- > ...g-tools-6-Enable-RDRAND-for-i586-too.patch | 35 ------------------- > 2 files changed, 6 insertions(+), 39 deletions(-) > delete mode 100644 src/patches/rng-tools-6-Enable-RDRAND-for-i586-too.patch >=20 > diff --git a/lfs/rng-tools b/lfs/rng-tools > index 4b9915f40..31706015f 100644 > --- a/lfs/rng-tools > +++ b/lfs/rng-tools > @@ -24,7 +24,7 @@ >=20 > include Config >=20 > -VER =3D 6.12 > +VER =3D 6.14 >=20 > THISAPP =3D rng-tools-$(VER) > DL_FILE =3D $(THISAPP).tar.gz > @@ -40,7 +40,7 @@ objects =3D $(DL_FILE) >=20 > $(DL_FILE) =3D $(DL_FROM)/$(DL_FILE) >=20 > -$(DL_FILE)_MD5 =3D 17f2815263b6ce6a353625b1fe615346 > +$(DL_FILE)_MD5 =3D 917d21dd2b06816b0484e220dfb5ba4b >=20 > install : $(TARGET) >=20 > @@ -70,9 +70,11 @@ $(subst %,%_MD5,$(objects)) : > $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) > @$(PREBUILD) > @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) > - cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/rng-tools-6-Enable-R= DRAND-for-i586-too.patch > cd $(DIR_APP) && ./autogen.sh > - cd $(DIR_APP) && ./configure --prefix=3D/usr --without-pkcs11 > + cd $(DIR_APP) && ./configure \ > + --prefix=3D/usr \ > + --without-pkcs11 \ > + --without-rtlsdr > cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) > cd $(DIR_APP) && make $(EXTRA_INSTALL) install > @rm -rf $(DIR_APP) > diff --git a/src/patches/rng-tools-6-Enable-RDRAND-for-i586-too.patch b/src= /patches/rng-tools-6-Enable-RDRAND-for-i586-too.patch > deleted file mode 100644 > index 7d45bd0b8..000000000 > --- a/src/patches/rng-tools-6-Enable-RDRAND-for-i586-too.patch > +++ /dev/null > @@ -1,35 +0,0 @@ > -From 1f023b49959aa58246e6bb7091ba7710116f6915 Mon Sep 17 00:00:00 2001 > -From: Michael Tremer > -Date: Sun, 9 Sep 2018 17:29:15 +0100 > -Subject: [PATCH] Enable RDRAND for i586, too > - > -IPFire is being compiled for i586 omitting some instructions > -for i686. However, RDRAND is available on some systems and > -can of course be used. > - > -Signed-off-by: Michael Tremer > - > -Pull request sent: https://github.com/nhorman/rng-tools/pull/31 > - > ---- > - configure.ac | 4 ++-- > - 1 file changed, 2 insertions(+), 2 deletions(-) > - > -diff --git a/configure.ac b/configure.ac > -index faba7cc9857e..716175328ff6 100644 > ---- a/configure.ac > -+++ b/configure.ac > -@@ -53,8 +53,8 @@ AC_CHECK_TOOLS([AR], [ar gar], :) > -=20 > - AX_PTHREAD > -=20 > --AM_CONDITIONAL([RDRAND], [test $target_cpu =3D x86_64 -o $target_cpu =3D = i686]) > --AS_IF([test $target_cpu =3D x86_64 -o $target_cpu =3D i686], [AC_DEFINE([= HAVE_RDRAND],1,[Enable RDRAND])],[]) > -+AM_CONDITIONAL([RDRAND], [test $target_cpu =3D x86_64 -o $target_cpu =3D = i686 -o $target_cpu =3D i586]) > -+AS_IF([test $target_cpu =3D x86_64 -o $target_cpu =3D i686 -o $target_cpu= =3D i586], [AC_DEFINE([HAVE_RDRAND],1,[Enable RDRAND])],[]) > -=20 > - AM_CONDITIONAL([DARN], [test $target_cpu =3D powerpc64le]) > - AS_IF([test $target_cpu =3D powerpc64le], [AC_DEFINE([HAVE_DARN],1,[Enabl= e DARN])],[]) > ---=20 > -2.17.1 > - > --=20 > 2.34.0 >=20 --===============4819294097580793698==--