Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dependencies
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
esileruf
n00b
n00b


Joined: 03 Mar 2011
Posts: 24

PostPosted: Fri Mar 15, 2013 8:59 pm    Post subject: dependencies Reply with quote

i was read wiki, handbook, trying google it but cant find answers..

i dont understand how i can remove some dependencies from package
i was try with use flags but it doesnt help me
some packages have 50 or more deps, are they all nesessary for package working ?
can you explain me how to take control of which deps will be installed with package, which not be. or point me to some online documentation
Back to top
View user's profile Send private message
mahdi1234
Guru
Guru


Joined: 19 Feb 2005
Posts: 559
Location: Being There

PostPosted: Fri Mar 15, 2013 9:11 pm    Post subject: Reply with quote

It'd be a way easier if you give particular example of a package and what you did, each package is different and if you e.g. try to emerge something dependent on kde/gnome of course there'll be zillions of deps.

You can always have a look directly in the ebuild to see as well or use some of the tools to show dependency graphs.
_________________
http://gentoo.mahdi.cz <-- gentoo package search engine
Back to top
View user's profile Send private message
esileruf
n00b
n00b


Joined: 03 Mar 2011
Posts: 24

PostPosted: Fri Mar 15, 2013 9:17 pm    Post subject: Reply with quote

for example, last i was try is emerge pciutils
i remember there was cairo,bzip, and opengl as deps, and other 55 deps...
lets say i dont want cairo and opengl to be installed with pciutils

if i add:
sys-apps/pciutils -cairo -opengl
in package.use

"emerge pciutils" will try it to install as deps again

and just one thing,
if -pv package listed something like:
sys-apps/pciutils-1.2345.-04
do i add it in package.use as it is shown with version nubers or just like i shown up in first example, without nubers
im asking becouse i was add binutils in package.use with -development use flag
and after i try install grub again, binutils still have red development flag, it only becomes -blue when i add it in global use as -development
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Mar 15, 2013 9:33 pm    Post subject: Reply with quote

esileruf,

Your default USE flags are determined by the profile you set. What's your profile set to :?:

For normal use development will not be set.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
esileruf
n00b
n00b


Joined: 03 Mar 2011
Posts: 24

PostPosted: Fri Mar 15, 2013 9:34 pm    Post subject: Reply with quote

profile is amd64/desktop
binutils as grub dep is one of first package i was emerging with default global use, i wasnt changing anything
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Fri Mar 15, 2013 9:35 pm    Post subject: Reply with quote

Which dependency from what package are you wanting to remove?

Gentoo Handbook: USE Flags
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Fri Mar 15, 2013 9:46 pm    Post subject: Reply with quote

You can look up the dependencies conveniently with eix:
Code:
eix -vle pciutils
will show you that pciutils depends on zlib and rdepends on hwids. By accident there is a USE-flags for zlib which has the same name and which happens to remove the zlib dependency if unset. The hwids dependency is unconditional. Now if you repeat the above with hwids you will see that hwids depends on perl, udev, and pkgconfig. Especially perl and udev have a lot of useflags to control other dependencies etc. So you first have to find out which dependency of which package you want to avoid: It is certainly not a direct dependency of pciutils.
Even if you know it, there is no guarantee that there is a useflags which switches off the depency, and even if there is it might have a different name than the dependency. eix is your friend, and also portage's tree option :wink:
Back to top
View user's profile Send private message
esileruf
n00b
n00b


Joined: 03 Mar 2011
Posts: 24

PostPosted: Sat Mar 16, 2013 12:51 am    Post subject: Reply with quote

ok thank you for your replays, it was useful but its best way for me to learn in console with manpages and so...
that use flags is complicated for me now

i just want know one thing:
lets supose one package shown by -pv:

dev-libs/package-1.03.5

and i want disable flag, do i must add it in package. use like 1, or like 2:

1. "dev-libs/package-1.03.5 -flag"
2 "dev-libs/package -flag"

?
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Mar 16, 2013 1:58 am    Post subject: Reply with quote

esileruf,

dev-libs/package -flag would pertain to all versions.

If you use =dev-libs/package-1.03.5 -flag it will only pertain to that version.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
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