diff options
author | 2021-03-11 12:49:45 -0500 | |
---|---|---|
committer | 2021-03-11 13:26:42 -0500 | |
commit | 61124b721f9dfd990b1f58fc31fec2f3c4eadff4 (patch) | |
tree | 838c95a33dcf4f538c6801f8ac86d10aa9823967 /app-crypt/pesign/files | |
parent | dev-db/mysql-connector-c: disable debug options (diff) | |
download | gentoo-61124b721f9dfd990b1f58fc31fec2f3c4eadff4.tar.gz gentoo-61124b721f9dfd990b1f58fc31fec2f3c4eadff4.tar.bz2 gentoo-61124b721f9dfd990b1f58fc31fec2f3c4eadff4.zip |
app-crypt/pesign: EAPI 7, fix GCC 10, drop libressl
Closes: https://bugs.gentoo.org/721934
Closes: https://bugs.gentoo.org/775503
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: David Michael <fedora.dm0@gmail.com>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'app-crypt/pesign/files')
-rw-r--r-- | app-crypt/pesign/files/pesign-113-enum-conversion.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/app-crypt/pesign/files/pesign-113-enum-conversion.patch b/app-crypt/pesign/files/pesign-113-enum-conversion.patch new file mode 100644 index 000000000000..89a57e460fbe --- /dev/null +++ b/app-crypt/pesign/files/pesign-113-enum-conversion.patch @@ -0,0 +1,46 @@ +From c555fd74c009242c3864576bd5f17a1f8f4fdffd Mon Sep 17 00:00:00 2001 +From: Peter Jones <pjones@redhat.com> +Date: Tue, 18 Feb 2020 16:28:56 -0500 +Subject: [PATCH] pesigcheck: Fix a wrong assignment + +gcc says: + + pesigcheck.c: In function 'check_signature': + pesigcheck.c:321:17: error: implicit conversion from 'enum <anonymous>' to 'enum <anonymous>' [-Werror=enum-conversion] + 321 | reason->type = siBuffer; + | ^ + pesigcheck.c:333:17: error: implicit conversion from 'enum <anonymous>' to 'enum <anonymous>' [-Werror=enum-conversion] + 333 | reason->type = siBuffer; + | ^ + cc1: all warnings being treated as errors + +And indeed, that line of code makes no sense at all - it was supposed to +be reason->sig.type. + +Signed-off-by: Peter Jones <pjones@redhat.com> +--- + src/pesigcheck.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/pesigcheck.c b/src/pesigcheck.c +index 524cce3..8fa0f1a 100644 +--- a/src/pesigcheck.c ++++ b/src/pesigcheck.c +@@ -318,7 +318,7 @@ check_signature(pesigcheck_context *ctx, int *nreasons, + reason->type = SIGNATURE; + reason->sig.data = data; + reason->sig.len = datalen; +- reason->type = siBuffer; ++ reason->sig.type = siBuffer; + nreason += 1; + is_invalid = true; + } +@@ -330,7 +330,7 @@ check_signature(pesigcheck_context *ctx, int *nreasons, + reason->type = SIGNATURE; + reason->sig.data = data; + reason->sig.len = datalen; +- reason->type = siBuffer; ++ reason->sig.type = siBuffer; + nreason += 1; + has_valid_cert = true; + } |