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
awesome: Remove $LD_LIBRARY_PATH handling #34259
Conversation
I have no idea why gobjectIntrospection even was in here. The only library in there, libgirepository-1.0.so, is not used by awesome. It is only used by lgi.so and that means it should be found via its RPATH. The Pango path is not needed in $LD_LIBRARY_PATH ever since gobjectIntrospection started patching .typelib files with absolute paths. Relevant commits are 36bef2b from 2014 ("gobject-introspection: refer to shlibs with absolute paths in typelibs") and c420de6 from 2016 ("gobject-introspection: Fix patching shared objects"). The above patches did not work for cairo, because cairo's typelib is a bit "special". However, this was fixed by e44038b some days ago ("gobjectIntrospection: use absolute path for cairo GIR"). Thus, setting $GI_TYPELIB_PATH is enough so that all needed libraries are found. Fixes: NixOS#14164 Signed-off-by: Uli Schlachter <psychon@znc.in>
That is great news! I am really happy managed happened to solve my problems. |
Slightly unrelated, but I will just leave this here as a comment: The only reason why |
This seems to break building awesome on current master: https://hydra.nixos.org/build/68619144/nixlog/1
Perhaps that should be added? (reverting this commit fixes the build for me, FWIW) |
Uhm, I'm not quite sure (I'll try to reproduce), but that seems a bit like what e44038b is supposed to fix... O.o |
Yup, that's exactly the problem that the above commit was supposed to fix. Running
So, once again, this fails to find |
Sigh. It worked because awesome is linked against Pull request coming in that reorders some code in lgi to make this work.... |
It might also work to keep the build-time |
I have no idea why gobjectIntrospection even was in here. The only
library in there, libgirepository-1.0.so, is not used by awesome. It is
only used by lgi.so and that means it should be found via its RPATH.
The Pango path is not needed in $LD_LIBRARY_PATH ever since
gobjectIntrospection started patching .typelib files with absolute
paths. Relevant commits are 36bef2b from 2014
("gobject-introspection: refer to shlibs with absolute paths in
typelibs") and c420de6 from 2016 ("gobject-introspection: Fix
patching shared objects").
The above patches did not work for cairo, because cairo's typelib is a
bit "special". However, this was fixed by e44038b some days ago
("gobjectIntrospection: use absolute path for cairo GIR").
Thus, setting $GI_TYPELIB_PATH is enough so that all needed libraries
are found.
Fixes: #14164
Signed-off-by: Uli Schlachter psychon@znc.in
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)