Created attachment 737833 [details]
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency libsystemd found: NO (tried pkgconfig)
../at-spi2-core-2.40.3/bus/meson.build:75:2: ERROR: Dependency "libsystemd" not found, tried pkgconfig
Created attachment 737836 [details]
I suspect the problem is this:
Program dbus-daemon found: YES (/home/user/gentoo/usr/bin/dbus-daemon)
Program dbus-broker-launch found: YES (/usr/bin/dbus-broker-launch)
which triggers this dependency on systemd in bus/meson.build:
dbus_broker = find_program('dbus-broker-launch',
launcher_args += '-DDBUS_BROKER="@0@"'.format(dbus_broker.path())
needs_systemd = true
maybe find_program() should ignore programs outside of EPREFIX?
If Meson fails to find a dependency with pkgconfig, it tries with cmake. cmake is not a dependency of the package.
I think you're right.
Looks like we need to fix meson.build to not check for dbus-broker if default_bus == dbus-daemon.