-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
#25183
Conversation
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.
@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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
This breaks at least mate-terminal and claws-mail:
nix-build -A mate.mate-terminal
|
Yeah, I see what happens. The patch passes those paths as arguments to |
This reverts commit 8b9f153 of #25183 because it breaks builds of packages that don't install both a "bin" and a "libexec" directory. See #25183 (comment) for more details.
OK, I've worked up a fix, and tested it on I think this PR needs to be reopened in order for the new commits to appear here, or I can open a new PR. |
|
Oh, nevermind. It is fixed now. https://hydra.nixos.org/build/52082092 |
This change fixes several defects in the way
wrapGAppsHook
selectedthe executable to wrap.
Previously, it would wrap any top-level files in the target
/bin
and/libexec
directories, including directories and non-executablefiles. 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
Wrapping directories inside
libexec
brokeemacs
.Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)