Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package sbsigntools for openSUSE:Factory 
checked in at 2023-02-04 14:15:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sbsigntools (Old)
 and      /work/SRC/openSUSE:Factory/.sbsigntools.new.4462 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sbsigntools"

Sat Feb  4 14:15:54 2023 rev:3 rq:1063153 version:0.9.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/sbsigntools/sbsigntools.changes  2021-04-29 
22:53:03.393986340 +0200
+++ /work/SRC/openSUSE:Factory/.sbsigntools.new.4462/sbsigntools.changes        
2023-02-04 14:31:26.255089264 +0100
@@ -1,0 +2,6 @@
+Sat Feb  4 09:48:21 UTC 2023 - Marcus Meissner <meiss...@suse.com>
+
+- add -Wno-error=deprecated-declarations for openssl-3
+- OpenSSL3.patch: patch from Ubuntu to fix openssl 3 build.
+
+-------------------------------------------------------------------

New:
----
  OpenSSL3.patch

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

Other differences:
------------------
++++++ sbsigntools.spec ++++++
--- /var/tmp/diff_new_pack.qlthDH/_old  2023-02-04 14:31:26.579091096 +0100
+++ /var/tmp/diff_new_pack.qlthDH/_new  2023-02-04 14:31:26.587091141 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package sbsigntools
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -23,6 +23,7 @@
 Release:        0
 URL:            
http://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git
 Source:         %{name}-%{version}.tar.gz
+Patch0:         OpenSSL3.patch
 BuildRequires:  binutils-devel
 BuildRequires:  libuuid-devel
 BuildRequires:  openssl-devel
@@ -42,10 +43,12 @@
 binaries and drivers.
 
 %prep
-%autosetup
+%setup -q
+%patch0 -p1
 
 %build
 NOCONFIGURE=1 ./autogen.sh
+CFLAGS="%optflags -Wno-error=deprecated-declarations"
 %configure
 make %{?jobs:-j%jobs}
 

++++++ OpenSSL3.patch ++++++
Subject: [PATCH] Fix openssl-3.0 issue involving ASN1 xxx_it
From: Jeremi Piotrowski <jeremi.piotrow...@microsoft.com>
Origin: https://groups.io/g/sbsigntools/message/54

Use ASN1_ITEM_rptr() instead of taking the address of IDC_PEID_it.

openssl-3.0 changed the type of TYPE_it from `const ASN1_ITEM TYPE_it` to
`const ASN1_ITEM *TYPE_it(void)`. This was previously hidden behind
OPENSSL_EXPORT_VAR_AS_FUNCTION but in 3.0 only the function version is
available. This change should have been transparent to the application, but
only if the `ASN1_ITEM_rptr()` macro is used.

This change passes `make check` with both openssl 1.1 and 3.0.

Signed-off-by: Jeremi Piotrowski <jpiotrow...@microsoft.com>
---
 src/idc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: sbsigntools-0.9.4/src/idc.c
===================================================================
--- a/src/idc.c
+++ b/src/idc.c
@@ -189,7 +189,7 @@ int IDC_set(PKCS7 *p7, PKCS7_SIGNER_INFO
 
        idc->data->type = OBJ_nid2obj(peid_nid);
        idc->data->value = ASN1_TYPE_new();
-       type_set_sequence(image, idc->data->value, peid, &IDC_PEID_it);
+       type_set_sequence(image, idc->data->value, peid, 
ASN1_ITEM_rptr(IDC_PEID));
 
         idc->digest->alg->parameter = ASN1_TYPE_new();
         idc->digest->alg->algorithm = OBJ_nid2obj(NID_sha256);

Reply via email to