Trying to run Keyman under Gentoo Linux, so far without success.
The obstacle is libsystemd dependency that makes you stop when you try to configure linux/build.sh. By default, Gentoo runs with openrc, which cannot be installed along with systemd in the same OS. Any suggestion how to get the build script configured with openrc?
This is the part of the log file:
– Module search paths: [‘/’, ‘/opt’, ‘/usr’, ‘/usr/local’]
– CMake root: /usr/share/cmake
– CMake architectures:
– CMake lib search paths: [‘lib’, ‘lib32’, ‘lib64’, ‘libx32’, ‘share’, ‘’]
Preliminary CMake check failed. Aborting.
Run-time dependency libsystemd found: NO (tried pkgconfig and cmake)
meson.build:7:11: ERROR: Dependency “libsystemd” not found, tried pkgconfig and cmake
Unfortunately Gentoo isn’t supported by Keyman due to limited resources, so we don’t regularly build and test on that platform.
Keyman depends on systemd because of sd-bus. I think it should be possible to get it working on Gentoo by using basu instead. You’ll probably have to make some adjustments in the meson build files (particularly linux/keyman-system-service/meson.build and linux/ibus-keyman/meson.build), and you’ll have to create start/stop scripts for the keyman-system-service that work with openrc.
We will be happy to accept a patch in the form of a PR on github if you get it working on Gentoo.
Note that in Keyman 17 most things work without keyman-system-service, so if you want to test that it works you’ll have to use a keyboard that makes use of the Caps Lock stores, e.g. the experimental GFF Sheek Bakrii Saphaloo keyboard that makes use of the capsalwaysoff feature, i.e. pressing the CapsLock key won’t turn on caps lock.
Hi @rytir, would you be able to try to build with PR #12889 and report back here? I took the patch from the Gentoo forum you linked and applied it in a way that doesn’t break things when building for Debian but shouldn’t require additional patches for Gentoo. Thanks!