Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29726 - strange behaviour with DEPEND="foo? ( || ( bar buz ) )"
Summary: strange behaviour with DEPEND="foo? ( || ( bar buz ) )"
Status: RESOLVED DUPLICATE of bug 29849
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-27 00:19 UTC by Mamoru KOMACHI (RETIRED)
Modified: 2011-10-30 22:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***