dbus: apply our local changes from old versions to 1.8.10

This commit is contained in:
Michael Marineau 2014-11-30 18:28:02 -08:00
parent f95d6432b1
commit 3e70e293f8

View File

@ -57,6 +57,8 @@ pkg_setup() {
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.6.x-add-explicit-etc-path.patch
# Tests were restricted because of this
sed -i \
-e 's/.*bus_dispatch_test.*/printf ("Disabled due to excess noise\\n");/' \
@ -86,6 +88,7 @@ multilib_src_configure() {
# libaudit is *only* used in DBus wrt SELinux support, so disable it, if
# not on an SELinux profile.
myconf=(
--sysconfdir=/usr/share
--localstatedir="${EPREFIX}/var"
--docdir="${EPREFIX}/usr/share/doc/${PF}"
--htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
@ -226,11 +229,11 @@ pkg_postinst() {
elog "the new version of the daemon."
fi
# Ensure unique id is generated and put it in /etc wrt #370451 but symlink
# for DBUS_MACHINE_UUID_FILE (see tools/dbus-launch.c) and reverse
# dependencies with hardcoded paths (although the known ones got fixed already)
dbus-uuidgen --ensure="${EROOT%/}"/etc/machine-id
ln -sf "${EROOT%/}"/etc/machine-id "${EROOT%/}"/var/lib/dbus/machine-id
# Put a "known" machine id into /etc/machine-id so that when we boot,
# if it matches, then we can override it with a unique one.
# TODO(marineam): Remove this once we double check it is safe to do so.
echo "42000000000000000000000000000042" > "${EROOT}"/etc/machine-id
ln -sf ../../../etc/machine-id "${EROOT}"/var/lib/dbus/machine-id
if [[ ${CHOST} == *-darwin* ]]; then
local plist="org.freedesktop.dbus-session.plist"