#16 dbus: align sysusers.d configuration to Fedora user/group allocation
Merged 2 years ago by amigadave. Opened 2 years ago by lucab.
rpms/ lucab/dbus ups/sysusers-static-id  into  rawhide

@@ -0,0 +1,2 @@ 

+ #Type  Name  ID  GECOS                 Home directory  Shell

+ u      dbus  81  "System Message Bus"  -               -

file modified
+8 -2
@@ -21,7 +21,7 @@ 

  Name:    dbus

  Epoch:   1

  Version: 1.14.0

- Release: 3%{?dist}

+ Release: 4%{?dist}

  Summary: D-BUS message bus

  

  # The effective license of the majority of the package, including the shared
@@ -38,6 +38,7 @@ 

  Source5: dbus-daemon.service

  Source6: dbus.user.socket

  Source7: dbus-daemon.user.service

+ Source8: dbus-systemd-sysusers.conf

  Patch0: 0001-tools-Use-Python3-for-GetAllMatchRules.patch

  

  BuildRequires: autoconf-archive
@@ -213,6 +214,7 @@ 

  rm -f %{buildroot}%{_unitdir}/multi-user.target.wants/dbus.service

  rm -f %{buildroot}%{_userunitdir}/dbus.{socket,service}

  rm -f %{buildroot}%{_userunitdir}/sockets.target.wants/dbus.socket

+ rm -f %{buildroot}%{_sysusersdir}/dbus.conf

  

  # Install downstream units

  install -Dp -m755 %{SOURCE3} %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/00-start-message-bus.sh
@@ -220,6 +222,7 @@ 

  install -Dp -m644 %{SOURCE5} %{buildroot}%{_unitdir}/dbus-daemon.service

  install -Dp -m644 %{SOURCE6} %{buildroot}%{_userunitdir}/dbus.socket

  install -Dp -m644 %{SOURCE7} %{buildroot}%{_userunitdir}/dbus-daemon.service

+ install -Dp -m644 %{SOURCE8} %{buildroot}%{_sysusersdir}/dbus.conf

  

  # Obsolete, but still widely used, for drop-in configuration snippets.

  install --directory %{buildroot}%{_sysconfdir}/dbus-1/session.d
@@ -299,7 +302,7 @@ 

  

  %pre daemon

  # Add the "dbus" user and group

- %sysusers_create_compat %{buildroot}/%{_sysusersdir}/%{name}.conf

+ %sysusers_create_compat %{SOURCE8}

  

  %post common

  %systemd_post dbus.socket
@@ -443,6 +446,9 @@ 

  

  

  %changelog

+ * Wed Aug 03 2022 Luca BRUNO <lucab@lucabruno.net> - 1:1.14.0-4

+ - Align sysusers.d configuration to Fedora user/group allocation (rhbz#2105177)

+ 

  * Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.14.0-3

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

  

Ping, I'd like to get this reviewed/merged soon-ish if possible.

Pull-Request has been merged by amigadave

2 years ago

@amigadave thanks for merging this. I'd be really happy if you could actually push it to rawhide, and possibly bring the fix to F37/F36 too.

Submitted update for Fedora 37:
https://bodhi.fedoraproject.org/updates/FEDORA-2022-23b7130499

I didn't feel comfortable touching f36 because it's slightly more intrusive.

Metadata