]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
libvirt: Fix compiling virt-shell-login with GCC 12
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 13 Mar 2023 16:25:55 +0000 (16:25 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 Mar 2023 18:16:11 +0000 (18:16 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
libvirt/libvirt.nm
libvirt/patches/virt-shell-login-fix.patch [new file with mode: 0644]

index 2fca99bf44fa162dec4dcd17ed11b39d1fb47763..0014ab38f625422f91beba4e0ee6e82abc982602 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = libvirt
 version    = 8.10.0
-release    = 3
+release    = 4
 
 maintainer = Jonatan Schlag <jonatan.schlag@ipfire.org>
 groups     = Applications/Virtualization
diff --git a/libvirt/patches/virt-shell-login-fix.patch b/libvirt/patches/virt-shell-login-fix.patch
new file mode 100644 (file)
index 0000000..906b36e
--- /dev/null
@@ -0,0 +1,11 @@
+--- libvirt-8.10.0/tools/meson.build.bak       2023-03-13 15:59:02.530260456 +0000
++++ libvirt-8.10.0/tools/meson.build   2023-03-13 15:59:59.730481605 +0000
+@@ -98,6 +98,8 @@
+     ],
+     install: true,
+     install_dir: bindir,
++    # Fix for GCC 12 to not omit __stack_chk_fail
++    c_args: ['-fno-builtin-exit', '-D__noreturn__='],
+   )
+   executable(