Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev USE flag w/o systemd?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
nordic bro
Guru
Guru


Joined: 25 Oct 2003
Posts: 582

PostPosted: Wed Feb 01, 2017 6:53 pm    Post subject: udev USE flag w/o systemd? Reply with quote

I'm finishing up a new/clean build, the first since systemd went mainstream and after poking around in various places like gentoo wikis, searches, etc., can't figure out if I need udev USE flag?

I do not want/don't have systemd so have "-systemd" in make.conf, I removed "udev" too and appear to have eudev installed. but when looking at libusb it's showing "-udev" prior to emerge and aren't sure that's what I want?

Code:
Calculating dependencies... done!
[ebuild  N     ] dev-libs/libusb-1.0.19-r1:1::gentoo  USE="-debug -doc -examples -static-libs {-test} -udev" ABI_X86="(64) -32 (-x32)" 510 KiB

will libusb still work properly if I emerge it like that? or I should add "udev" for it in package.use or maybe even add "udev" back into make.conf? I did the latter and 'emerge -pv -uND @world' does not want to pull in all the systemd stuff so am a bit confused.

the eudev wiki is helpful but this specific point isn't referenced. I checked the udev/systemd ones too but still aren't sure if "udev" flag is now meant for only systemd setups.
Back to top
View user's profile Send private message
cboldt
l33t
l33t


Joined: 24 Aug 2005
Posts: 833

PostPosted: Wed Feb 01, 2017 7:26 pm    Post subject: Reply with quote

I have a setup similar to yours, no systemd, and build with eudev. The "udev" USE flag is set on libusb. This did not pull in any systemd stuff, or insist on "udev" over "eudev." Not to say libusb had to be built this way, I don't know the answer to that.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Feb 01, 2017 8:40 pm    Post subject: Reply with quote

nordic bro,

eudev and udev provide the same functionality, and even libraries with the same names.

The udev USE flag applies equally to all udev implementations.

virtual/udev contains
Code:
RDEPEND="
        !systemd? ( || ( >=sys-fs/eudev-2.1.1 >=sys-fs/udev-217 ) )
        systemd? ( >=sys-apps/systemd-217:0 )"


Gentoo packages needing udev depend on virtual/udev.
virtual/udev makes sure one of them is installed, with eudev being selected over udev on non systemd installs.
All the other knobs and switches are unchanged.
_________________
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
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2613

PostPosted: Thu Feb 02, 2017 8:54 am    Post subject: Re: udev USE flag w/o systemd? Reply with quote

nordic bro wrote:
the eudev wiki is helpful but this specific point isn't referenced. I checked the udev/systemd ones too but still aren't sure if "udev" flag is now meant for only systemd setups.

You might want to check which of your packages are installed with or without the udev USE flag
Code:
eix -c --installed-with-use udev
eix -c --installed-without-use udev

and make up your mind about
euse -i udev wrote:
global use flags (searching: udev)
************************************************************
[+ D ] udev - Enable virtual/udev integration (device discovery, power and storage device support, etc)

Do you think you need (or want) "device discovery" etc. for libusb (or for the other packages)?

Regarding your general question ( ... if I need udev USE flag? ), you could check yourself with that USE flag enabled and disabled running emerge -ep @world and see the difference.
And portageq envvar USE | grep udev will tell you you if that USE flag is enabled or disabled. There should be no need for putting -systemd if it is not enabled by your profile or by any of your packages.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Thu Feb 02, 2017 11:57 am    Post subject: Reply with quote

Keep in mind you have "systemd" or "udev", but you have other option (yeah what a crazy world!).
that's why you have a systemd and an udev useflag.
systemd->systemd useflag
udev/eudev -> udev useflag
no udev/eudev/systemd -> then just no udev and systemd useflag set.

if it was as simple as "having systemd or (e)udev", then the package would had only need to check if systemd was set or not.
if systemd useflag set -> add systemd handling
if -systemd set -> add udev/eudev handling
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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