From 6af06b099758f20ade2463f2eb3db761fa0caf23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 26 Aug 2022 17:00:46 +0700 Subject: [PATCH] uhd: rebuild for boost-1.80 --- srcpkgs/uhd/patches/boost-math.patch | 31 +++++++++++++++++++++++++++ srcpkgs/uhd/patches/std-complex.patch | 10 +++++++++ srcpkgs/uhd/template | 2 +- 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/uhd/patches/boost-math.patch create mode 100644 srcpkgs/uhd/patches/std-complex.patch diff --git a/srcpkgs/uhd/patches/boost-math.patch b/srcpkgs/uhd/patches/boost-math.patch new file mode 100644 index 00000000000..9ac6dae1df9 --- /dev/null +++ b/srcpkgs/uhd/patches/boost-math.patch @@ -0,0 +1,31 @@ +--- a/host/lib/usrp/usrp2/usrp2_impl.cpp ++++ b/host/lib/usrp/usrp2/usrp2_impl.cpp +@@ -18,6 +18,8 @@ + #include //used for htonl and ntohl + #include + #include ++#include ++#include + #include + #include + +--- a/host/lib/usrp/cores/rx_frontend_core_3000.cpp ++++ b/host/lib/usrp/cores/rx_frontend_core_3000.cpp +@@ -12,6 +12,7 @@ + #include + #include + #include ++#include + #include + + using namespace uhd; +--- a/host/lib/usrp/cores/rx_dsp_core_3000.cpp ++++ b/host/lib/usrp/cores/rx_dsp_core_3000.cpp +@@ -14,6 +14,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/srcpkgs/uhd/patches/std-complex.patch b/srcpkgs/uhd/patches/std-complex.patch new file mode 100644 index 00000000000..c7573bf4ade --- /dev/null +++ b/srcpkgs/uhd/patches/std-complex.patch @@ -0,0 +1,10 @@ +--- a/host/tests/tx_streamer_test.cpp ++++ b/host/tests/tx_streamer_test.cpp +@@ -7,6 +7,7 @@ + #include "../common/mock_link.hpp" + #include + #include ++#include + #include + #include + diff --git a/srcpkgs/uhd/template b/srcpkgs/uhd/template index 5f043162d7d..170e12670c2 100644 --- a/srcpkgs/uhd/template +++ b/srcpkgs/uhd/template @@ -1,7 +1,7 @@ # Template file for 'uhd' pkgname=uhd version=4.0.0.0 -revision=1 +revision=2 build_wrksrc=host build_style=cmake configure_args="-DCMAKE_BUILD_TYPE=None"