Compare commits
8 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93eac88cc1 | ||
|
|
46ba537f84 | ||
| 7057343a4e | |||
|
|
7c04329a3f | ||
|
|
7184a9cf30 | ||
|
|
fe6286cbd6 | ||
|
|
bd31748bed | ||
|
|
89da5c9f78 |
3 changed files with 63 additions and 9 deletions
12
sbsigntools-binutils.patch
Normal file
12
sbsigntools-binutils.patch
Normal 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
|
||||
22
sbsigntools-unused-var.patch
Normal file
22
sbsigntools-unused-var.patch
Normal 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,
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue