[packages/uhd] - add missing BRs - disable debug on x32 to prevent ooms during pyuhd.cpp compilation

baggins baggins at pld-linux.org
Tue Nov 10 00:15:26 CET 2026


commit dc8fe6602362a90d91f75429f926e19350b770b5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Nov 10 00:13:51 2026 +0100

    - add missing BRs
    - disable debug on x32 to prevent ooms during pyuhd.cpp compilation

 uhd.spec | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/uhd.spec b/uhd.spec
index 3d86eee..6704ccf 100644
--- a/uhd.spec
+++ b/uhd.spec
@@ -18,6 +18,7 @@ Patch1:		%{name}-libdir.patch
 Patch3:		%{name}-mpm-build.patch
 URL:		https://www.ettus.com/sdr-software/uhd-usrp-hardware-driver/
 BuildRequires:	boost-devel >= 1.66
+BuildRequires:	c-ares-devel
 BuildRequires:	cmake >= 3.8
 BuildRequires:	doxygen
 %if %{with dpdk}
@@ -32,11 +33,13 @@ BuildRequires:	libstdc++-devel >= 6:6.3
 BuildRequires:	libusb-devel >= 1.0
 BuildRequires:	ncurses-devel
 BuildRequires:	pkgconfig
+BuildRequires:	protobuf-devel
 BuildRequires:	python3 >= 1:3.6
 BuildRequires:	python3-Mako >= 0.4.2
 BuildRequires:	python3-devel >= 1:3.6
 BuildRequires:	python3-modules >= 1:3.6
 BuildRequires:	python3-numpy-devel >= 1.11
+BuildRequires:	python3-pybind11
 BuildRequires:	python3-requests >= 2.0
 BuildRequires:	python3-ruamel.yaml
 BuildRequires:	rpm-build >= 4.6
@@ -52,6 +55,10 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 # per_lcore__lcore_id, per_lcore__rte_errno non-function symbols from dpdk
 %define		skip_post_check_so	libuhd.so.*
 
+%ifarch x32
+%define		_enable_debug_packages	0
+%endif
+
 %description
 The UHD is the universal hardware driver for Ettus Research products.
 The goal of the UHD is to provide a host driver and API for current
@@ -184,6 +191,10 @@ Biblioteka USRP Module Peripheral Manager dla Pythona.
 grep -rl '/usr/bin/env python3' . | xargs %{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},'
 
 %build
+%ifarch x32
+export CFLAGS="$CFLAGS -g0"
+export CXXFLAGS="$CXXFLAGS -g0"
+%endif
 install -d build-{host,mpm}
 cd build-host
 %cmake ../host \
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list