diff --git a/disable-address-of-packed-member-warning.patch b/disable-address-of-packed-member-warning.patch new file mode 100644 index 0000000..40f4eab --- /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.changes b/tboot.changes index 65f16d4..a00a967 100644 --- a/tboot.changes +++ b/tboot.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 28 08:19:14 UTC 2019 - mgerstner + +- add disable-address-of-packed-member-warning.patch: taken over patch found + in the Fedora package to disable a new gcc-9 warning that breaks the build. + ------------------------------------------------------------------- Mon May 20 11:21:46 UTC 2019 - mgerstner diff --git a/tboot.spec b/tboot.spec index fd35360..5b782d8 100644 --- a/tboot.spec +++ b/tboot.spec @@ -28,6 +28,9 @@ Source0: http://downloads.sourceforge.net/project/tboot/tboot/tboot-%{ver Patch3: tboot-grub2-fix-menu-in-xen-host-server.patch Patch4: tboot-grub2-fix-xen-submenu-name.patch Patch7: tboot-distributor.patch +# This patch should be removed once upstream has a stock solution for the +# gcc-9 warning +Patch8: disable-address-of-packed-member-warning.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: %{ix86} x86_64 BuildRequires: openssl-devel @@ -54,6 +57,7 @@ verified launch of an OS kernel/VMM. %patch3 -p1 %patch4 -p1 %patch7 -p1 +%patch8 -p1 %build export CFLAGS="%{optflags}"