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

gnuradio3_8: fix build #348477

Closed
wants to merge 2 commits into from
Closed

gnuradio3_8: fix build #348477

wants to merge 2 commits into from

Conversation

EwuUwe
Copy link
Contributor

@EwuUwe EwuUwe commented Oct 14, 2024

The gnuradio3_8 package currently fails to build because of an incompatible qwt version:

QWT Version: 6.3.0
QWT Version must be >= 5.2 and <= 6.2.0, Found 6.3.0
CMake Error at cmake/Modules/GrComponent.cmake:75 (message):
  user force-enabled gr-qtgui but configuration checked failed
Call Stack (most recent call first):
  gr-qtgui/CMakeLists.txt:46 (GR_REGISTER_COMPONENT)

This change introduced the issue: #312289
Using qwt6_1 instead fixes this Problem

A recent upgrade of the swig package from swig3 to swig4 (#337624) also introduced issues resulting in the package tests not running correctly.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

Copy link
Contributor

@doronbehar doronbehar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello and thanks for making an effort to fix this :). Due to the qwt passthru inherit, ofborg evaluation failed and I wasn't called for a review by ofborg. I will fix these issues in #349079 which already triggers a rebuild of gnuradio.

@@ -268,7 +268,7 @@ stdenv.mkDerivation (finalAttrs: (shared // {
} // lib.optionalAttrs (hasFeature "gr-uhd") {
inherit uhd;
} // lib.optionalAttrs (hasFeature "gr-qtgui") {
inherit (libsForQt5) qwt;
inherit (libsForQt5) qwt6_1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
inherit (libsForQt5) qwt6_1;
qwt = qwt6_1;

Comment on lines +48 to +57
swig3 = ((swig.overrideAttrs (old: rec {
version = "3.0.12";
src = fetchFromGitHub {
owner = "swig";
repo = "swig";
rev = "rel-${version}";
sha256 = "1wyffskbkzj5zyhjnnpip80xzsjcr3p0q5486z3wdwabnysnhn8n";
};
})).override
{ pcre2 = pcre; });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aish, swig3 was just dropped in bfab6b0f8386 (#341384) . How did you conclude that swig3 is needed? I just built it locally without this swig3 commit.

@@ -83,7 +95,7 @@ let
python-support = {
pythonRuntime = [ python.pkgs.six ];
native = [
swig
swig3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also requires changing the swig that is passed to the gnuradio3_8Packages...

@doronbehar
Copy link
Contributor

Closed in favor of #349079 .

@doronbehar doronbehar closed this Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants