Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: Dev

License groups in ebuilds

 

 

Gentoo dev RSS feed   Index | Next | Previous | View Threaded


ulm at gentoo

May 10, 2012, 2:39 AM

Post #1 of 10 (307 views)
Permalink
License groups in ebuilds

Long standing problem: Some of our most used license tags like "GPL-2"
are ambiguous, denoting either GPL-2 only or GPL-2 or later.

One solution would be license groups in ebuilds, which could be added
to EAPI 5 [1]. Disadvantage would be that they cannot be used in
previous EAPIs.

Alternatively, we could create separate license files like GPL-2+, as
suggested in [2], especially since the "plus" versions now have their
own entry in the SPDX license list [3]. Are there any other licenses
besides *GPL and FDL that would require such a file?

What do you think?

Ulrich

[1] <https://bugs.gentoo.org/show_bug.cgi?id=287192>
[2] <http://archives.gentoo.org/gentoo-dev/msg_6c004fd342c57062d71455109fa52ac0.xml>
[3] <http://www.spdx.org/licenses/>


kentfredric at gmail

May 10, 2012, 2:57 AM

Post #2 of 10 (288 views)
Permalink
Re: License groups in ebuilds [In reply to]

On 10 May 2012 21:39, Ulrich Mueller <ulm [at] gentoo> wrote:
>. Are there any other licenses
> besides *GPL and FDL that would require such a file?

I'd welcome groups so we can have a "Perl_5" group. The lions share of
modules published on CPAN are licensed "Under the same license as Perl
5 Itself", which implies "|| ( GPL-2 Artistic-1 )"

And that boilerplate stanza is thus in many of the Perl Modules ebuilds.


--
Kent

perl -e  "print substr( \"edrgmaM  SPA NOcomil.ic\\@tfrken\", \$_ * 3,
3 ) for ( 9,8,0,7,1,6,5,4,3,2 );"

http://kent-fredric.fox.geek.nz


tove at gentoo

May 12, 2012, 12:05 PM

Post #3 of 10 (282 views)
Permalink
Re: License groups in ebuilds [In reply to]

* Kent Fredric <kentfredric [at] gmail>:
> I'd welcome groups so we can have a "Perl_5" group. The lions share of
> modules published on CPAN are licensed "Under the same license as Perl
> 5 Itself", which implies "|| ( GPL-2 Artistic-1 )"

Perl is licensed as

| This program is free software; you can redistribute it and/or modify
| it under the terms of either:
|
| a) the GNU General Public License as published by the Free
| Software Foundation; either version 1, or (at your option) any
| later version, or
|
| b) the "Artistic License" which comes with this Kit.

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).

I've further added comments to the LICENSE in the ebuilds if it does not
use "the same terms as the Perl 5 programming language system itself"
but "or-later" group of licenses (like GPL-2+ or Artistic+...).
--
Regards


ciaran.mccreesh at googlemail

May 12, 2012, 12:12 PM

Post #4 of 10 (281 views)
Permalink
Re: Re: License groups in ebuilds [In reply to]

On Sat, 12 May 2012 21:05:06 +0200
Torsten Veller <tove [at] gentoo> 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...

--
Ciaran McCreesh
Attachments: signature.asc (0.19 KB)


tove at gentoo

May 12, 2012, 12:49 PM

Post #5 of 10 (282 views)
Permalink
Re: License groups in ebuilds [In reply to]

* Ciaran McCreesh <ciaran.mccreesh [at] googlemail>:
> On Sat, 12 May 2012 21:05:06 +0200
> Torsten Veller <tove [at] gentoo> 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...

What doesn't work?
--
Regards


ulm at gentoo

May 12, 2012, 12:49 PM

Post #6 of 10 (282 views)
Permalink
Re: Re: License groups in ebuilds [In reply to]

>>>>> On Sat, 12 May 2012, Ciaran McCreesh wrote:

> On Sat, 12 May 2012 21:05:06 +0200
> Torsten Veller <tove [at] gentoo> 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


