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

Itk: 5.0.1 -> 5.1.0 #86142

Merged
merged 5 commits into from May 9, 2020
Merged

Itk: 5.0.1 -> 5.1.0 #86142

merged 5 commits into from May 9, 2020

Conversation

bcdarwin
Copy link
Member

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • [NA] 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 nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

nativeBuildInputs = [ cmake python3 ];
buildInputs = [ itk ];

doCheck = true;
doCheck = !stdenv.isDarwin; # usual dynamic linker issues
Copy link
Member

Choose a reason for hiding this comment

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

What do you mean by usual issues? Can we resolve with preCheck = "export DYLD_LIBRARY_PATH ...?

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried doing something naive similar to what is done with LD_LIBRARY_PATH already but that didn't work. I don't really do much development on OS X so don't mind disabling this package if you prefer.

@veprbl
Copy link
Member

veprbl commented Apr 28, 2020

@GrahamcOfBorg build elastix ezminc simpleitk vtk itk4

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

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

looks like h5c++ want's pkg-config to be available at runtime:

/nix/store/qvb7wnswcaqspp7k6v8ak18llfx89gw0-itk-5.1.0/h5c++
dir is /nix/store/qvb7wnswcaqspp7k6v8ak18llfx89gw0-itk-5.1.0
./results/itk/bin/h5c++: line 32: pkg-config: command not found

@bcdarwin
Copy link
Member Author

@jonringer -- pkgconfig now propagated.

@bcdarwin bcdarwin requested a review from jonringer April 28, 2020 14:30
@knedlsepp
Copy link
Member

@jonringer -- pkgconfig now propagated.

Hm. This means it will only be available to all nix-builds depending on it, but not at runtime when using nix run nixpkgs.itk. If we want the latter we probably will need to add the pkg-config PATH to the makeWrapperArgs, right?

@bcdarwin
Copy link
Member Author

@knedlsepp -- h5cc and h5c++ are compiler wrappers so most likely they would be used by other derivations, although it's a bit unseemly to have them fail at runtime. Not sure what the best solution is here -- these are somewhat incidental programs built by the ITKHDF5 module which aren't needed to compile most programs using ITK (including all reverse deps in the Nixpkgs tree such as ANTs). Is it worth it to create a wrapper for them?

@bcdarwin bcdarwin force-pushed the itk-5.1.0 branch 2 times, most recently from 73b960d to 28d4943 Compare May 4, 2020 16:01
@bcdarwin
Copy link
Member Author

bcdarwin commented May 4, 2020

@knedlsepp @jonringer I've wrapped h5c++ with pkgconfig.

@bcdarwin bcdarwin requested a review from veprbl May 4, 2020 16:02
@veprbl
Copy link
Member

veprbl commented May 4, 2020

@GrahamcOfBorg build elastix ezminc simpleitk vtk itk4

@bcdarwin
Copy link
Member Author

bcdarwin commented May 5, 2020

@GrahamcOfBorg build elastix ezminc simpleitk vtk itk4

1 similar comment
@veprbl
Copy link
Member

veprbl commented May 5, 2020

@GrahamcOfBorg build elastix ezminc simpleitk vtk itk4

- simpleitk 1.2.4 is incompatible with ITK 5.1, so this can be reverted when 2.x is released.
- itk5 branch currently lacks support for itk 5.1
- fetch patches to build elastix 5.0 with ITK 5.1
- update 'platforms': builds on Darwin, fails on aarch64
@veprbl veprbl merged commit e80302d into NixOS:master May 9, 2020
@bcdarwin bcdarwin deleted the itk-5.1.0 branch May 9, 2020 19:45
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