diff --git a/pesign.spec b/pesign.spec index c15b25816aa2ec48278d7020778d5cda899c6b1d..9fb6e65188128f46b6327a797b5464d42d6cf61d 100644 --- a/pesign.spec +++ b/pesign.spec @@ -2,7 +2,7 @@ Name: pesign Summary: Signing utility for UEFI binaries Version: 0.113 -Release: 4 +Release: 5 License: GPLv2 URL: https://github.com/vathpela/pesign Source0: https://github.com/rhboot/pesign/archive/113.tar.gz @@ -17,6 +17,7 @@ BuildRequires: nss-devel >= 3.13.6-1 efivar-devel >= 31-1 libuuid-devel tar xz BuildRequires: python3-rpm-macros python3 systemd python3-devel gcc Patch0001: Fix-the-build-with-nss-3.44.patch +Patch0002: remove-superfluous-type-settings.patch %description pesign is a command line tool for manipulating signatures and @@ -93,6 +94,9 @@ exit 0 %{_mandir}/man*/* %changelog +* Sat July 31 2021 Shenmei Tu - 0.113-5 +- remove-superfluous-type-settings.patch + * Mon May 31 2021 huanghaitao - 0.113-4 - Completing build dependencies diff --git a/remove-superfluous-type-settings.patch b/remove-superfluous-type-settings.patch new file mode 100644 index 0000000000000000000000000000000000000000..62bb12f2955bc6d1af27110d3ea139606644a8d6 --- /dev/null +++ b/remove-superfluous-type-settings.patch @@ -0,0 +1,19 @@ +diff -Nur pesign-113/src/pesigcheck.c pesign-113-new/src/pesigcheck.c +--- pesign-113/src/pesigcheck.c 2019-05-11 02:53:51.000000000 +0800 ++++ pesign-113-new/src/pesigcheck.c 2021-07-30 11:25:25.000000000 +0800 +@@ -318,7 +318,6 @@ + reason->type = SIGNATURE; + reason->sig.data = data; + reason->sig.len = datalen; +- reason->type = siBuffer; + nreason += 1; + is_invalid = true; + } +@@ -330,7 +329,6 @@ + reason->type = SIGNATURE; + reason->sig.data = data; + reason->sig.len = datalen; +- reason->type = siBuffer; + nreason += 1; + has_valid_cert = true; + }