View previous topic :: View next topic |
Author |
Message |
esileruf n00b
Joined: 03 Mar 2011 Posts: 24
|
Posted: Fri Mar 15, 2013 8:59 pm Post subject: dependencies |
|
|
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 |
|
|
mahdi1234 Guru
Joined: 19 Feb 2005 Posts: 559 Location: Being There
|
Posted: Fri Mar 15, 2013 9:11 pm Post subject: |
|
|
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 |
|
|
esileruf n00b
Joined: 03 Mar 2011 Posts: 24
|
Posted: Fri Mar 15, 2013 9:17 pm Post subject: |
|
|
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 |
|
|
BillWho Veteran
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Fri Mar 15, 2013 9:33 pm Post subject: |
|
|
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
Since installing gentoo, my life has become one long emerge |
|
Back to top |
|
|
esileruf n00b
Joined: 03 Mar 2011 Posts: 24
|
Posted: Fri Mar 15, 2013 9:34 pm Post subject: |
|
|
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 |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Fri Mar 15, 2013 9:46 pm Post subject: |
|
|
You can look up the dependencies conveniently with eix: 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 |
|
Back to top |
|
|
esileruf n00b
Joined: 03 Mar 2011 Posts: 24
|
Posted: Sat Mar 16, 2013 12:51 am Post subject: |
|
|
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 |
|
|
BillWho Veteran
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Sat Mar 16, 2013 1:58 am Post subject: |
|
|
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
Since installing gentoo, my life has become one long emerge |
|
Back to top |
|
|
|