Waive the known issue with hugepages on ppc64/ppc64le
This commit is contained in:
parent
9830c00e06
commit
65063f43b6
43
openscap-1.3.6-waive-hugetables-pr-1745.patch
Normal file
43
openscap-1.3.6-waive-hugetables-pr-1745.patch
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
From 192f908562779fe4c9b7e5cc7605840976a06c85 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Jan=20=C4=8Cern=C3=BD?= <jcerny@redhat.com>
|
||||||
|
Date: Mon, 26 Apr 2021 13:13:26 +0200
|
||||||
|
Subject: [PATCH] Waive the known issue with hugepages on ppc64/ppc64le
|
||||||
|
|
||||||
|
The known issue has been reported in
|
||||||
|
https://bugzilla.redhat.com/show_bug.cgi?id=1642995
|
||||||
|
|
||||||
|
This modification is currently applied as a patch applied during setup
|
||||||
|
phase of Sanity/smoke-test in Fedora CI gating.
|
||||||
|
https://src.fedoraproject.org/tests/openscap/blob/main/f/Sanity/smoke-test
|
||||||
|
The patched file got changed recetly so the patch doesn't apply anymore
|
||||||
|
which causes the Rawhide gating to fail.
|
||||||
|
We have decided to propose the change to upstream to avoid the need
|
||||||
|
for modifying the patch in the tests and to prevent similar problems
|
||||||
|
in the future.
|
||||||
|
---
|
||||||
|
tests/probes/sysctl/test_sysctl_probe_all.sh | 5 +++++
|
||||||
|
1 file changed, 5 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/tests/probes/sysctl/test_sysctl_probe_all.sh b/tests/probes/sysctl/test_sysctl_probe_all.sh
|
||||||
|
index 2280ff7ae..c79d7ed18 100755
|
||||||
|
--- a/tests/probes/sysctl/test_sysctl_probe_all.sh
|
||||||
|
+++ b/tests/probes/sysctl/test_sysctl_probe_all.sh
|
||||||
|
@@ -73,6 +73,10 @@ if [ "$procps_ver" != "$lowest_ver" ]; then
|
||||||
|
sed -i '/.*vm.stat_refresh/d' "$sysctlNames"
|
||||||
|
fi
|
||||||
|
|
||||||
|
+if ! grep -q "hugepages" "$ourNames"; then
|
||||||
|
+ sed -i "/^.*hugepages.*$/d" "$sysctlNames"
|
||||||
|
+fi
|
||||||
|
+
|
||||||
|
echo "Diff (sysctlNames / ourNames): ------"
|
||||||
|
diff "$sysctlNames" "$ourNames"
|
||||||
|
echo "-------------------------------------"
|
||||||
|
@@ -84,6 +88,7 @@ sed -i -E "/^E: oscap: +Can't read sysctl value from /d" "$stderr"
|
||||||
|
# that can't fit into 8K buffer and result in errno 14
|
||||||
|
# (for example /proc/sys/kernel/spl/hostid could be the case)
|
||||||
|
sed -i -E "/^E: oscap: +An error.*14, Bad address/d" "$stderr"
|
||||||
|
+sed -i "/^.*hugepages.*$/d" "$stderr"
|
||||||
|
|
||||||
|
echo "Errors (without messages related to permissions):"
|
||||||
|
cat "$stderr"
|
@ -1,11 +1,12 @@
|
|||||||
Name: openscap
|
Name: openscap
|
||||||
Version: 1.3.5
|
Version: 1.3.5
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: Set of open source libraries enabling integration of the SCAP line of standards
|
Summary: Set of open source libraries enabling integration of the SCAP line of standards
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://www.open-scap.org/
|
URL: http://www.open-scap.org/
|
||||||
Source0: https://github.com/OpenSCAP/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/OpenSCAP/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
Patch1: openscap-1.3.6-waive-hugetables-pr-1745.patch
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: cmake >= 2.6
|
BuildRequires: cmake >= 2.6
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
@ -202,6 +203,9 @@ pathfix.py -i %{__python3} -p -n $RPM_BUILD_ROOT%{_bindir}/scap-as-rpm
|
|||||||
%{_mandir}/man8/oscap-podman.8*
|
%{_mandir}/man8/oscap-podman.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 26 2021 Jan Černý <jcerny@redhat.com> - 1:1.3.5-2
|
||||||
|
- Waive the known issue with hugepages on ppc64/ppc64le
|
||||||
|
|
||||||
* Fri Apr 23 2021 Jan Černý <jcerny@redhat.com> - 1:1.3.5-1
|
* Fri Apr 23 2021 Jan Černý <jcerny@redhat.com> - 1:1.3.5-1
|
||||||
- Update to the latest upstream release
|
- Update to the latest upstream release
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user