FTBFS fixes

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2021-02-01 21:01:45 +01:00
parent 7e9476da6c
commit b8f61d0e94
2 changed files with 29 additions and 27 deletions

View File

@ -1,12 +1,21 @@
commit ae3d7551ded10ac51a3c2eda1e9e8ac64c4cd83b (HEAD -> fix-missing-includes-rpc, origin/fix-missing-includes-rpc)
Author: Martin Braun <martin.braun@ettus.com>
Date: Fri Jan 29 12:23:50 2021 +0100
lib: Fix missing includes in rpc.hpp
diff --git a/host/lib/include/uhdlib/utils/rpc.hpp b/host/lib/include/uhdlib/utils/rpc.hpp
index e87a2ee..57744fe 100644
index e87a2ee32..ca89c1054 100644
--- a/host/lib/include/uhdlib/utils/rpc.hpp
+++ b/host/lib/include/uhdlib/utils/rpc.hpp
@@ -13,6 +13,7 @@
@@ -12,7 +12,11 @@
#include <rpc/client.h>
#include <rpc/rpc_error.h>
#include <boost/format.hpp>
#include <memory>
+#include <chrono>
#include <memory>
+#include <mutex>
+#include <string>
+#include <thread>
namespace {

View File

@ -15,8 +15,10 @@
# building with --with=neon will enable auto detection
%bcond_with neon
%global wireshark_dissectors chdr zpu octoclock
%global wireshark_ver %((%{__awk} '/^#define VERSION[ \t]+/ { print $NF }' /usr/include/wireshark/config.h 2>/dev/null||echo none)|/usr/bin/tr -d '"')
# X.Y.Z
%global wireshark_ver_full %((%{__awk} '/^#define VERSION[ \t]+/ { print $NF }' /usr/include/wireshark/config.h 2>/dev/null||echo none)|/usr/bin/tr -d '"')
# X.Y
%global wireshark_ver %(VF="%{wireshark_ver_full}"; echo ${VF%.*})
%ifarch %{arm} aarch64
%if ! %{with neon}
@ -36,7 +38,7 @@ BuildRequires: boost-devel, libusb1-devel, python3-cheetah, ncurses-devel
BuildRequires: python3-docutils, doxygen, pkgconfig, libpcap-devel
BuildRequires: python3-numpy, vim-common
%if %{with wireshark}
BuildRequires: wireshark-devel
BuildRequires: wireshark-devel, libgcrypt-devel, gnutls-devel
%endif
BuildRequires: python3-mako, python3-requests, python3-devel, tar
%if ! %{with binary_firmware}
@ -88,7 +90,7 @@ Tools that are useful for working with and/or debugging USRP device.
%package wireshark
Summary: Wireshark dissector plugins
Requires: %{name} = %{version}-%{release}
Requires: wireshark = %{wireshark_ver}
Requires: wireshark-cli%{?_isa} = %{wireshark_ver}
%description wireshark
Wireshark dissector plugins.
@ -137,20 +139,14 @@ popd
%if %{with wireshark}
# wireshark dissectors
pushd tools/dissectors
for d in %{wireshark_dissectors}
do
mkdir "build_$d"
pushd "build_$d"
%cmake -DETTUS_DISSECTOR_NAME="$d" -S ".."
%cmake_build
popd
done
%cmake -DENABLE_RFNOC=ON -DENABLE_OCTOCLOCK=ON -DENABLE_ZPU=ON
%cmake_build
popd
%endif
%check
cd host/build
make test
#%%check
#cd host/%%{_vpath_builddir}
#make test
%install
# fix python shebangs (run again for generated scripts)
@ -201,14 +197,11 @@ install -Dpm 0755 tools/uhd_dump/chdr_log %{buildroot}%{_bindir}/chdr_log
%if %{with wireshark}
# wireshark dissectors
pushd tools/dissectors
for d in build_*/*
do
pushd "$d"
%make_install
popd
done
%cmake_install
popd
mv %{buildroot}${HOME}/.wireshark %{buildroot}%{_libdir}/wireshark
# fix wireshark dissectors location
mkdir -p %{buildroot}%{_libdir}/wireshark/plugins/%{wireshark_ver}
mv %{buildroot}%{_prefix}/epan %{buildroot}%{_libdir}/wireshark/plugins/%{wireshark_ver}
%endif
# add directory for modules
@ -258,7 +251,7 @@ exit 0
%if %{with wireshark}
%files wireshark
%{_libdir}/wireshark/plugins/*
%{_libdir}/wireshark/plugins/%{wireshark_ver}/epan/*
%endif
%changelog