Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
package 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
lk42pro
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2002
Posts: 114
Location: New Jersey, USA

PostPosted: Tue Apr 23, 2002 5:03 am    Post subject: do i get this right? Reply with quote

so if i just want nodependencies at all i use emerge --nodeps, if i don't want a group of dependencies like gnome i use export USE ="-gnome"..do i have this right?
Back to top
View user's profile Send private message
fghellar
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 856
Location: Porto Alegre, BR

PostPosted: Tue Apr 23, 2002 5:30 am    Post subject: Reply with quote

Almost. :)

USE="-gnome" will avoid getting gnome as a dependency for those packages which have optional support for gnome (e.g. vim). It will not help if the package actually requires gnome.

(And now let's get back to topic... :))
_________________
| www.gentoo.org | www.tldp.org | www.google.com |
Back to top
View user's profile Send private message
lk42pro
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2002
Posts: 114
Location: New Jersey, USA

PostPosted: Tue Apr 23, 2002 5:44 am    Post subject: Reply with quote

fghellar wrote:
Almost. :)

USE="-gnome" will avoid getting gnome as a dependency for those packages which have optional support for gnome (e.g. vim). It will not help if the package actually requires gnome.

(And now let's get back to topic... :))

how do i tell if a dependency is optional or required?
Back to top
View user's profile Send private message
fghellar
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 856
Location: Porto Alegre, BR

PostPosted: Tue Apr 23, 2002 6:15 am    Post subject: Reply with quote

I'm not sure if there is an easy way, but the hard way is to look in the ebuild file. E.g., for vim:
Code:
# grep -A 15 DEPEND=\" /usr/portage/app-editors/vim/vim-6.1-r4.ebuild
DEPEND="virtual/glibc
      >=sys-libs/ncurses-5.2-r2
      dev-util/cscope
      >=sys-apps/portage-1.8.18
      gpm?   ( >=sys-libs/gpm-1.19.3 )
      gnome?   ( >=gnome-base/gnome-libs-1.4.1.2-r1 )
      gtk?   ( >=x11-libs/gtk+-1.2.10-r4 )
      X?      ( x11-base/xfree )
      perl?   ( sys-devel/perl )
      python? ( dev-lang/python )
      ruby?   ( >=dev-lang/ruby-1.6.4 )"
#      tcltk?   ( dev-lang/tcl )"
# It appears that the tclinterp stuff in Vim is broken right now (at
# least on Linux... it works on BSD).  When you --enable-tclinterp
# flag, then the following command never returns:
#

Those with question marks ("gpm?", "gnome?", etc.) are optional.
_________________
| www.gentoo.org | www.tldp.org | www.google.com |
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