diff --git a/dbxtool.spec b/dbxtool.spec index 5c2eaf97314fdd4753a54031ee9115aa4c1710de..d526e8fa0530cc9abd6ddc7564c26707afdf5613 100644 --- a/dbxtool.spec +++ b/dbxtool.spec @@ -2,12 +2,14 @@ Name: dbxtool Version: 8 -Release: 11 +Release: 12 Summary: Tool for managing dbx updates installed on a machine. License: GPLv2 URL: https://github.com/vathpela/dbxtool-devel Source0: https://github.com/vathpela/%{name}-devel/archive/%{git_commit_hash}/%{name}-devel-889594f.tar.gz +Patch9000: remove-duplicate-efi-defines.patch + BuildRequires: gcc popt-devel efivar-devel >= 35-1 systemd Requires: efivar systemd @@ -50,6 +52,9 @@ Tool for managing dbx updates installed on a machine. %doc %{_mandir}/man1/* %changelog +* Mon Nov 14 2022 zhoupengcheng - 8-12 +- fix build failure + * Tue Oct 25 2022 yanglongkang - 8-11 - rebuild for next release diff --git a/remove-duplicate-efi-defines.patch b/remove-duplicate-efi-defines.patch new file mode 100644 index 0000000000000000000000000000000000000000..d36ce91ee0ade6f466dbec5bca0a14672ec7742b --- /dev/null +++ b/remove-duplicate-efi-defines.patch @@ -0,0 +1,32 @@ +From 809f580026d29d42306482b3ad7f15f015916dad Mon Sep 17 00:00:00 2001 +From: ZhouPengcheng +Date: Mon, 14 Nov 2022 19:40:37 +0800 +Subject: [PATCH] dbxtool: fix build failure + +The dbxtool installation depends on the efivar,After the efivar upgrade, +three macrows are added to the efivar,which are the same as the macro +variables of the dbxtool.As a result, the dbxtool build failure. +Therefore,redundant macro definitions are deleted from the dbxtool to +fix the build failure. +--- + src/esl.h | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/src/esl.h b/src/esl.h +index 456f748..3b9b788 100644 +--- a/src/esl.h ++++ b/src/esl.h +@@ -47,10 +47,6 @@ typedef struct { + uint8_t pad2; + } __attribute__((aligned (1))) EFI_TIME; + +-#define EFI_TIME_ADJUST_DAYLIGHT 0x01 +-#define EFI_TIME_IN_DAYLIGHT 0x02 +- +-#define EFI_UNSPECIFIED_TIMEZONE 0x07ff + + typedef struct _EFI_CERT_BLOCK_RSA_2048_SHA256 { + efi_guid_t HashType; +-- +2.27.0 +