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
libinput update #29784
libinput update #29784
Conversation
@yegortimoshenko, thanks for your PR! By analyzing the history of the files in this pull request, we identified @codyopel, @lambdafu and @fpletz to be potential reviewers. |
0efd835
to
90cbcee
Compare
@@ -18,7 +18,11 @@ python3Packages.buildPythonApplication rec { | |||
popd | |||
''; | |||
|
|||
setupHook = ./setup-hook.sh; | |||
postPatch = '' | |||
sed -i -e 's|e.fix_rpath(install_rpath)||' mesonbuild/scripts/meson_install.py |
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.
Can you add a comment why this necessary.
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.
@Mic92 Sure. If Meson is not patched, result/bin/libinput
has empty rpath and consequently, it won't find libinput.so
and other dependencies and won't run.
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.
Have you checked how if removing breaks other projects depending on this? I am also a bit concerned, because it is also used outside of nixpkgs.
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.
I'm pretty sure nothing will break since most Meson-built derivations (there are currently only a few) patch ELF executables after compilation or set LD_LIBRARY_PATH:
nixpkgs/pkgs/tools/filesystems/sshfs-fuse/default.nix
Lines 33 to 35 in 699231e
postFixup = '' | |
patchelf --set-rpath '${rpath}' "$out/bin/sshfs" | |
''; |
nixpkgs/pkgs/os-specific/linux/firmware/fwupd/default.nix
Lines 46 to 50 in 35f8941
postFixup = '' | |
for prog in $out/bin/* $out/libexec/fwupd/*; do | |
wrapProgram "$prog" --prefix LD_LIBRARY_PATH : ${rpath} | |
done | |
''; |
nixpkgs/pkgs/development/libraries/appstream-glib/default.nix
Lines 31 to 35 in efeef04
postFixup = '' | |
for elf in "$out"/bin/* "$out"/lib/*.so; do | |
patchelf --set-rpath '${rpath}':"$out/lib" "$elf" | |
done | |
''; |
We would be able to throw this fixup out of Meson derivations.
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.
What is the purpose of meson's behavior here? I would like to understand this because it might affect users using meson to build there own software outside of nix store.
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.
@Mic92 it is purely a bug mesonbuild/meson#314
Just reminding that 1.9 will be released soon. via https://groups.google.com/forum/#!topic/nix-devel/X8cGDbz1wM8 |
@jtojnar I'll update it to 1.9 when it comes out. |
Thanks! |
Hello, I encountered an error when building some packages on master, and it seems this package does not build on my machine, probably caused by this package update?
|
I've used to test packages I change/update in NixOS via an overlay instead of touching I'll specify my Sorry to everyone I've pissed off. Also see #30286. |
1.8.902 sounds like a pre-release version. |
@jtojnar Thanks. It's already in my overlay (https://github.com/yegortimoshenko/overlay/blob/master/pkgs/libinput/default.nix) and I'll try to open а pull request to nixpkgs today. |
I updated my branch with additional cleanups: jtojnar@afbb8ee |
1.9.1 is now in master. |
@jtojnar Thanks so much for getting it into master. I won't have to recompile a lot of stuff on every |
Motivation for this change
New version of libinput provides improved support for MacBook touchpads.
Things done
Update libinput to the latest version. This includes a switch to Meson build system, patch to Meson itself (see #28444 (comment)), and xf86-input-libinput update.
NB: this triggers a mass rebuild. I've rebuilt all packages I use on my system, and they all work fine.
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)