Mailing List Archive

Re: [gentoo-commits] gentoo-x86 commit in media-video/mplayer: ChangeLog mplayer-1.0_rc1_p20070824.ebuild
On 14:24 Mon 24 Sep , Samuli Suominen (drac) wrote:
> drac 07/09/24 14:24:12
>
> Modified: ChangeLog mplayer-1.0_rc1_p20070824.ebuild
> Log:
> Trivial fix for video_cards mga installation wrt #192752.
> (Portage version: 2.1.3.9)
>
> Revision Changes Path
> 1.526 media-video/mplayer/ChangeLog

> - use video_cards_mga || myconf="${myconf} --disable-mga"
> - ( use X && use video_cards_mga ) || myconf="${myconf} --disable-xmga"
> + use video_cards_mga && myconf="${myconf} --enable-mga"
> + ( use X && use video_cards_mga ) && myconf="${myconf} --enable-xmga"

Subshells are gross, can you try a code block { } instead?

Thanks,
Donnie
--
gentoo-dev@gentoo.org mailing list
Re: Re: [gentoo-commits] gentoo-x86 commit in media-video/mplayer: ChangeLog mplayer-1.0_rc1_p20070824.ebuild [ In reply to ]
On Monday 24 September 2007 21:53:14 Donnie Berkholz wrote:
> > - use video_cards_mga || myconf="${myconf} --disable-mga"
> > - ( use X && use video_cards_mga ) || myconf="${myconf} --disable-xmga"
> > + use video_cards_mga && myconf="${myconf} --enable-mga"
> > + ( use X && use video_cards_mga ) && myconf="${myconf} --enable-xmga"
>
> Subshells are gross, can you try a code block { } instead?

A code block isn't even required since this grouping does the same as without
it. More importantly, though, why isn't this ebuild using use_enable? It
seems that:

use X && myconf="$myconf $(use_enable video_cards_mga xmga)"
myconf="$myconf $(use_enable video_cards_mga mga)"

would do the same?

In another example from the ebuild:

> use bl && myconf="${myconf} --enable-bl"

if USE=bl is disabled --disable-bl isn't passed to the configure script which
means the default is picked. There's a good chance that this kind of
behaviour results in automagic deps...

http://www.gentoo.org/proj/en/qa/automagic.xml

--
Bo Andresen