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

dtc: fix Python support #69234

Merged
merged 1 commit into from Sep 22, 2019
Merged

dtc: fix Python support #69234

merged 1 commit into from Sep 22, 2019

Conversation

lopsided98
Copy link
Contributor

Motivation for this change

dtc switched from Python 2 to 3 by default with a patch release (1.5.0 -> 1.5.1), which broke pythonPackages.libfdt. This fixes this issue, fixing the build of at least ubootRock64.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option 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 nix-review --run "nix-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.
Notify maintainers

cc @dezgeg
cc @bjornfor because you merged the 1.5.1 update and dezgeg hasn't been working on Nix recently

@lopsided98
Copy link
Contributor Author

@GrahamcOfBorg build python2Packages.libfdt python3Packages.libfdt ubootRock64

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.

nix-review passes on NixOS (1 marked broken on master)
diff LGTM
executables seem to work

[7 built, 37 copied (126.3 MiB), 42.8 MiB DL]
https://github.com/NixOS/nixpkgs/pull/69234
1 package are marked as broken and were skipped:
odroid-xu3-bootloader

5 package were build:
diffoscope dtc fwts python37Packages.libfdt ubootTools


postPatch = ''
patchShebangs pylibfdt/
'';

makeFlags = lib.optionals (!pythonSupport) [ "NO_PYTHON=1" ];
makeFlags = [ "PYTHON=python" ];
installFlags = [ "INSTALL=install" "PREFIX=$(out)" "SETUP_PREFIX=$(out)" ];
Copy link
Contributor

Choose a reason for hiding this comment

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

I know you didnt change it, but now would be the time

Suggested change
installFlags = [ "INSTALL=install" "PREFIX=$(out)" "SETUP_PREFIX=$(out)" ];
installFlags = [ "INSTALL=install" "PREFIX=${placeholder "out"}" "SETUP_PREFIX=${placeholder "out"}" ];

@bjornfor bjornfor merged commit 53489b4 into NixOS:master Sep 22, 2019
@lopsided98 lopsided98 deleted the dtc-python branch October 18, 2019 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
NixOS on ARM
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

4 participants