Compare commits

...
Sign in to create a new pull request.

8 commits

Author SHA1 Message Date
Fedora Release Engineering
93eac88cc1 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 06:13:20 +00:00
Yaakov Selkowitz
46ba537f84 Rebuilt for openssl 4.0 2026-06-12 19:44:37 -04:00
7057343a4e Remove openssl engine support
Previously openssl engine support was only removed when building on
CentOS/RHEL 10, where engines were patched out downstream.  Now engines
are removed upstream in openssl 4.0, which is planned to land in
rawhide/f45.

https://www.redhat.com/en/blog/openssl-3-providers-rhel-10
https://openssl-library.org/post/2025-12-18-remove-engines/
https://fedoraproject.org/wiki/Changes/OpenSSL40
2026-05-17 17:35:38 -05:00
Dominik 'Rathann' Mierzejewski
7c04329a3f fix build with GCC16 (resolves rhbz#2435092) 2026-02-20 21:14:14 +01:00
Fedora Release Engineering
7184a9cf30 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 17:42:53 +00:00
Marcin Juszkiewicz
fe6286cbd6 enable RISC-V 64-bit architecture 2025-12-12 10:10:00 +01:00
Dominik 'Rathann' Mierzejewski
bd31748bed avoid wrong --target option usage that was fixed in recent binutils 2025-10-03 11:11:57 +02:00
Fedora Release Engineering
89da5c9f78 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 17:57:58 +00:00
3 changed files with 63 additions and 9 deletions

View file

@ -0,0 +1,12 @@
diff -up sbsigntools-0.9.5/tests/Makefile.am.orig sbsigntools-0.9.5/tests/Makefile.am
--- sbsigntools-0.9.5/tests/Makefile.am.orig 2025-10-03 10:20:11.676718647 +0200
+++ sbsigntools-0.9.5/tests/Makefile.am 2025-10-03 10:20:40.506763759 +0200
@@ -18,7 +18,7 @@ if TEST_BINARY_FORMAT
EFILDFLAGS = --defsym=EFI_SUBSYSTEM=0x0a
FORMAT = -O binary
else
-FORMAT = --target=efi-app-$(EFI_ARCH:x64=x86_64)
+FORMAT = --output-target=efi-app-$(EFI_ARCH:x64=x86_64)
endif
check_DATA = $(test_key) $(test_cert)
check_SCRIPTS = test-wrapper.sh

View file

@ -0,0 +1,22 @@
diff -up sbsigntools-0.9.5/src/image.c.orig sbsigntools-0.9.5/src/image.c
--- sbsigntools-0.9.5/src/image.c.orig 2023-05-05 12:56:50.000000000 +0200
+++ sbsigntools-0.9.5/src/image.c 2026-02-20 21:09:30.332942432 +0100
@@ -512,17 +512,14 @@ int image_hash_sha256(struct image *imag
{
struct region *region;
SHA256_CTX ctx;
- int rc, i, n;
+ int rc, i;
rc = SHA256_Init(&ctx);
if (!rc)
return -1;
- n = 0;
-
for (i = 0; i < image->n_checksum_regions; i++) {
region = &image->checksum_regions[i];
- n += region->size;
#if 0
printf("sum region: 0x%04lx -> 0x%04lx [0x%04x bytes]\n",
region->data - image->buf,

View file

@ -3,7 +3,7 @@
Name: sbsigntools
Version: 0.9.5
Release: 10%{?dist}
Release: 16%{?dist}
Summary: Signing utility for UEFI secure boot
# Most source code is GPL-3.0-or-later, except:
# LicenseRef-Fedora-Public-Domain:
@ -41,8 +41,12 @@ Patch1: %{name}-gnuefi.patch
Patch2: %{name}-no-wchar_t.patch
# revert addition of openssl engine support
Patch3: %{name}-no-openssl-engines.patch
# avoid wrong --target option usage that's been fixed in recent binutils
Patch4: %{name}-binutils.patch
# remove unused variable
Patch5: %{name}-unused-var.patch
# same as gnu-efi
ExclusiveArch: x86_64 aarch64 %{arm} %{ix86}
ExclusiveArch: x86_64 aarch64 %{arm} %{ix86} riscv64
BuildRequires: make
BuildRequires: automake
BuildRequires: binutils-devel
@ -54,10 +58,6 @@ BuildRequires: libuuid-devel
BuildRequires: openssl
%endif
BuildRequires: openssl-devel
%if 0%{?fedora} >= 41
# https://fedoraproject.org/wiki/Changes/OpensslDeprecateEngine
BuildRequires: openssl-devel-engine
%endif
Provides: bundled(ccan-array_size)
Provides: bundled(ccan-build_assert)
Provides: bundled(ccan-check_type)
@ -84,10 +84,9 @@ Tools to add signatures to EFI binaries and Drivers.
%patch -p 1 -P 0
%patch -p 1 -P 1
%patch -p 1 -P 2
%if %{defined el10}
# EL10 disables openssl engines
%patch -p 1 -P 3
%endif
%patch -p 1 -P 4
%patch -p 1 -P 5
%build
./autogen.sh
@ -119,6 +118,27 @@ make check
%{_mandir}/man1/sbverify.1.*
%changelog
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Fri Jun 12 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 0.9.5-15
- Rebuilt for openssl 4.0
* Fri Feb 20 2026 Dominik Mierzejewski <dominik@greysector.net> - 0.9.5-15
- fix build with GCC16 (resolves rhbz#2435092)
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Fri Dec 12 2025 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 0.9.5-13
- enable RISC-V 64-bit architecture
* Fri Oct 03 2025 Dominik Mierzejewski <dominik@greysector.net> - 0.9.5-12
- avoid wrong --target option usage that was fixed in recent binutils
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Thu Apr 10 2025 Carl George <carlwgeorge@fedoraproject.org> - 0.9.5-10
- Remove openssl engine support on EL10