summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2023-02-16 22:09:23 +0100
committerSven Wegener <swegener@gentoo.org>2023-02-16 22:19:43 +0100
commitaea82df28d2def080c1aa982ea5dc1e7560120c0 (patch)
tree30c1aa012aaec28e42cdcc26119c25cd06443b7e /net-dns
parentnet-dns/pdns: Fix building with gcc-13, bug #894618 (diff)
downloadgentoo-aea82df28d2def080c1aa982ea5dc1e7560120c0.tar.gz
gentoo-aea82df28d2def080c1aa982ea5dc1e7560120c0.tar.bz2
gentoo-aea82df28d2def080c1aa982ea5dc1e7560120c0.zip
net-dns/pdns-recursor: Fix building with gcc-13, bug #894618
Closes: https://bugs.gentoo.org/894618 Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/pdns-recursor/files/pdns-recursor-4.7.4-gcc-13.patch18
-rw-r--r--net-dns/pdns-recursor/pdns-recursor-4.7.4.ebuild4
2 files changed, 22 insertions, 0 deletions
diff --git a/net-dns/pdns-recursor/files/pdns-recursor-4.7.4-gcc-13.patch b/net-dns/pdns-recursor/files/pdns-recursor-4.7.4-gcc-13.patch
new file mode 100644
index 000000000000..ee15b35f9e4c
--- /dev/null
+++ b/net-dns/pdns-recursor/files/pdns-recursor-4.7.4-gcc-13.patch
@@ -0,0 +1,18 @@
+commit d8b4ea24dc5dbe7c53c24bfffba24bcae7f58e02
+Author: Peter van Dijk <peter.van.dijk@powerdns.com>
+Date: Mon Jan 23 14:54:09 2023 +0100
+
+ lock.hh: include <stdexcept>
+
+diff --git a/lock.hh b/lock.hh
+index e8bd82988..a08951a26 100644
+--- a/lock.hh
++++ b/lock.hh
+@@ -22,6 +22,7 @@
+ #pragma once
+ #include <mutex>
+ #include <shared_mutex>
++#include <stdexcept>
+
+ /*
+ This file provides several features around locks:
diff --git a/net-dns/pdns-recursor/pdns-recursor-4.7.4.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.7.4.ebuild
index 7f51d73cc251..a64f64448362 100644
--- a/net-dns/pdns-recursor/pdns-recursor-4.7.4.ebuild
+++ b/net-dns/pdns-recursor/pdns-recursor-4.7.4.ebuild
@@ -37,6 +37,10 @@ BDEPEND="virtual/pkgconfig"
S="${WORKDIR}"/${P/_/-}
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc-13.patch
+)
+
pkg_setup() {
lua-single_pkg_setup
filter-flags -ftree-vectorize