Hello community,

here is the log from the commit of package pesign for openSUSE:Factory checked 
in at 2019-12-11 11:58:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pesign (Old)
 and      /work/SRC/openSUSE:Factory/.pesign.new.4691 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pesign"

Wed Dec 11 11:58:33 2019 rev:35 rq:753851 version:113

Changes:
--------
--- /work/SRC/openSUSE:Factory/pesign/pesign.changes    2019-08-05 
10:34:30.487385455 +0200
+++ /work/SRC/openSUSE:Factory/.pesign.new.4691/pesign.changes  2019-12-11 
11:58:34.976899974 +0100
@@ -1,0 +2,7 @@
+Wed Dec  4 02:38:05 UTC 2019 - Gary Ching-Pang Lin <[email protected]>
+
+- Add pesign-boo1158197-fix-pesigncheck-gcc10.patch to remove the
+  superfluous type settings in pesigcheck to fix the gcc10 errors
+  (boo#1158197)
+
+-------------------------------------------------------------------

New:
----
  pesign-boo1158197-fix-pesigncheck-gcc10.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ pesign.spec ++++++
--- /var/tmp/diff_new_pack.Z4L9o4/_old  2019-12-11 11:58:36.036899687 +0100
+++ /var/tmp/diff_new_pack.Z4L9o4/_new  2019-12-11 11:58:36.040899686 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package pesign
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,7 +22,7 @@
 Summary:        Signing tool for PE-COFF binaries
 License:        GPL-3.0-or-later
 Group:          Productivity/Security
-Url:            https://github.com/rhinstaller/pesign
+URL:            https://github.com/rhinstaller/pesign
 Source:         
https://github.com/rhinstaller/pesign/releases/download/%{version}/%{name}-%{version}.tar.bz2
 # PATCH-FIX-SUSE pesign-suse-build.patch [email protected] -- Adjust Makefile for 
the build service
 Patch1:         pesign-suse-build.patch
@@ -36,6 +36,8 @@
 Patch5:         pesign-efikeygen-Fix-the-build-with-nss-3.44.patch
 # PATCH-FIX-SUSE pesign-boo1143063-remove-var-tracking.patch -- boo#1143063 
Remove var-tracking from default CFLAGS
 Patch6:         pesign-boo1143063-remove-var-tracking.patch
+# PATCH-FIX-UPSTREAM pesign-boo1158197-fix-pesigncheck-gcc10.patch 
[email protected] -- boo#1158197 Fix the gcc10 errors
+Patch7:         pesign-boo1158197-fix-pesigncheck-gcc10.patch
 BuildRequires:  efivar-devel
 BuildRequires:  libuuid-devel
 BuildRequires:  mozilla-nss-devel
@@ -58,6 +60,7 @@
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %build
 make %{?_smp_mflags} CFLAGS="%{optflags}"

++++++ pesign-boo1158197-fix-pesigncheck-gcc10.patch ++++++
>From b0b740f38da6d4584417d65a7c97fd4faf982cf6 Mon Sep 17 00:00:00 2001
From: Gary Lin <[email protected]>
Date: Wed, 4 Dec 2019 10:28:28 +0800
Subject: [PATCH] pesigcheck: remove superfluous type settings

When setting the type of reason in check_signature(), the type was
accidentally set as "siBuffer". Since the type is already set as
"SIGNATURE", we only need to remove those two lines of code.

Fixes: https://github.com/rhboot/pesign/issues/55

Signed-off-by: Gary Lin <[email protected]>
---
 src/pesigcheck.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/pesigcheck.c b/src/pesigcheck.c
index 524cce3..d197c30 100644
--- a/src/pesigcheck.c
+++ b/src/pesigcheck.c
@@ -318,7 +318,6 @@ check_signature(pesigcheck_context *ctx, int *nreasons,
                        reason->type = SIGNATURE;
                        reason->sig.data = data;
                        reason->sig.len = datalen;
-                       reason->type = siBuffer;
                        nreason += 1;
                        is_invalid = true;
                }
@@ -330,7 +329,6 @@ check_signature(pesigcheck_context *ctx, int *nreasons,
                        reason->type = SIGNATURE;
                        reason->sig.data = data;
                        reason->sig.len = datalen;
-                       reason->type = siBuffer;
                        nreason += 1;
                        has_valid_cert = true;
                }
-- 
2.24.0


Reply via email to