Gentoo Archives: gentoo-user

From: Daniel Pielmeier <daniel.pielmeier@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ebuild syntax question
Date: Thu, 26 Mar 2009 09:51:03
Message-Id: 6142e6140903260251y268944fcla9f5fd3fcadfc140@mail.gmail.com
In Reply to: [gentoo-user] ebuild syntax question by Helmut Jarausch
1 2009/3/26 Helmut Jarausch <jarausch@××××××××××××××××.de>:
2 > Hi,
3 >
4 > the  sci-libs/mathgl-1.8-r1.ebuild  contains
5 > DEPEND="${RDEPEND}
6 >        doc? ( app-text/texi2html virtual/texi2dvi )
7 >        python? ( dev-lang/swig[python] )
8 >        octave? ( dev-lang/swig[octave] )"
9 >
10 > What does dev-lang/swig[python] mean?
11 > Since  dev-lang/swig/swig-1.3.39 does not
12 > use the useflags 'python', etc, anymore,
13 > emerging sci-libs/mathgl tries to downgrade to
14 > swig-1.3.36 which gives conflict elsewhere.
15 >
16 > Do I really need to mask >swig-1.3.36 or
17 > is sci-libs/mathgl-1.8-r1.ebuild too old?
18 >
19 > Many thanks for a hint.
20 > (Should I generate a bug report?)
21 >
22
23 IMHO this is one drawdack of EAPI 2 use dependencies. The ebuilds
24 needs a package with a particular use flag but some versions of said
25 package do not use this flag and portage gets in trouble. So this is
26 clearly a bug.
27
28 I am not sure but a fix would be something like this:
29 python? || ( >=dev-lang/swig-1.3.39 <dev-lang/swig-1.3.39[python] )
30
31 --
32 Regards,
33 Daniel