diff --git a/disable-address-of-packed-member-warning.patch b/disable-address-of-packed-member-warning.patch new file mode 100644 index 0000000000000000000000000000000000000000..f62c7ff5b973c502b11cdb8f6551d170290f4874 --- /dev/null +++ b/disable-address-of-packed-member-warning.patch @@ -0,0 +1,25 @@ +From 1cf1c3e6af1f43555de7ec89cd1e8bc3ea0aaefe Mon Sep 17 00:00:00 2001 +From: Yunying Sun +Date: Mon, 13 May 2019 17:26:13 +0800 +Subject: [PATCH] disable address of packed member warning + +--- + Config.mk | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Config.mk b/Config.mk +index 6a64d1a..27bce1b 100644 +--- a/Config.mk ++++ b/Config.mk +@@ -43,7 +43,7 @@ CFLAGS_WARN = -Wall -Wformat-security -Werror -Wstrict-prototypes \ + -Wextra -Winit-self -Wswitch-default -Wunused-parameter \ + -Wwrite-strings \ + $(call cc-option,$(CC),-Wlogical-op,) \ +- -Wno-missing-field-initializers ++ -Wno-missing-field-initializers -Wno-address-of-packed-member + + AS = as + LD = ld +-- +2.21.0 + diff --git a/tboot.spec b/tboot.spec index e16e0634f6fe4381f91a1c56bbc6ad28489c6020..fb692836bf6afdf42409d7b1ae6f8763844ef566 100644 --- a/tboot.spec +++ b/tboot.spec @@ -1,12 +1,13 @@ Name: tboot Summary: A module to perform a measured and verified launch Version: 1.9.7 -Release: 2 +Release: 3 Epoch: 1 License: BSD URL: http://sourceforge.net/projects/tboot/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Patch0000: disable-address-of-packed-member-warning.patch BuildRequires: gcc trousers-devel openssl-devel @@ -42,5 +43,8 @@ CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS %{_mandir}/man8/*.gz %changelog +* Sat Jun 20 2020 yaokai13 - 1:1.9.7-3 +- Fix the build error + * Fri Dec 6 2019 caomeng - 1:1.9.7-2 -- Package init \ No newline at end of file +- Package init