commit:     be24a12f4abbd8f2bb0c38c9f5130f104af2524b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  8 00:44:43 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb  8 00:54:54 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be24a12f

app-emulation/xen-tools: build 4.19.1 w/ gnu17 in some parts

Fails to build w/ gnu23.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-emulation/xen-tools/files/xen-tools-4.19.1-gnu17.patch | 10 ++++++++++
 app-emulation/xen-tools/xen-tools-4.18.4_pre1.ebuild       |  4 ++++
 app-emulation/xen-tools/xen-tools-4.19.1.ebuild            |  4 ++++
 3 files changed, 18 insertions(+)

diff --git a/app-emulation/xen-tools/files/xen-tools-4.19.1-gnu17.patch 
b/app-emulation/xen-tools/files/xen-tools-4.19.1-gnu17.patch
new file mode 100644
index 000000000000..82f0068f02bc
--- /dev/null
+++ b/app-emulation/xen-tools/files/xen-tools-4.19.1-gnu17.patch
@@ -0,0 +1,10 @@
+ipxe relies on () not being (void), so just force gnu17 for now for compat
+w/ compilers that default to gnu23.
+--- a/tools/firmware/etherboot/Config
++++ b/tools/firmware/etherboot/Config
+@@ -7,3 +7,5 @@ CFLAGS += -DNO_POST_PROMPT
+ 
+ CFLAGS += -UCONSOLE_SERIAL
+ CFLAGS += -DCONSOLE_SERIAL=1
++
++CFLAGS += -std=gnu17

diff --git a/app-emulation/xen-tools/xen-tools-4.18.4_pre1.ebuild 
b/app-emulation/xen-tools/xen-tools-4.18.4_pre1.ebuild
index 81da2098293f..fab9255020b0 100644
--- a/app-emulation/xen-tools/xen-tools-4.18.4_pre1.ebuild
+++ b/app-emulation/xen-tools/xen-tools-4.18.4_pre1.ebuild
@@ -208,6 +208,10 @@ QA_PREBUILT="
 
 RESTRICT="test"
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-4.19.1-gnu17.patch
+)
+
 pkg_setup() {
        python_setup
        export "CONFIG_LOMOUNT=y"

diff --git a/app-emulation/xen-tools/xen-tools-4.19.1.ebuild 
b/app-emulation/xen-tools/xen-tools-4.19.1.ebuild
index a7d7cfdd27de..bf00cacae073 100644
--- a/app-emulation/xen-tools/xen-tools-4.19.1.ebuild
+++ b/app-emulation/xen-tools/xen-tools-4.19.1.ebuild
@@ -208,6 +208,10 @@ QA_PREBUILT="
 
 RESTRICT="test"
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-4.19.1-gnu17.patch
+)
+
 pkg_setup() {
        python_setup
        export "CONFIG_LOMOUNT=y"

Reply via email to