mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 14:31:02 +02:00
sys-apps/dbus: Apply local changes from old versions
This commit is contained in:
parent
414db59b93
commit
f233bc994c
@ -62,6 +62,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");/' \
|
||||
@ -91,6 +93,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"
|
||||
@ -219,11 +222,11 @@ multilib_src_install_all() {
|
||||
pkg_postinst() {
|
||||
readme.gentoo_print_elog
|
||||
|
||||
# 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"
|
Loading…
x
Reference in New Issue
Block a user