SHA256
1
0
forked from pool/tboot

- 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.

OBS-URL: https://build.opensuse.org/package/show/security/tboot?expand=0&rev=91
This commit is contained in:
Matthias Gerstner 2019-05-28 08:19:57 +00:00 committed by Git OBS Bridge
parent a0b0d20006
commit dea1af16fd
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From 1cf1c3e6af1f43555de7ec89cd1e8bc3ea0aaefe Mon Sep 17 00:00:00 2001
From: Yunying Sun <yunying.sun@intel.com>
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

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 28 08:19:14 UTC 2019 - mgerstner <matthias.gerstner@suse.com>
- 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 <matthias.gerstner@suse.com>

View File

@ -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}"