-
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 without GST (or GRL): makeWrapper doesn't understand the arg GI_TYPELIB_PATH #75443
Comments
EDIT: No, the nixos-unstable channel build has that commit, still breaks Hmm, trying to link the |
Of course, it's also possible that this is due to my misuse/misunderstanding of wrapGAppsHook, I followed the gnome-music example in the manual. But the following seems to fix it, for nixos-unstable. The question is, is this a necessary and good patch? --- pkgs/build-support/setup-hooks/wrap-gapps-hook.sh 2019-12-10 17:00:45.264978439 +0000
+++ pkgs/build-support/setup-hooks/wrap-gapps-hook.sh.new 2019-12-10 17:00:39.333978461 +0000
@@ -42,7 +42,9 @@
fi
for v in ${wrapPrefixVariables:-} GST_PLUGIN_SYSTEM_PATH_1_0 GI_TYPELIB_PATH GRL_PLUGIN_PATH; do
- gappsWrapperArgs+=(--prefix "$v" : "${!v}")
+ if [ -n "${!v}" ]; then
+ gappsWrapperArgs+=(--prefix "$v" : "${!v}")
+ fi
done
if [[ -z "${dontWrapGApps:-}" ]]; then
I have added this as PR #75450 |
We pass
and And
I cannot reproduce the issue on master, nixos-unstable, nor do I recall ever seeing such issue. We have lot of packages not depending on GStreamer or Grilo, so I would expect the issue to pop up somewhere. |
Hmm, I can reproduce it in your repository; even with |
Oh, right you are doing |
I suggest using
|
I noticed this recently with python packages, because my example breaks in this fashion. |
It now breaks down as mentioned in NixOS#75443
…ting wrapGAppsHook: don't add empty variables (see also #75443)
Thanks both! The suggested preFixup makeWrapperArgs works for me. Closing as there is both a fix to the docs and one for wrap-gapps-hook-shell which has been committed. |
wrapGAppsHook dies without GST
When using wrapGAppsHook, and we don't have any GST plugins, I end up with the (pretty-printed) wrapping
(Extracted with
preFixup = "set -x"
andpostFixup = "set +x"
.)The problem is that the
GST_PLUGIN_SYSTEM_PATH_1_0
has no arguments, which should be passed as""
, without the quotes the argument becomes the next--prefix
which messes up the parser for makeWrapper. The following seems to work, thoughTo Reproduce
Steps to reproduce the behavior:
git clone https://github.com/KoviRobi/Pye-Menu.git
git checkout 49b86e1c716eebdbe344721eec99b77538a430dc
nix-build
On the channel
nixos-19.09
, withand also with
Expected behavior
The package builds
Screenshots
(Well, kind of a screenshot.)
Additional context
Might be related, #29055
Workaround
Adding gst plugins, even if the program doesn't depend on it, seems to fix it. Or setting
GST_PLUGIN_SYSTEM_PATH_1_0 = ''""''
(the string containing an open/close quote pair, which gets expanded to the empty argument). SeeKoviRobi/Pye-Menu@4c95bac
I suspect the proper fix will be in
<nixpkgs/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh>
e.g. nixos-19.09 or nixos-unstable, but I don't know enough about it to commit a fix knowing that it won't break other stuffThe text was updated successfully, but these errors were encountered: