mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-01 18:42:22 +02:00
sys-apps/dbus: Apply Flatcar modifications
This commit is contained in:
parent
971bfb47ae
commit
ab6119aa8b
13
sdk_container/src/third_party/coreos-overlay/sys-apps/dbus/README.md
vendored
Normal file
13
sdk_container/src/third_party/coreos-overlay/sys-apps/dbus/README.md
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
Modifications done in this fork:
|
||||
|
||||
- Disable user sessions. We don't need them in Flatcar. At some point
|
||||
Gentoo dropped the dedicated USE flag for it and enables user
|
||||
sessions with systemd USE flag.
|
||||
|
||||
- Dropped the dependency on sec-policy/selinux-dbus which is brought
|
||||
by the selinux USE flag. We enable the flag because we still want
|
||||
DBus to be selinux-aware, but for some reason we didn't want to pull
|
||||
in the `sec-policy/selinux-dbus` package. We may want to revisit
|
||||
this with our SELinux work.
|
||||
|
||||
- Drop /etc/machine-id generation. We do it elsewhere (bootengine?).
|
@ -45,9 +45,14 @@ DEPEND="${COMMON_DEPEND}
|
||||
>=dev-libs/glib-2.40:2
|
||||
)
|
||||
"
|
||||
# Flatcar: Drop the following dependency to avoid pulling in
|
||||
# unnecessary ebuilds into rootfs:
|
||||
#
|
||||
# selinux? ( sec-policy/selinux-dbus )
|
||||
#
|
||||
# We may want to revisit that, actually.
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
acct-user/messagebus
|
||||
selinux? ( sec-policy/selinux-dbus )
|
||||
systemd? ( virtual/tmpfiles )
|
||||
"
|
||||
|
||||
@ -133,7 +138,9 @@ multilib_src_configure() {
|
||||
--disable-kqueue
|
||||
$(use_enable elogind)
|
||||
$(use_enable systemd)
|
||||
$(use_enable systemd user-session)
|
||||
# Flatcar: disable user sessions
|
||||
# $(use_enable systemd user-session)
|
||||
--disable-user-session
|
||||
--disable-embedded-tests
|
||||
--disable-modular-tests
|
||||
$(use_enable debug stats)
|
||||
@ -255,16 +262,17 @@ multilib_src_install_all() {
|
||||
pkg_postinst() {
|
||||
readme.gentoo_print_elog
|
||||
|
||||
if use systemd; then
|
||||
tmpfiles_process dbus.conf
|
||||
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)
|
||||
# TODO: should be safe to remove at least the ln because of the above tmpfiles_process?
|
||||
dbus-uuidgen --ensure="${EROOT}"/etc/machine-id
|
||||
ln -sf "${EPREFIX}"/etc/machine-id "${EROOT}"/var/lib/dbus/machine-id
|
||||
# Flatcar: Drop machine-id generation.
|
||||
# if use systemd; then
|
||||
# tmpfiles_process dbus.conf
|
||||
# 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)
|
||||
# # TODO: should be safe to remove at least the ln because of the above tmpfiles_process?
|
||||
# dbus-uuidgen --ensure="${EROOT}"/etc/machine-id
|
||||
# ln -sf "${EPREFIX}"/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