From 7b34c4b72d0bce3fc97d63941fc57b604451797a Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Tue, 10 Aug 2021 12:42:23 -0400 Subject: [PATCH] Detect the CentOS version number correctly in rpm pesign macro Related: rhbz#1991688 Signed-off-by: Peter Jones --- ...handle-centos-like-rhel-with-rhelver.patch | 25 +++++++++++++++++++ pesign.spec | 7 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0014-macros.pesign-handle-centos-like-rhel-with-rhelver.patch diff --git a/0014-macros.pesign-handle-centos-like-rhel-with-rhelver.patch b/0014-macros.pesign-handle-centos-like-rhel-with-rhelver.patch new file mode 100644 index 0000000..a8af3b8 --- /dev/null +++ b/0014-macros.pesign-handle-centos-like-rhel-with-rhelver.patch @@ -0,0 +1,25 @@ +From efb69f149f256631a952e0a0db5b45ed5d391509 Mon Sep 17 00:00:00 2001 +From: Peter Jones +Date: Tue, 10 Aug 2021 12:39:08 -0400 +Subject: [PATCH] macros.pesign: handle centos like rhel with --rhelver + +Signed-off-by: Peter Jones +--- + src/macros.pesign | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/macros.pesign b/src/macros.pesign +index 34af57c5b3b..2ca1afb916e 100644 +--- a/src/macros.pesign ++++ b/src/macros.pesign +@@ -35,6 +35,7 @@ + %{?_buildhost:--hostname "%{_buildhost}"} \\\ + %{?vendor:--vendor "%{vendor}"} \\\ + %{?_rhel:--rhelver "%{_rhel}"} \\\ ++ %{?centos:--rhelver "%{centos}"} \\\ + %{?-n:--rhelcert %{-n*}}%{?!-n:--rhelcert %{__pesign_cert}} \\\ + %{?-a:--rhelcafile "%{-a*}"} \\\ + %{?-c:--rhelcertfile "%{-c*}"} \\\ +-- +2.31.1 + diff --git a/pesign.spec b/pesign.spec index 57a8033..eca1a0f 100644 --- a/pesign.spec +++ b/pesign.spec @@ -3,7 +3,7 @@ Name: pesign Summary: Signing utility for UEFI binaries Version: 113 -Release: 17%{?dist} +Release: 18%{?dist} License: GPLv2 URL: https://github.com/vathpela/pesign @@ -56,6 +56,7 @@ Patch0010: 0010-pesign-authorize-don-t-setfacl-etc-pki-pesign-foo.patch Patch0011: 0011-kernel-building-hack.patch Patch0012: 0012-Use-run-not-var-run.patch Patch0013: 0013-Turn-off-free-nonheap-object.patch +Patch0014: 0014-macros.pesign-handle-centos-like-rhel-with-rhelver.patch %description This package contains the pesign utility for signing UEFI binaries as @@ -168,6 +169,10 @@ certutil -d %{_sysconfdir}/pki/pesign/ -X -L > /dev/null %{python3_sitelib}/mockbuild/plugins/pesign.* %changelog +* Tue Aug 10 2021 Peter Jones - 113-18 +- Detect the CentOS version number correctly in rpm pesign macro + Related: rhbz#1991688 + * Mon Aug 09 2021 Mohan Boddu - 113-17 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags Related: rhbz#1991688