Skip to content

Commit

Permalink
dbus_1.10.2.bb: fix path to systemctl
Browse files Browse the repository at this point in the history
When compiling with systemd, pam and user sessions, the resulting
/usr/lib/systemd/user/dbus.socket ensures that the right
DBUS_SESSION_BUS_ADDRESS gets put into the environment when logging
into the system.

The default configure behavior is to look in the PATH, which picks up
the tool from the host sysroot. We need to override that so that the
final location on the target is used instead. This is only relevant at
the moment when enabling user sessions, but it makes sense to fix the
value in all cases.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
  • Loading branch information
pohly committed Jan 8, 2016
1 parent 9b83f34 commit 5b32e63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions meta/recipes-core/dbus/dbus_1.10.2.bb
Expand Up @@ -96,6 +96,10 @@ EXTRA_OECONF = "--disable-tests \

EXTRA_OECONF_append_class-native = " --disable-selinux"

# Automatic detection in the configure script picks up the path to
# the native tool, therefore we must override the automatism.
EXTRA_OECONF_append_class-target = " SYSTEMCTL=${base_bindir}/systemctl"

PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
PACKAGECONFIG_class-native = ""
Expand Down

0 comments on commit 5b32e63

Please sign in to comment.