sping at gentoo

Jun 16, 2012, 10:49 AM

Post #7 of 10 (235 views)
Permalink
Re: License groups in ebuilds [In reply to]

On 05/10/2012 11:39 AM, Ulrich Mueller wrote:
> Are there any other licenses besides *GPL and FDL that would require such a file?
>
> What do you think?

The "GPL-2+" file workaround doesn't sound to bad.

Call be picky, but we could actually use a "GPL-3+" file, too. With
that we could distinguish "exactly GPL 3" and "GPL 3 or later" properly
on our end, no matter if GPL 4 ever comes or not.

Best,



Sebastian


ulm at gentoo

Jun 16, 2012, 11:16 AM

Post #8 of 10 (236 views)
Permalink
Re: License groups in ebuilds [In reply to]

>>>>> On Sat, 16 Jun 2012, Sebastian Pipping wrote:

> On 05/10/2012 11:39 AM, Ulrich Mueller wrote:
>> Are there any other licenses besides *GPL and FDL that would
>> require such a file?
>>
>> What do you think?

> The "GPL-2+" file workaround doesn't sound to bad.

> Call be picky, but we could actually use a "GPL-3+" file, too.
> With that we could distinguish "exactly GPL 3" and "GPL 3 or later"
> properly on our end, no matter if GPL 4 ever comes or not.

Yes, that was the idea. Otherwise we would have to start over again
whenever a GPL-4 appears.

AFAICS, we would need 9 additional license files, namely GPL-{1,2,3}+,
LGPL-{2,2.1,3}+, and FDL-{1.1,1.2,1.3}+.

Ulrich


ulm at gentoo

Sep 14, 2012, 4:35 PM

Post #9 of 10 (166 views)
Permalink
Re: License groups in ebuilds [In reply to]

>>>>> On Sat, 16 Jun 2012, Ulrich Mueller wrote:

>>>>> On Sat, 16 Jun 2012, Sebastian Pipping wrote:
>> The "GPL-2+" file workaround doesn't sound to bad.

>> Call be picky, but we could actually use a "GPL-3+" file, too.
>> With that we could distinguish "exactly GPL 3" and "GPL 3 or later"
>> properly on our end, no matter if GPL 4 ever comes or not.

> Yes, that was the idea. Otherwise we would have to start over again
> whenever a GPL-4 appears.

> AFAICS, we would need 9 additional license files, namely GPL-{1,2,3}+,
> LGPL-{2,2.1,3}+, and FDL-{1.1,1.2,1.3}+.

Coming back to this, because the council has now rejected license
groups for EAPI 5. I would then create above-mentioned files in the
licenses dir.

Is it sufficient to include a reference to GPL-2 etc. like this:

╓────[ GPL-2+ ]
║ GNU General Public License version 2, or any later version.
║ See GPL-2 or GPL-3 for the full text of these licenses.
╙────

Or should the full license text of GPL-2 be repeated in the GPL-2+
file?

Ulrich


ulm at gentoo

Sep 17, 2012, 11:10 PM

Post #10 of 10 (162 views)
Permalink
Re: License groups in ebuilds [In reply to]

>>>>> On Sat, 15 Sep 2012, Ulrich Mueller wrote:

>> AFAICS, we would need 9 additional license files, namely GPL-{1,2,3}+,
>> LGPL-{2,2.1,3}+, and FDL-{1.1,1.2,1.3}+.

> Coming back to this, because the council has now rejected license
> groups for EAPI 5. I would then create above-mentioned files in the
> licenses dir.

Committed and added to appropriate license groups.

Concerning transition: This issue isn't the most pressing of our
problems, so IMHO transition should be done gradually, whenever an
ebuild is touched for another reason. We can evaluate things again in
a year from now.

If you check the license of a package and find that e.g. GPL-2
(without the plus sign) is correct, then it would be useful to add a
comment "GPL-2 only" to the ebuild. This is to avoid checking packages
twice.

Ulrich

Gentoo dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.