sys-apps/dbus creates the link /var/lib/dbus/machine-id -> /etc/machine-id - which is appreciated. However when cross compiling, the link destination includes the the root path of the host. Example: emerge-armv7a-hardfloat-linux-gnueabi sys-apps/dbus creates a link to /usr/armv7a-hardfloat-linux-gnueabi/etc/machine-id It seems that the ${EROOT%/} prefix in pkg_postinst() is the culprit.
Right, I think we should probably do this instead: ln -sf "${EPREFIX}"/etc/machine-id "${EROOT%/}"/var/lib/dbus/machine-id
commit d70d0aa7803688a772677e2868a11b96904b56f7 Author: Mike Gilbert <floppym@gentoo.org> Date: Thu Oct 22 15:19:42 2015 -0400 sys-apps/dbus: Fix machine-id symlink when ROOT != / Bug: https://bugs.gentoo.org/560646 Package-Manager: portage-2.2.23_p7 sys-apps/dbus/dbus-1.8.16.ebuild | 2 +- sys-apps/dbus/dbus-1.8.18.ebuild | 2 +- sys-apps/dbus/dbus-1.8.20.ebuild | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)