8

Coming mostly from Fedora and Archlinux I used to have the latest libinput available in a reasonable time. Currently, on ubuntu 18.04 I do not see how can I have the latest libinput e.g. 1.12 at the time of writing on my machine. Is there a ppa or has anyone tried to install it from source without messing up the whole system?

I do not mind to compile it but I am not well educated in testing it and making sure it is working in conjunction with other packages properly. Having ThinkPad TrackPoint I kinda feel having the latest libinput is crucial!

  • I was about to write an answer, but figured I don't know how to assemble a package correctly (specifically, which packages your libinput-git would replace, there's more than one), and don't have Ubuntu handy to test (I'm on Archlinux). Hopefully, you can build an answer upon my next comment. – Hi-Angel Sep 12 '18 at 5:16
  • 1
    More-or-less recent packages probably can be gotten from here. Building from source is easy: git clone https://gitlab.freedesktop.org/libinput/libinput.git, and then follow steps from the build() function from here (correct libexecdir to /usr/lib/x86_something). And lastly, you need to assemble a package from it with checkinstall -D make install command. – Hi-Angel Sep 12 '18 at 5:16
  • 1
    To address the making sure it is working in conjunction with other packages properly: the meson build (from the linked build() function) will take care of dependencies (and if not, it's a bug). You only need to take care of writing correct dependencies for package manager; checkinstall command will ask you about them (I didn't look at man for checkinstall, but it's likely you can just write a config, and feed it to checkinstall). Main purpose is to not have same file /foo in two different packages, and hence of 2 different versions (tho hopefully apt will throw an error then). – Hi-Angel Sep 12 '18 at 8:56
  • Thank you very much for the info in here. I never had experience with meson, and to be fair compilation has been fairly straightforward. I was just not sure if I should use the binaries since I didn't want to break anything, but since there is no other solution I will try and report in here about the outcome. thanks. – Mohamad Sep 13 '18 at 11:09
  • @Mohamad any news? Can you post were you able to update it or no? If yes, steps would be great. – Vadim K Jul 16 '19 at 10:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.