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

Bug 29726

Summary: strange behaviour with DEPEND="foo? ( || ( bar buz ) )"
Product: Portage Development Reporter: Mamoru KOMACHI (RETIRED) <usata>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jrmalaq, usata
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mamoru KOMACHI (RETIRED) gentoo-dev 2003-09-27 00:19:30 UTC
Hi all,

I was suggested to make use of app-text/aspell in addition to
app-text/ispell for app-editors/emacs-cvs (Bug #28527) and wrote the
following code:

DEPEND="spell? ( || ( app-text/ispell
                      app-text/aspell ) )"


'|| ( bar buz )' is considered to be a DEPEND atom so that 'foo?
|| ( bar buz )' will also be a valid DEPEND atom. However, it doesn't
work as I expected:

rico% epm -qG ispell
package ispell is not installed
rico% epm -qG aspell
app-text/aspell-0.50.3
rico% emerge -pv emacs-cvs

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

Calculating dependencies ...done!
[ebuild  N    ] app-editors/emacs-cvs-21.3.50  +X +nls +gtk +gtk2
-Xaw3d -gnome +spell

rico% emerge -upv emacs-cvs

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

Calculating dependencies ...done!
[ebuild  N    ] app-text/ispell-3.2.06-r5
[ebuild  N    ] app-editors/emacs-cvs-21.3.50  +X +nls +gtk +gtk2
-Xaw3d -gnome +spell


It will still insist on installing ispell even when aspell is
installed if you pass -u or -U flag to emerge. emacs-cvs is expected
to not install ispell regardless of -uU flags if aspell has been
already installed.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2003-09-28 23:43:07 UTC

*** This bug has been marked as a duplicate of 29849 ***