* Mon Nov 14 2022 zhoupengcheng <zhoupengcheng11@huawei.com> - 8-12

- fix build failure
This commit is contained in:
ZhouPengcheng 2022-11-14 20:05:54 +08:00
parent 2c87e9c0a4
commit e9caebebcd
2 changed files with 38 additions and 1 deletions

View File

@ -2,12 +2,14 @@
Name: dbxtool Name: dbxtool
Version: 8 Version: 8
Release: 11 Release: 12
Summary: Tool for managing dbx updates installed on a machine. Summary: Tool for managing dbx updates installed on a machine.
License: GPLv2 License: GPLv2
URL: https://github.com/vathpela/dbxtool-devel URL: https://github.com/vathpela/dbxtool-devel
Source0: https://github.com/vathpela/%{name}-devel/archive/%{git_commit_hash}/%{name}-devel-889594f.tar.gz 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 BuildRequires: gcc popt-devel efivar-devel >= 35-1 systemd
Requires: efivar systemd Requires: efivar systemd
@ -50,6 +52,9 @@ Tool for managing dbx updates installed on a machine.
%doc %{_mandir}/man1/* %doc %{_mandir}/man1/*
%changelog %changelog
* Mon Nov 14 2022 zhoupengcheng <zhoupengcheng11@huawei.com> - 8-12
- fix build failure
* Tue Oct 25 2022 yanglongkang <yanglongkang@h-partners.com> - 8-11 * Tue Oct 25 2022 yanglongkang <yanglongkang@h-partners.com> - 8-11
- rebuild for next release - rebuild for next release

View File

@ -0,0 +1,32 @@
From 809f580026d29d42306482b3ad7f15f015916dad Mon Sep 17 00:00:00 2001
From: ZhouPengcheng <zhoupengcheng11@huawei.com>
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