]> git.proxmox.com Git - ceph.git/commitdiff
compile with GCC 12 not 11
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 25 Jul 2023 19:22:29 +0000 (21:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 25 Jul 2023 19:26:20 +0000 (21:26 +0200)
i.e., the current default in Bookworm.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
patches/0013-d-rules-compile-with-gcc-12.patch [new file with mode: 0644]
patches/series

diff --git a/patches/0013-d-rules-compile-with-gcc-12.patch b/patches/0013-d-rules-compile-with-gcc-12.patch
new file mode 100644 (file)
index 0000000..63b9b7f
--- /dev/null
@@ -0,0 +1,23 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Thomas Lamprecht <t.lamprecht@proxmox.com>
+Date: Tue, 25 Jul 2023 21:05:18 +0200
+Subject: [PATCH] d/rules: compile with gcc 12
+
+Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
+---
+ debian/rules | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/debian/rules b/debian/rules
+index c163daad2..a1653cb74 100755
+--- a/debian/rules
++++ b/debian/rules
+@@ -5,7 +5,7 @@ export DESTDIR=$(CURDIR)/debian/tmp
+ include /usr/share/dpkg/default.mk
+-extraopts += -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11
++extraopts += -DCMAKE_C_COMPILER=gcc-12 -DCMAKE_CXX_COMPILER=g++-12
+ ifneq (,$(findstring WITH_STATIC_LIBSTDCXX,$(CEPH_EXTRA_CMAKE_ARGS)))
+   # dh_auto_build sets LDFLAGS with `dpkg-buildflags --get LDFLAGS` on ubuntu,
+   # which makes the application aborts when the shared library throws
index 195954bd12ab559b7c8b4a2d1f187ea073fce6e5..d1b233eaf6adcb833b275bac39b8c6eadf4ea3bb 100644 (file)
@@ -10,3 +10,4 @@
 0010-d-control-drop-outdated-build-dependencies-and-bump-.patch
 0011-d-rules-fix-no-restart-on-upgrade.patch
 0012-fix-4759-run-ceph-crash-daemon-with-www-data-group-f.patch
+0013-d-rules-compile-with-gcc-12.patch