Skip to content

Commit

Permalink
uhd: 4.6.0.0 -> 4.7.0.0 (#349079)
Browse files Browse the repository at this point in the history
  • Loading branch information
jopejoe1 authored Oct 31, 2024
2 parents a35398f + 331482e commit 369d626
Show file tree
Hide file tree
Showing 13 changed files with 88 additions and 44 deletions.
29 changes: 8 additions & 21 deletions pkgs/applications/radio/gnuradio/3.8.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
, pkg-config
, volk
, cppunit
, swig
, swig3
, orc
, boost
, log4cpp
Expand Down Expand Up @@ -83,7 +83,7 @@ let
python-support = {
pythonRuntime = [ python.pkgs.six ];
native = [
swig
swig3
python
];
cmakeEnableFlag = "PYTHON";
Expand All @@ -98,7 +98,7 @@ let
gr-ctrlport = {
cmakeEnableFlag = "GR_CTRLPORT";
native = [
swig
swig3
];
runtime = [
thrift
Expand Down Expand Up @@ -159,7 +159,7 @@ let
cmakeEnableFlag = "GR_CHANNELS";
};
gr-qtgui = {
runtime = [ qt5.qtbase libsForQt5.qwt ];
runtime = [ qt5.qtbase libsForQt5.qwt6_1 ];
pythonRuntime = [ python.pkgs.pyqt5 ];
cmakeEnableFlag = "GR_QTGUI";
};
Expand Down Expand Up @@ -231,22 +231,9 @@ stdenv.mkDerivation (finalAttrs: (shared // {
# Will still evaluate correctly if not used here. It only helps nix-update
# find the right file in which version is defined.
inherit (shared) src;
# Remove failing tests
preConfigure = (shared.preConfigure or "") + ''
# https://github.com/gnuradio/gnuradio/issues/3801
rm gr-blocks/python/blocks/qa_cpp_py_binding.py
rm gr-blocks/python/blocks/qa_cpp_py_binding_set.py
rm gr-blocks/python/blocks/qa_ctrlport_probes.py
# Tests that fail due to numpy deprecations upstream hasn't accomodated to yet.
rm gr-fec/python/fec/qa_polar_decoder_sc.py
rm gr-fec/python/fec/qa_polar_decoder_sc_list.py
rm gr-fec/python/fec/qa_polar_decoder_sc_systematic.py
rm gr-fec/python/fec/qa_polar_encoder.py
rm gr-fec/python/fec/qa_polar_encoder_systematic.py
rm gr-filter/python/filter/qa_freq_xlating_fft_filter.py
# Failed with libstdc++ from GCC 13
rm gr-filter/python/filter/qa_filterbank.py
'';
# Some of the tests we know why they fail, but others simply hang-out and
# timeout...
doCheck = false;
patches = [
# Not accepted upstream, see https://github.com/gnuradio/gnuradio/pull/5227
./modtool-newmod-permissions.3_8.patch
Expand All @@ -268,7 +255,7 @@ stdenv.mkDerivation (finalAttrs: (shared // {
} // lib.optionalAttrs (hasFeature "gr-uhd") {
inherit uhd;
} // lib.optionalAttrs (hasFeature "gr-qtgui") {
inherit (libsForQt5) qwt;
qwt = libsForQt5.qwt6_1;
};
cmakeFlags = shared.cmakeFlags
# From some reason, if these are not set, libcodec2 and gsm are not
Expand Down
1 change: 1 addition & 0 deletions pkgs/applications/radio/gnuradio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
, orc
, boost
, spdlog
, swig
, mpir
, doxygen
, python
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/radio/uhd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ stdenv.mkDerivation (finalAttrs: {
#
# nix-shell maintainers/scripts/update.nix --argstr package uhd --argstr commit true
#
version = "4.6.0.0";
version = "4.7.0.0";

outputs = [ "out" "dev" ];

Expand All @@ -50,7 +50,7 @@ stdenv.mkDerivation (finalAttrs: {
rev = "v${finalAttrs.version}";
# The updateScript relies on the `src` using `hash`, and not `sha256. To
# update the correct hash for the `src` vs the `uhdImagesSrc`
hash = "sha256-9ZGt0ZrGbprCmpAuOue6pg2gliu4MvlRFHGxyMJeKAc=";
hash = "sha256-TX1iLs941z8sZY0yQEXuy9jGgsn6HU4uqIdxJmNNahU=";
};
# Firmware images are downloaded (pre-built) from the respective release on Github
uhdImagesSrc = fetchurl {
Expand Down
16 changes: 8 additions & 8 deletions pkgs/applications/radio/uhd/no-adapter-tests.patch
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
diff --git i/host/tests/CMakeLists.txt w/host/tests/CMakeLists.txt
index f40c252ad..b8a07d341 100644
--- i/host/tests/CMakeLists.txt
+++ w/host/tests/CMakeLists.txt
@@ -453,12 +453,6 @@ UHD_ADD_NONAPI_TEST(
index bac599811..267f8e602 100644
--- a/host/tests/CMakeLists.txt
+++ b/host/tests/CMakeLists.txt
@@ -517,12 +517,6 @@ UHD_ADD_NONAPI_TEST(
${UHD_SOURCE_DIR}/lib/utils/compat_check.cpp
)

-UHD_ADD_NONAPI_TEST(
- TARGET "xport_adapter_ctrl_test.cpp"
- EXTRA_SOURCES
- ${UHD_SOURCE_DIR}/lib/usrp/cores/xport_adapter_ctrl.cpp
-)
-
########################################################################
# demo of a loadable module
########################################################################
UHD_ADD_NONAPI_TEST(
TARGET "custom_reg_test.cpp"
EXTRA_SOURCES
56 changes: 56 additions & 0 deletions pkgs/by-name/sw/swig3/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
lib,
stdenv,
fetchFromGitHub,
autoconf,
automake,
libtool,
bison,
pcre,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "swig";
version = "3.0.12";

src = fetchFromGitHub {
owner = "swig";
repo = "swig";
rev = "rel-${finalAttrs.version}";
sha256 = "1wyffskbkzj5zyhjnnpip80xzsjcr3p0q5486z3wdwabnysnhn8n";
};

# Not using autoreconfHook because it fails due to missing macros, contrary
# to this script
preConfigure = ''
./autogen.sh
'';

nativeBuildInputs = [
autoconf
automake
libtool
bison
];
buildInputs = [
pcre
];

configureFlags = [
"--without-tcl"
];

# Disable ccache documentation as it needs yodl
postPatch = ''
sed -i '/man1/d' CCache/Makefile.in
'';

meta = {
description = "Interface compiler that connects C/C++ code to higher-level languages";
homepage = "https://swig.org/";
# Different types of licenses available: http://www.swig.org/Release/LICENSE .
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ doronbehar ];
};
})
4 changes: 2 additions & 2 deletions pkgs/development/gnuradio-modules/grnet/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
, boost
, logLib
, python
, swig
, swig3
, mpir
, gmp
, doxygen
Expand Down Expand Up @@ -78,7 +78,7 @@ mkDerivation {
pybind11
numpy
] else [
swig
swig3
thrift
python.pkgs.thrift
]);
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/gnuradio-modules/gsm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
, cmake
, pkg-config
, cppunit
, swig
, swig3
, boost
, logLib
, python
Expand All @@ -27,7 +27,7 @@ mkDerivation {
nativeBuildInputs = [
cmake
pkg-config
swig
swig3
python
];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/gnuradio-modules/limesdr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
, thrift
, cmake
, pkg-config
, swig
, swig3
, python
, logLib
, mpir
Expand Down Expand Up @@ -38,7 +38,7 @@ in mkDerivation {
nativeBuildInputs = [
cmake
pkg-config
swig
swig3
python
];
buildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/gnuradio-modules/nacl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
, cmake
, pkg-config
, cppunit
, swig
, swig3
, boost
, logLib
, python
Expand All @@ -26,7 +26,7 @@ mkDerivation {
nativeBuildInputs = [
cmake
pkg-config
swig
swig3
python
];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/gnuradio-modules/osmosdr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
, thrift
, fftwFloat
, python
, swig
, swig3
, uhd
, icu
, airspy
Expand Down Expand Up @@ -85,7 +85,7 @@ in mkDerivation {
nativeBuildInputs = [
cmake
pkg-config
swig
swig3
] ++ lib.optionals (gnuradio.hasFeature "python-support") [
(if (gnuradio.versionAttr.major == "3.7") then
python.pkgs.cheetah
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/gnuradio-modules/rds/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
, gnuradio
, cmake
, pkg-config
, swig
, swig3
, python
, logLib
, mpir
Expand Down Expand Up @@ -50,7 +50,7 @@ in mkDerivation {
nativeBuildInputs = [
cmake
pkg-config
swig
swig3
python
];

Expand Down
1 change: 0 additions & 1 deletion pkgs/top-level/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,6 @@ mapAliases {
swiPrologWithGui = lib.warn "swiPrologWithGui has been renamed to swi-prolog-gui" swi-prolog-gui; # Added 2024-09-07
swig1 = throw "swig1 has been removed as it is obsolete"; # Added 2024-08-23
swig2 = throw "swig2 has been removed as it is obsolete"; # Added 2024-08-23
swig3 = throw "swig3 has been removed as it is obsolete"; # Added 2024-09-12
swig4 = swig; # Added 2024-09-12
swigWithJava = throw "swigWithJava has been removed as the main swig package has supported Java since 2009"; # Added 2024-09-12
swtpm-tpm2 = throw "'swtpm-tpm2' has been renamed to/replaced by 'swtpm'"; # Converted to throw 2024-10-17
Expand Down
1 change: 1 addition & 0 deletions pkgs/top-level/gnuradio-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ let
volk
logLib
python
qwt
;
inherit mkDerivationWith mkDerivation;
inherit gnuradio;
Expand Down

0 comments on commit 369d626

Please sign in to comment.