Update to the upstream v6.16 @ 98cf8d63

Fix a test failure

Resolves: RHEL-30953

Signed-off-by: Vladis Dronov <vdronov@redhat.com>
This commit is contained in:
Vladis Dronov 2024-03-31 17:56:29 +02:00
parent 413fe2501c
commit c09731cddf
7 changed files with 26 additions and 39 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
/rng-tools-6.16.tar.gz
/rng-tools-*.tar.gz

View File

@ -8,30 +8,9 @@ This reverts commit 2ce93190cb0111fcab2f622a539689d70960643a.
Signed-off-by: Vladis Dronov <vdronov@redhat.com>
---
.gitignore | 3 +--
contrib/Makefile.am | 5 +++--
2 files changed, 4 insertions(+), 4 deletions(-)
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git .gitignore .gitignore
index 943fa2b..5dc334d 100644
--- .gitignore
+++ .gitignore
@@ -1,6 +1,6 @@
*.a
*.o
-.deps/
+/.deps/
/aclocal.m4
/ar-lib
/autom4te.cache/
@@ -10,7 +10,6 @@
/config.status
/config.sub
/configure
-/contrib/randstat
/depcomp
/install-sh
/missing
diff --git contrib/Makefile.am contrib/Makefile.am
index a81fb0e..18c4fbc 100644
--- contrib/Makefile.am

View File

@ -12,8 +12,8 @@
Summary: Random number generator related utilities
Name: rng-tools
Version: 6.16
Release: 1%{?dist}
License: GPLv2+
Release: 7%{?dist}
License: GPL-2.0-or-later
URL: https://github.com/nhorman/rng-tools
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: rngd.service
@ -104,6 +104,10 @@ install -D %{SOURCE2} -m0644 %{buildroot}%{_sysconfdir}/sysconfig/rngd
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/rngd
%changelog
* Sat Mar 30 2024 Vladis Dronov <vdronov@redhat.com> - 6.16-7
- Update to the upstream v6.16 + tip of origin/master @ 98cf8d63 (RHEL-30953)
- Fix a test failure
* Thu Mar 02 2023 Vladis Dronov <vdronov@redhat.com> - 6.16-1
- Update to the upstream v6.16 + tip of origin/master @ 0e560296 (bz 2174916)
- Get rid of text relocations in -fPIE build

View File

@ -1 +1 @@
SHA512 (rng-tools-6.16.tar.gz) = 09d3ddc130486380efed726a29fb0a159f05140ee4e7f8a339af089dd75afaeaf2c3dc6a8b8ac955692a39ef9f4056a64cb2878c78a74f706776fb4fd563d7ec
SHA512 (rng-tools-6.16.tar.gz) = 132f7defdeb576771b3665bcd364a6ba4384f29f455a95cc5d8fe28c14bbbaad5b792639a900d16e776a80483b28b7b03a403a6171a8408e6362eeed204d65fb

View File

@ -1,4 +1,3 @@
PURPOSE of /CoreOS/rng-tools/Sanity/selftest
Description: Executes rngtest to validate randomness of rng data
Description: Executes rngtest to validate randomness of rng data
Author: Neil Horman <nhorman@redhat.com>

View File

@ -32,32 +32,34 @@
PACKAGE="rng-tools"
PACKAGES="rng-tools gcc make binutils gettext automake autoconf jitterentropy-devel jansson-devel libcap-devel libxml2 libxml2-devel openssl-devel libcurl-devel libgcrypt-devel"
UPSTREAMPKG="rng-tools-*"
BUILDLOG=`mktemp`
TESTLOG=`mktemp`
TARGET=$(echo `uname -m` | egrep ppc)
TARGET=$(echo `uname -m` | grep -E ppc)
if [[ $TARGET != "" ]]; then TARGET="--target `uname -m`"; fi
TOPDIR=`mktemp -d`
SPEC="$TOPDIR/SPECS/$PACKAGE*.spec"
TESTDIR="$TOPDIR/BUILD/$UPSTREAMPKG/"
TESTDIR="$TOPDIR/BUILD/$PACKAGE"
rlJournalStart
rlPhaseStartSetup
rlPhaseStartSetup
for PKG in $PACKAGES; do
rlAssertRpm $PKG
done
rlPhaseEnd
rlPhaseEnd
rlPhaseStartTest
rlPhaseStartTest
rlFetchSrcForInstalled $PACKAGE
rlRun "rpm -ivh --define '_topdir $TOPDIR' $PACKAGE*.src.rpm" 0 "Installing $PACKAGE src rpm"
echo "+ Building $PACKAGE (Log: $BUILDLOG)"
echo "+ Building $PACKAGE in $TOPDIR (Log: $BUILDLOG)"
echo "+ Build command: rpmbuild -bc $SPEC $TARGET"
rlRun "rpmbuild --define '_topdir $TOPDIR' -bc $SPEC $TARGET &> $BUILDLOG"
echo "+ Buildlog:"
tail -n 100 $BUILDLOG
rlFileSubmit $BUILDLOG
echo "+ Testing $PACKAGE (Log: $TESTLOG)"
rlRun "pushd ."
rlRun "cd $TESTDIR"
# an ugly trick to get exacly into $PACKAGE-$major.$minor directory
cd $TESTDIR-???? || cd $TESTDIR-??? || cd $TESTDIR-????? || echo Failed to cd to a test dir
rlRun "RNGD_JITTER_TIMEOUT=60 make check &> $TESTLOG"
if [ $? -eq 0 ]
then
@ -65,12 +67,14 @@ rlJournalStart
else
rlFail "Selftest Failed"
fi
echo "+ Testlog:"
tail -n 100 $TESTLOG
rlFileSubmit $TESTLOG
rlPhaseEnd
rlPhaseEnd
rlPhaseStartCleanup
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -rf $PACKAGE*.src.rpm" 0 "Removing source rpm"
rlPhaseEnd
rlPhaseEnd
rlJournalPrintText
rlJournalEnd

View File

@ -8,6 +8,7 @@
tests:
- selftest
required_packages:
- gettext
- jitterentropy-devel
- jansson-devel
- libcap-devel