Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 927769

Summary: sys-fs/xfsprogs-6.4.0 should have a systemd USE flag
Product: Gentoo Linux Reporter: Michał Dec <moog621>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal CC: moog621
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.