Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uhd: 3.10.2.0 -> 3.10.3.0 #34434

Merged
merged 3 commits into from Feb 9, 2018
Merged

uhd: 3.10.2.0 -> 3.10.3.0 #34434

merged 3 commits into from Feb 9, 2018

Conversation

markuskowa
Copy link
Member

@markuskowa markuskowa commented Jan 30, 2018

Motivation for this change

Version update. Includes fix to build against boost 1.66 (see #33549 and #33552)

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@lukeadams
Copy link
Contributor

Looks good! Only thing is the uhdImagesName wasn't bumped:

From e42c827e2a7bb212ee0ac17e2d082734806a92f5 Mon Sep 17 00:00:00 2001
From: Luke Adams <luke.adams@belljar.io>
Date: Thu, 1 Feb 2018 11:52:16 -0600
Subject: [PATCH] bump uhd images version

---
 pkgs/development/tools/misc/uhd/default.nix | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/pkgs/development/tools/misc/uhd/default.nix b/pkgs/development/tools/misc/uhd/default.nix
index 8f7ef254cf8..25796561f71 100644
--- a/pkgs/development/tools/misc/uhd/default.nix
+++ b/pkgs/development/tools/misc/uhd/default.nix
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
   src = fetchFromGitHub {
     owner = "EttusResearch";
     repo = "uhd";
-    rev = "release_003_010_003_000";
+    rev = "release_003_010_003_000"; # Also bump `uhdImagesName` below
     sha256 = "1aj8qizbyz4shwawj3qlhl6pyyda59hhgm9cwrj7s5kfdi4vdlc3";
   };
 
@@ -31,11 +31,12 @@ stdenv.mkDerivation rec {
   # Build only the host software
   preConfigure = "cd host";
 
-  # Firmware images are downloaded (pre-built)
-  uhdImagesName = "uhd-images_003.007.003-release";
+  # Firmware images are downloaded (pre-built) from:
+  # http://files.ettus.com/binaries/images/
+  uhdImagesName = "uhd-images_003.010.003.000-release";
   uhdImagesSrc = fetchurl {
-    url = "http://files.ettus.com/binaries/maint_images/archive/${uhdImagesName}.tar.gz";
-    sha256 = "1pv5c5902041494z0jfw623ca29pvylrw5klybbhklvn5wwlr6cv";
+    url = "http://files.ettus.com/binaries/images/${uhdImagesName}.tar.gz";
+    sha256 = "198awvw6zsh19ydgx5qry5yc6yahdval9wjrsqbyj51pnr6s5qvy";
   };
 
   postPhases = [ "installFirmware" ];
-- 
2.15.1

May be helpful to add the following to prevent this issue in the future:

let
  uhdVer = "003_010_003_000";
in
...
  src = fetchFromGitHub {
    rev = "release_${uhdVer}";
  ...
  uhdImagesName = "uhd-images_${lib.replaceStrings ["_"] ["."] uhdVer}-release";

Or wherabouts

@markuskowa
Copy link
Member Author

Thanks for the patch. The fw version and the host tools version are now locked to each other.

@lukeadams
Copy link
Contributor

Awesome!

I got emailed about 9c6a17c since you referenced it in your issue. I need to test this weekend but pinning the boost version may cause gnuradio building to fail as it uses latest boost. If so this pr may want to revert that commit?

@markuskowa
Copy link
Member Author

Hydra can build gnuradio again with pinning boost to 1.65 (https://hydra.nixos.org/build/68382505). I will rebase this PR and revert it back to default boost version (1.66), since nox-review could build it successfully.

CC @fpletz

@fpletz fpletz self-requested a review February 3, 2018 23:56
@fpletz fpletz merged commit a51cda8 into NixOS:master Feb 9, 2018
@markuskowa markuskowa deleted the uhd-fix-boost-pr branch February 11, 2018 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants