]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
dnsdist: Fix FTBFS with GCC 11
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Jul 2021 20:18:29 +0000 (20:18 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 9 Jul 2021 06:14:19 +0000 (06:14 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/dnsdist
src/patches/dnsdist-1.6.0-missing-mutex-header.patch [new file with mode: 0644]

index 5e110c5c94406d674f23260d8aff8b4617b709a4..96e775a37981bdd7b5dca86b86c94a5ca14cc7ad 100644 (file)
@@ -31,14 +31,12 @@ DL_FILE    = $(THISAPP).tar.bz2
 DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
-#SUP_ARCH   = x86_64
-SUP_ARCH   = none
 PROG       = dnsdist
 PAK_VER    = 9
 
 DEPS       =
 
-MAX_PARALLELISM = $(shell echo $$(( $(SYSTEM_MEMORY) / 2048)))
+MAX_PARALLELISM = $(shell echo $$(( $(SYSTEM_MEMORY) / 2048 )))
 
 ###############################################################################
 # Top-level Rules
@@ -81,6 +79,7 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && patch -Np2 < $(DIR_SRC)/src/patches/dnsdist-1.6.0-missing-mutex-header.patch
        cd $(DIR_APP) && ./configure \
                --prefix=/usr \
                --sysconfdir=/etc \
diff --git a/src/patches/dnsdist-1.6.0-missing-mutex-header.patch b/src/patches/dnsdist-1.6.0-missing-mutex-header.patch
new file mode 100644 (file)
index 0000000..8d9c977
--- /dev/null
@@ -0,0 +1,22 @@
+From 65bb0ab32a449d8fb8cf9a4802d16ba4912d9fc4 Mon Sep 17 00:00:00 2001
+From: Remi Gacogne <remi.gacogne@powerdns.com>
+Date: Tue, 25 May 2021 10:09:43 +0200
+Subject: [PATCH] dnsdist-1.6.x: Backport a missing mutex header
+
+---
+ pdns/lock.hh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/pdns/lock.hh b/pdns/lock.hh
+index 09299d7979d..0e88118c564 100644
+--- a/pdns/lock.hh
++++ b/pdns/lock.hh
+@@ -20,6 +20,8 @@
+  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+  */
+ #pragma once
++
++#include <mutex>
+ #include <shared_mutex>
+ class ReadWriteLock