summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-08-04 23:17:33 +0100
committerSam James <sam@gentoo.org>2021-08-04 23:17:56 +0100
commit44fc729f854e1d3307b6131abfe8d32a6653a15f (patch)
tree191d1eb3e6fafebbc443dfb8609d235f1d6578f6 /net-wireless/srslte
parentnet-wireless/srslte: add github upstream metadata (diff)
downloadgentoo-44fc729f854e1d3307b6131abfe8d32a6653a15f.tar.gz
gentoo-44fc729f854e1d3307b6131abfe8d32a6653a15f.tar.bz2
gentoo-44fc729f854e1d3307b6131abfe8d32a6653a15f.zip
net-wireless/srslte: fix build with GCC 11
Closes: https://bugs.gentoo.org/786855 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-wireless/srslte')
-rw-r--r--net-wireless/srslte/files/srslte-20.10.1-add-missing-include.patch26
-rw-r--r--net-wireless/srslte/srslte-20.10.1-r2.ebuild4
2 files changed, 30 insertions, 0 deletions
diff --git a/net-wireless/srslte/files/srslte-20.10.1-add-missing-include.patch b/net-wireless/srslte/files/srslte-20.10.1-add-missing-include.patch
new file mode 100644
index 000000000000..158ff9e6db39
--- /dev/null
+++ b/net-wireless/srslte/files/srslte-20.10.1-add-missing-include.patch
@@ -0,0 +1,26 @@
+https://bugs.gentoo.org/786855
+
+From 4ec818f0d337a54ff3d4ff587bbd6f5f05363700 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Wed, 4 Aug 2021 23:14:21 +0100
+Subject: [PATCH] Add missing include
+
+---
+ lib/include/srslte/adt/observer.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/include/srslte/adt/observer.h b/lib/include/srslte/adt/observer.h
+index 38a881d..9ad33a0 100644
+--- a/lib/include/srslte/adt/observer.h
++++ b/lib/include/srslte/adt/observer.h
+@@ -26,6 +26,7 @@
+ #include <functional>
+ #include <limits>
+ #include <vector>
++#include <cstddef>
+
+ namespace srslte {
+
+--
+2.32.0
+
diff --git a/net-wireless/srslte/srslte-20.10.1-r2.ebuild b/net-wireless/srslte/srslte-20.10.1-r2.ebuild
index 02ff600dab82..789887297552 100644
--- a/net-wireless/srslte/srslte-20.10.1-r2.ebuild
+++ b/net-wireless/srslte/srslte-20.10.1-r2.ebuild
@@ -39,6 +39,10 @@ DEPEND="
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
+PATCHES=(
+ "${FILESDIR}"/${PN}-20.10.1-add-missing-include.patch
+)
+
src_prepare() {
sed -i '/ -Werror"/d' CMakeLists.txt || die
cmake_src_prepare