Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 12630

Summary: || fails if all of the sub expressions are false
Product: Portage Development Reporter: SpanKY <vapier>
Component: UnclassifiedAssignee: Nicholas Jones (RETIRED) <carpaski>
Status: RESOLVED FIXED    
Severity: normal CC: delta407, h3y, nbensa, set.mailinglist, surye80
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 13176    
Bug Blocks:    

Description SpanKY gentoo-dev 2002-12-23 13:37:15 UTC
i have a package that can use gtk, gtk2, or neither ... but it cant
do both at the same time ... so i do this:

|| (
     gtk? ( =x11-libs/gtk+-1* )
     gtk2? ( =x11-libs/gtk+-2* )
)

env USE="gtk gtk2" emerge pkg [works, shows gtk-1]
env USE="-gtk gtk2" emerge pkg [works, shows gtk-2]
env USE="gtk -gtk2" emerge pkg [works, shows gtk-1]
env USE="-gtk -gtk2" emerge pkg
!!! Problem in app-games/gnubg dependancies.
!!! list index out of range
Comment 1 SpanKY gentoo-dev 2002-12-23 13:38:13 UTC
*** Bug 12631 has been marked as a duplicate of this bug. ***
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2002-12-30 08:14:40 UTC
Should have a proper error message in 2.0.46-r5
Comment 3 SpanKY gentoo-dev 2002-12-31 17:09:05 UTC
the resolution i wanted was for this to be valid ...

another point is ethereal ... it allows gtk and gtk2 or none ... but it prefers
gtk over gtk2 ...

root@vapier root # env USE="-*" emerge ethereal -ep

These are the packages that I would merge, in order:

Calculating dependencies \
!!! Problem in net-analyzer/ethereal dependancies.
!!! list index out of range
root@vapier root # emerge -V
Portage 2.0.46-r5 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r3)
Comment 4 SpanKY gentoo-dev 2002-12-31 17:09:19 UTC
*** Bug 12993 has been marked as a duplicate of this bug. ***
Comment 5 SpanKY gentoo-dev 2003-01-02 00:13:20 UTC
*** Bug 13071 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2003-01-04 02:28:49 UTC
*** Bug 13210 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2003-01-10 10:25:47 UTC
*** Bug 13405 has been marked as a duplicate of this bug. ***
Comment 8 Nicholas Jones (RETIRED) gentoo-dev 2003-02-03 06:47:25 UTC
is valid now without matches '|| ( )'