[packages/gnuradio] fix build with gcc >= 13

atler atler at pld-linux.org
Tue Jul 4 14:34:54 CEST 2023


commit e77819706fff6c426ffeaf671faad58cd619e075
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Jul 4 13:43:29 2023 +0200

    fix build with gcc >= 13

 gcc13.patch   | 21 +++++++++++++++++++++
 gnuradio.spec |  2 ++
 2 files changed, 23 insertions(+)
---
diff --git a/gnuradio.spec b/gnuradio.spec
index e84a335..d142e15 100644
--- a/gnuradio.spec
+++ b/gnuradio.spec
@@ -17,6 +17,7 @@ Source0:	http://gnuradio.org/releases/gnuradio/%{name}-%{version}.tar.gz
 Patch0:		link.patch
 Patch1:		python-libdir.patch
 Patch2:		%{name}-boost.patch
+Patch3:		gcc13.patch
 URL:		http://www.gnuradio.org/
 BuildRequires:	Qt5Core-devel >= 5
 BuildRequires:	Qt5DBus-devel >= 5
@@ -156,6 +157,7 @@ Przykłady do GNU Radio.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__mkdir_p} build
diff --git a/gcc13.patch b/gcc13.patch
new file mode 100644
index 0000000..dd91575
--- /dev/null
+++ b/gcc13.patch
@@ -0,0 +1,21 @@
+--- gnuradio-3.8.0.0/gnuradio-runtime/lib/pmt/pmt_serialize.cc.orig	2019-08-09 23:40:34.000000000 +0200
++++ gnuradio-3.8.0.0/gnuradio-runtime/lib/pmt/pmt_serialize.cc	2023-07-04 13:15:44.735434378 +0200
+@@ -26,6 +26,7 @@
+ #include "pmt/pmt_serial_tags.h"
+ #include "pmt_int.h"
+ #include <pmt/pmt.h>
++#include <cstdint>
+ #include <limits>
+ #include <vector>
+ 
+--- gnuradio-3.8.0.0/gnuradio-runtime/include/gnuradio/fxpt_nco.h.orig	2019-08-09 23:40:34.000000000 +0200
++++ gnuradio-3.8.0.0/gnuradio-runtime/include/gnuradio/fxpt_nco.h	2023-07-04 13:21:04.950553611 +0200
+@@ -26,7 +26,7 @@
+ #include <gnuradio/api.h>
+ #include <gnuradio/fxpt.h>
+ #include <gnuradio/gr_complex.h>
+-#include <stdint.h>
++#include <cstdint>
+ 
+ namespace gr {
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gnuradio.git/commitdiff/2f8836db6dc69ff882506f49c3128fbe27fd9e23



More information about the pld-cvs-commit mailing list