Skip to contentSkip to conversation

why does OE's systemd have a hard dependency on qemu-native?

DISCUSSION Robert P. J. Day 2 participants 2 messages Dec 13, 2016

lore
Share & tools
lore
#0 lore raw

currently messing with systemd-coredump and, in systemd_232.bb, i
see:

DEPENDS = "kmod intltool-native gperf-native acl readline libcap
libcgroup qemu-native util-linux"

             ^^^^^^^^^^^ ?

now, i *am* building for qemuppc for testing, but the above is an unconditional dependency on qemu-native. what does systemd need qemu-native for?

right below, we read:

    inherit ... qemu ...

so, again, qemu. yet a bit further down:

SRC_URI_append_qemuall = "
file://0001-core-device.c-Change-the-default-device-timeout-to-2.patch"

so now SRC_URI is modified *conditionally* based on qemuall.

can someone clarify what relationship systemd has with qemu?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw
Quoted 8 lines · Robert P. J. Day

DEPENDS = "kmod intltool-native gperf-native acl readline libcap
libcgroup qemu-native util-linux"

             ^^^^^^^^^^^ ?

now, i *am* building for qemuppc for testing, but the above is an unconditional dependency on qemu-native. what does systemd need qemu-native for?

Quoted 6 lines

right below, we read:

    inherit ... qemu ...

so, again, qemu. yet a bit further down:

Using the qemu class means you generally need to depend on qemu-native.

SRC_URI_append_qemuall = "

Quoted 4 lines

file://0001-core-device.c-Change-the-default-device-timeout-to-2.patch"

so now SRC_URI is modified *conditionally* based on qemuall.

This is a MACHINE-specific tweak for qemu machines, and unrelated to the qemu class.

Carry on searching for qemu:

pkg_postinst_udev-hwdb () {
if test -n "$D"; then
${@qemu_run_binary(d, '$D', '${base_bindir}/udevadm')} hwdb

--update \
                        --root $D
                chown root:root $D${sysconfdir}/udev/hwdb.bin
        else
                udevadm hwdb --update
        fi
}

There is a rootfs-time postinst that uses qemu-user to run hwdb.

Ross