commit: 44fc729f854e1d3307b6131abfe8d32a6653a15f Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Aug 4 22:17:33 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Aug 4 22:17:56 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44fc729f
net-wireless/srslte: fix build with GCC 11 Closes: https://bugs.gentoo.org/786855 Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/srslte-20.10.1-add-missing-include.patch | 26 ++++++++++++++++++++++ net-wireless/srslte/srslte-20.10.1-r2.ebuild | 4 ++++ 2 files changed, 30 insertions(+) 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 00000000000..158ff9e6db3 --- /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 <s...@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 02ff600dab8..78988729755 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