Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to prevent systemd files from being installed?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
nukleus
n00b
n00b


Joined: 19 May 2011
Posts: 6

PostPosted: Tue Apr 30, 2013 7:23 pm    Post subject: How to prevent systemd files from being installed? Reply with quote

Hi forum,

I noticed that the current testing openvpn-2.3.0 ebuild automatically installs files to
Code:
/usr/lib/systemd
even 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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54209
Location: 56N 3W

PostPosted: Tue Apr 30, 2013 7:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
nukleus
n00b
n00b


Joined: 19 May 2011
Posts: 6

PostPosted: Tue Apr 30, 2013 9:05 pm    Post subject: Reply with quote

Thanks NeddySeagoon, I've added it to the package.mask now. I guess I won't ever forget that anymore :)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21586

PostPosted: Tue Apr 30, 2013 10:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
nukleus
n00b
n00b


Joined: 19 May 2011
Posts: 6

PostPosted: Wed May 01, 2013 2:44 am    Post subject: Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Wed May 01, 2013 3:15 am    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54209
Location: 56N 3W

PostPosted: Wed May 01, 2013 6:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Wed May 15, 2013 4:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum