Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927769 - sys-fs/xfsprogs-6.4.0 should have a systemd USE flag
Summary: sys-fs/xfsprogs-6.4.0 should have a systemd USE flag
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-25 07:52 UTC by Michał Dec
Modified: 2024-03-25 20:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Dec 2024-03-25 07:52:38 UTC
When installing xfsprogs, I've noticed it installed these files:
--- /lib/
--- /lib/systemd/
--- /lib/systemd/system/
>>> /lib/systemd/system/xfs_scrub@.service
>>> /lib/systemd/system/xfs_scrub_all.service
>>> /lib/systemd/system/xfs_scrub_all.timer
>>> /lib/systemd/system/xfs_scrub_fail@.service

These are all systemd files. I've no need for them on an OpenRC system. Please provide a USE flag so that systems that don't need them don't receive them. As of now, there doesn't seem to be such a flag:

Lavos ~ # equery uses xfsprogs
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-fs/xfsprogs-6.4.0:
 U I
 - - icu     : Enable ICU (Internationalization Components for Unicode) support, using dev-libs/icu
 - - libedit : Use the libedit library (replacement for readline)
 + + nls     : Add Native Language Support (using gettext - GNU locale utilities)

Reproducible: Always

Steps to Reproduce:
1. Install sys-fs/xfsprogs
2. Forget to add -q to emerge, so you'll be able to accidentally see what files are being installed
Actual Results:  
systemd files are installed on an OpenRC system.

Expected Results:  
Such files shouldn't be installed on OpenRC systems.

systemd files belong to systemd profiles. They should only install there.
Comment 2 Michał Dec 2024-03-25 19:41:44 UTC
I see. However, xfsprogs is not a big package.
Comment 3 Mike Gilbert gentoo-dev 2024-03-25 20:48:27 UTC
We install systemd units unconditionally for all packages.