Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: License groups in ebuilds
Date: Sat, 12 May 2012 19:50:45
In Reply to: Re: [gentoo-dev] Re: License groups in ebuilds by Ciaran McCreesh
>>>>> On Sat, 12 May 2012, Ciaran McCreesh wrote:
> On Sat, 12 May 2012 21:05:06 +0200 > Torsten Veller <tove@g.o> wrote: >> The perl-module.eclass offers a default LICENSE as >> LICENSE="${LICENSE:-|| ( Artistic GPL-1 GPL-2 GPL-3 )}" >> >> So if a distribution uses "the same license as Perl 5 itself" you can >> just drop the LICENSE from the ebuild (as long no former eclass sets >> its own LICENSE).
> That's definitely not going to work if the 'inherit' comes at the top > of the ebuild, and is severely dodgy if it doesn't...
I have to agree with Ciaran. The eclass should simply assign LICENSE unconditionally. Ebuilds can override it if necessary. And if an ebuild inherits two eclasses that both define LICENSE, then it's probably better if the ebuild contains its own explicit definition. Ulrich