View previous topic :: View next topic |
Author |
Message |
nukleus n00b
Joined: 19 May 2011 Posts: 6
|
Posted: Tue Apr 30, 2013 7:23 pm Post subject: How to prevent systemd files from being installed? |
|
|
Hi forum,
I noticed that the current testing openvpn-2.3.0 ebuild automatically installs files toeven though I don't use systemd.
As I don't intend to switch to systemd and because I hate it if there are files around that are not used in paths like /usr/lib, I'd like to prevent portage from installing them. I'm already using USE=-systemd and thought that this was enough to keep my system free of systemd related stuff.
Interestingly, not all of my systems have these files, as the openvpn-2.3.0 ebuild was modified after its release, so only systems that emerged the file after that date have those files
Greetings, nukleus |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54232 Location: 56N 3W
|
Posted: Tue Apr 30, 2013 7:39 pm Post subject: |
|
|
nukleus,
USE=-systemd only prevents optional support for systemd being installed.
To prevent systemd itself from being install you need
Code: | # an over my dead body hard mask
# dump GNOME and anything else that has this as a hard dependency at any version
sys-apps/systemd | in /etc/portage/package.mask/<somefile>
This will cause emerge to flag an error if systemd is required by anything. However, this will not stop services that support systemd from installing their non optional systemd support files. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
nukleus n00b
Joined: 19 May 2011 Posts: 6
|
Posted: Tue Apr 30, 2013 9:05 pm Post subject: |
|
|
Thanks NeddySeagoon, I've added it to the package.mask now. I guess I won't ever forget that anymore |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21619
|
Posted: Tue Apr 30, 2013 10:19 pm Post subject: |
|
|
I read the OP to be asking for a way not to install the systemd unit files. I set an INSTALL_MASK for this purpose and have noticed no adverse consequences. |
|
Back to top |
|
|
nukleus n00b
Joined: 19 May 2011 Posts: 6
|
Posted: Wed May 01, 2013 2:44 am Post subject: |
|
|
Yea, that's the original intent. I haven't come across INSTALL_MASK, I will try that as soon as I get back to work. Thank you Hu |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Wed May 01, 2013 3:15 am Post subject: |
|
|
nukleus ...
this is what I have as INSTALL_MASK ...
Code: | INSTALL_MASK="${INSTALL_MASK}
/usr/share/bash-completion
/usr/share/gtk-doc
/usr/lib/systemd
/etc/xdg" |
The bash-completion I've excluded as I don't use bash, gtk-doc is 80mb of gumpf (when I removed it) I'm never likely to want to read, systemd ... cough, cough ... and xdg similarly.
best ... khay |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54232 Location: 56N 3W
|
Posted: Wed May 01, 2013 6:30 pm Post subject: |
|
|
khayyam,
Thank you. I didn't think to add /usr/lib/systemd to INSTALL_MASK. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Wed May 15, 2013 4:52 pm Post subject: |
|
|
NeddySeagoon wrote: | Thank you. I didn't think to add /usr/lib/systemd to INSTALL_MASK. |
NeddySeagoon .... you're welcome, though you may want to hold off on doing this as "it's quite likely that" systemd unit files will be needed. To quote Michal Górny (source)
Quote: | It is quite likely that OpenRC will start supporting unit files soon. Then in many cases we will be able to strip down this to just one init format which would satisfy both init systems. Of course, people who are thoughtlessly removing all systemd files for the sake of 4 KiB will suffer then. |
Elsewhere INSTALL_MASK is being suggested as the route for those who don't need, or expect to ever need, unit files, so at this point its an open question.
best ... khay |
|
Back to top |
|
|
|