Bug 1217852 - The systemd/systemd-mini packages do not provide group(systemd-journal)
Summary: The systemd/systemd-mini packages do not provide group(systemd-journal)
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: systemd maintainers
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-06 13:05 UTC by Michael Schröder
Modified: 2023-12-13 09:30 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Schröder 2023-12-06 13:05:57 UTC
The upcoming rpm-4.19 automatically adds user/group requires for non-root owned files.

The systemd and systemd-mini package contain a /var/log/journal directory that has group "systemd-journal". They also contain a /usr/lib/sysusers.d/systemd-journal.conf file that contains the group definition.

We automatically create the user/group provides from the sysusers specification if the sysuser-tools is installed at build time. But this is not the case for systemd.

So, could you either add a "BuildRequires:  sysuser-tools" or add a "Provides: group(systemd-journal)" to the systemd and systemd-mini packages.
Comment 1 Franck Bui 2023-12-07 10:44:42 UTC
Given that "sysusers-tools" depends on "sysuser-shadow", which provides /usr/sbin/sysusers2shadow script only and this script is either duplicating the functionality of systemd-sysusers (only partially) or just calling systemd-sysusers if it's installed, using "BuildRequires:  sysuser-tools" would be strange.

Even "sysusers-tools" duplicates the functionality of `%sysusers_create_package()` macro provided by systemd-rpm-macros...

I don't know why this is needed. If it's a matter of dependencies, we could provide a standalone version of systemd-sysusers that wouldn't depend on systemd.

Anyway I'll probably go with "Provides: group(systemd-journal)".
Comment 2 Franck Bui 2023-12-12 09:25:57 UTC
Fix submitted via sr#1132619, closing.
Comment 3 Michael Schröder 2023-12-12 09:29:20 UTC
Thank you!
Comment 4 OBSbugzilla Bot 2023-12-12 10:05:03 UTC
This is an autogenerated message for OBS integration:
This bug (1217852) was mentioned in
https://build.opensuse.org/request/show/1132619 Factory / systemd