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

atler atler at pld-linux.org
Wed Jul 5 19:46:56 CEST 2023


commit a1eb7cc336b1b8e03e3230a3f9a0c4a4fe153166
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Jul 5 19:23:01 2023 +0200

    fix build with gcc >= 13

 gcc13.patch | 11 +++++++++++
 uhd.spec    |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/uhd.spec b/uhd.spec
index 12c1aca..d1ad011 100644
--- a/uhd.spec
+++ b/uhd.spec
@@ -14,6 +14,7 @@ Group:		Applications/System
 #Source0Download: https://github.com/EttusResearch/uhd/releases
 Source0:	https://github.com/EttusResearch/uhd/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	d91249b0114b2ac2fc36457f294ee55b
+Patch0:		gcc13.patch
 Patch1:		%{name}-libdir.patch
 Patch3:		%{name}-mpm-build.patch
 URL:		https://www.ettus.com/sdr-software/uhd-usrp-hardware-driver/
@@ -168,6 +169,7 @@ Biblioteka USRP Module Peripheral Manager dla Pythona.
 
 %prep
 %setup -q
+%patch0 -p1
 %patch1 -p1
 %patch3 -p1
 
diff --git a/gcc13.patch b/gcc13.patch
new file mode 100644
index 0000000..95bfdaa
--- /dev/null
+++ b/gcc13.patch
@@ -0,0 +1,11 @@
+--- uhd-4.4.0.0/mpm/lib/mykonos/ad937x_device_types.hpp.orig	2023-01-27 22:17:39.000000000 +0100
++++ uhd-4.4.0.0/mpm/lib/mykonos/ad937x_device_types.hpp	2023-07-05 19:16:33.157140559 +0200
+@@ -11,6 +11,8 @@
+ #include <uhd/types/direction.hpp>
+ #include <uhd/types/ranges.hpp>
+ 
++#include <cstdint>
++
+ namespace mpm { namespace ad937x { namespace device {
+ enum class build_type_t { RELEASE, DEBUG, TEST_OBJECT };
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/uhd.git/commitdiff/d1110e9771b1562aaa5a54809b1e719a156d006a



More information about the pld-cvs-commit mailing list