commit:     3eeb1d9a9121ddc0d03565f5cef46b0decee7f8c
Author:     Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
AuthorDate: Thu Jun 15 21:18:16 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 15 21:32:50 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3eeb1d9a

net-wireless/gnuradio: fixes build with GCC-13

Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
Closes: https://github.com/gentoo/gentoo/pull/31472
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/gnuradio-3.10.6.0-fix-stdint.patch         | 20 ++++++++++++++++++++
 net-wireless/gnuradio/gnuradio-3.10.4.0-r1.ebuild    |  1 +
 net-wireless/gnuradio/gnuradio-3.10.5.1.ebuild       |  1 +
 net-wireless/gnuradio/gnuradio-3.10.6.0.ebuild       |  1 +
 4 files changed, 23 insertions(+)

diff --git a/net-wireless/gnuradio/files/gnuradio-3.10.6.0-fix-stdint.patch 
b/net-wireless/gnuradio/files/gnuradio-3.10.6.0-fix-stdint.patch
new file mode 100644
index 000000000000..6252d96fd8b5
--- /dev/null
+++ b/net-wireless/gnuradio/files/gnuradio-3.10.6.0-fix-stdint.patch
@@ -0,0 +1,20 @@
+Author: Christian Inci <[email protected]>
+Date:   Mon May 15 21:26:05 2023 +0200
+Upstream: https://github.com/gnuradio/gnuradio/pull/6667
+
+    Include cstdint in gr-fec's alist.h
+    
+    GCC 13 will error out otherwise.
+    
+    Signed-off-by: Christian Inci <[email protected]>
+
+--- a/gr-fec/include/gnuradio/fec/alist.h
++++ b/gr-fec/include/gnuradio/fec/alist.h
+@@ -23,6 +23,7 @@
+ #define ALIST_H
+ 
+ #include <gnuradio/fec/api.h>
++#include <cstdint>
+ #include <cstdlib>
+ #include <fstream>
+ #include <sstream>

diff --git a/net-wireless/gnuradio/gnuradio-3.10.4.0-r1.ebuild 
b/net-wireless/gnuradio/gnuradio-3.10.4.0-r1.ebuild
index cb4db21dfed5..32e79d5f8f58 100644
--- a/net-wireless/gnuradio/gnuradio-3.10.4.0-r1.ebuild
+++ b/net-wireless/gnuradio/gnuradio-3.10.4.0-r1.ebuild
@@ -134,6 +134,7 @@ DEPEND="${RDEPEND}
 PATCHES=(
        "${FILESDIR}/${PN}-3.10.3.0-fix-fmt-v9.patch" #858659
        "${FILESDIR}/${PN}-3.10.4.0-fix-blockinterleaving.patch"
+       "${FILESDIR}/${PN}-3.10.6.0-fix-stdint.patch"
 )
 
 src_prepare() {

diff --git a/net-wireless/gnuradio/gnuradio-3.10.5.1.ebuild 
b/net-wireless/gnuradio/gnuradio-3.10.5.1.ebuild
index b9ce9c0ab979..6a703292b5ab 100644
--- a/net-wireless/gnuradio/gnuradio-3.10.5.1.ebuild
+++ b/net-wireless/gnuradio/gnuradio-3.10.5.1.ebuild
@@ -133,6 +133,7 @@ DEPEND="${RDEPEND}
 
 PATCHES=(
        "${FILESDIR}/${PN}-3.10.3.0-fix-fmt-v9.patch" #858659
+       "${FILESDIR}/${PN}-3.10.6.0-fix-stdint.patch"
 )
 
 src_prepare() {

diff --git a/net-wireless/gnuradio/gnuradio-3.10.6.0.ebuild 
b/net-wireless/gnuradio/gnuradio-3.10.6.0.ebuild
index b9ce9c0ab979..6a703292b5ab 100644
--- a/net-wireless/gnuradio/gnuradio-3.10.6.0.ebuild
+++ b/net-wireless/gnuradio/gnuradio-3.10.6.0.ebuild
@@ -133,6 +133,7 @@ DEPEND="${RDEPEND}
 
 PATCHES=(
        "${FILESDIR}/${PN}-3.10.3.0-fix-fmt-v9.patch" #858659
+       "${FILESDIR}/${PN}-3.10.6.0-fix-stdint.patch"
 )
 
 src_prepare() {

Reply via email to