Skip to content

Conversation

@Mindavi
Copy link
Contributor

@Mindavi Mindavi commented Apr 15, 2022

Fixes a traceback where you get the following error:

  • AttributeError: 'NoneType' object has no attribute 'get_command'

This happened when cross-compiling e.g. harfbuzz.

I did release this on my hydra and didn't see any new regressions with it, so I'm pretty certain it will only improve meson and not cause further issues.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux (cross-compiled harfbuzz)
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 22.05 Release Notes (or backporting 21.11 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
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@Mindavi Mindavi added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Apr 15, 2022
@ofborg ofborg bot requested review from AndersonTorres and jtojnar April 15, 2022 08:12
@ofborg ofborg bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Apr 15, 2022
Copy link
Member

@NickCao NickCao left a comment

Choose a reason for hiding this comment

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

168 newly succeeding and zero regression on my hydra.

@risicle
Copy link
Contributor

risicle commented Apr 17, 2022

meson builds for me, macos 10.15

Fixes a traceback where you get the following error:
- AttributeError: 'NoneType' object has no attribute 'get_command'

This happened when cross-compiling e.g. harfbuzz.
@Mindavi Mindavi force-pushed the meson/cross-fix-gnome-staging branch from d57723f to e91229b Compare April 19, 2022 14:53
@ofborg ofborg bot requested a review from jtojnar April 19, 2022 16:16
@jtojnar jtojnar merged commit fa6aa9e into NixOS:staging Apr 21, 2022
@Mindavi Mindavi deleted the meson/cross-fix-gnome-staging branch April 24, 2022 20:01
@ghost ghost mentioned this pull request Apr 29, 2022
9 tasks
@r-burns r-burns mentioned this pull request Apr 30, 2022
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: cross-compilation Building packages on a different platform than they will be used on 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches.

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants