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

wrapGAppsHook: Correct wrapProgram invocations #25299

Merged
merged 1 commit into from Apr 29, 2017

Conversation

ahmedtd
Copy link
Contributor

@ahmedtd ahmedtd commented Apr 28, 2017

(Continuation of #25183, fixing problems that occurred when merging)

This change fixes several defects in the way wrapGAppsHook selected
the executable to wrap.

Previously, it would wrap any top-level files in the target /bin and
/libexec directories, including directories and non-executable
files. In addition, it failed to wrap files in subdirectories.

Now, it uses find to iterate over these directory hierarchies,
selecting only executable files for wrapping.

Motivation for this change
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • 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.

This change fixes several defects in the way `wrapGAppsHook` selected
the executable to wrap.

Previously, it would wrap any top-level files in the target `/bin` and
`/libexec` directories, including directories and non-executable
files.  In addition, it failed to wrap files in subdirectories.

Now, it uses `find` to iterate over these directory hierarchies,
selecting only executable files for wrapping.
@mention-bot
Copy link

@ahmedtd, thanks for your PR! By analyzing the history of the files in this pull request, we identified @vcunat, @lethalman and @peti to be potential reviewers.

@ahmedtd
Copy link
Contributor Author

ahmedtd commented Apr 28, 2017

Mentioning @fpletz and @mguentner, participants on original PR.

@pbogdan
Copy link
Member

pbogdan commented Apr 28, 2017

Testing locally this fixes build failure reported here edcff00#commitcomment-21950339 Haven't tested beyond that.

@peti peti merged commit d1008a9 into NixOS:master Apr 29, 2017
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.

None yet

6 participants