Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package edk2 for openSUSE:Factory checked in 
at 2024-08-30 13:28:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/edk2 (Old)
 and      /work/SRC/openSUSE:Factory/.edk2.new.2698 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "edk2"

Fri Aug 30 13:28:51 2024 rev:10 rq:1197394 version:202311

Changes:
--------
--- /work/SRC/openSUSE:Factory/edk2/edk2.changes        2024-02-27 
22:43:49.552699515 +0100
+++ /work/SRC/openSUSE:Factory/.edk2.new.2698/edk2.changes      2024-08-30 
13:28:52.997640837 +0200
@@ -1,0 +2,6 @@
+Thu Aug 29 09:49:54 UTC 2024 - Guillaume GARDET <[email protected]>
+
+- Add patch to fix build of edk2:Armada80x0McBin with gcc14:
+  * 5781.patch
+
+-------------------------------------------------------------------

New:
----
  5781.patch

BETA DEBUG BEGIN:
  New:- Add patch to fix build of edk2:Armada80x0McBin with gcc14:
  * 5781.patch
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ edk2.spec ++++++
--- /var/tmp/diff_new_pack.7VOxqd/_old  2024-08-30 13:28:55.877761204 +0200
+++ /var/tmp/diff_new_pack.7VOxqd/_new  2024-08-30 13:28:55.897762040 +0200
@@ -1,5 +1,5 @@
 #
-# spec file
+# spec file for package edk2
 #
 # Copyright (c) 2024 SUSE LLC
 #
@@ -62,6 +62,8 @@
 Source10:       
https://www.openssl.org/source/openssl-%{openssl_version}.tar.gz
 Source11:       
https://www.openssl.org/source/openssl-%{openssl_version}.tar.gz.asc
 Source12:       openssl.keyring
+# PATCH-FIX-UPSTREAM - https://github.com/tianocore/edk2/pull/5781
+Patch1:         5781.patch
 Patch999:       edk2-platforms-fix-Hikeys.patch
 #!BuildIgnore:  gcc-PIE
 %if "%{platform}" != "hikey" && "%{platform}" != "hikey960"
@@ -92,6 +94,7 @@
 
 %prep
 %setup -q -n edk2-edk2-stable%{archive_version} -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 
-a 7
+%patch -P 1 -p1
 pushd edk2-platforms-%{edk2_platforms_version}
 %patch -P 999 -p1
 popd

++++++ 5781.patch ++++++
>From 93d48fc90778b5a3621e650377ca9609ace0d82d Mon Sep 17 00:00:00 2001
From: Rebecca Cran <[email protected]>
Date: Sun, 16 Jun 2024 02:55:33 -0600
Subject: [PATCH] MdePkg: Check if compiler has __has_builtin before trying to
 use it

When building AArch64 code, cpp gets run with the `-undef` flag which on
Fedora 40 with gcc version 14.1.1 20240607 (Red Hat 14.1.1-5) causes
__has_builtin to be undefined. When running the check for
__builtin_unreachable in Base.h it causes an error
"missing binary operator before token "("".

Check that we have __has_builtin before trying to use it.

Signed-off-by: Rebecca Cran <[email protected]>
---
 MdePkg/Include/Base.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h
index e02970a052fc..7caebbeb1f4a 100644
--- a/MdePkg/Include/Base.h
+++ b/MdePkg/Include/Base.h
@@ -59,7 +59,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 /// up to the compiler to remove any code past that point.
 ///
 #define UNREACHABLE()  __builtin_unreachable ()
-  #elif defined (__has_feature)
+  #elif defined (__has_builtin) && defined (__has_feature)
     #if __has_builtin (__builtin_unreachable)
 ///
 /// Signal compilers and analyzers that this call is not reachable.  It is

Reply via email to