Skip to contentSkip to conversation

LICENSE fields and packages

RFC Koen Kooi 4 participants 14 messages Nov 25, 2008 – Nov 26, 2008

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

Hi,

Jason Kridner pointed out that we don't actually put the license in the resulting packages, making it hard for finding the license if you only have a bunch or packages.

http://cgit.openembedded.net/cgit.cgi?url=openembedded/commit/&id=e35d1ffad1553f259b084578992f15d10f590f98

Now the RFC part:

Allow URLs in the LICENSE field for lesser know licenses and/or click-through licenses.

Related to that: a class that would take a text file and generate a preinsts that shows the textfile and prompts to accept it (or not) would be awesome as well.

Back to the point: what do you think of allowing URLs in the LICENSE field?

regards,

Koen

#1 lore raw

Hi,

Quoted 8 lines · Koen Kooi

Jason Kridner pointed out that we don't actually put the license in the resulting packages, making it hard for finding the license if you only have a bunch or packages.

http://cgit.openembedded.net/cgit.cgi?url=openembedded/commit/&id=e35d1ffad1553f259b084578992f15d10f590f98

Now the RFC part:

Quoted 8 lines

Allow URLs in the LICENSE field for lesser know licenses and/or click-through licenses.

Related to that: a class that would take a text file and generate a preinsts that shows the textfile and prompts to accept it (or not) would be awesome as well.

Back to the point: what do you think of allowing URLs in the LICENSE field?

I don't like the idea of urls in the field itself. I would however love to see a class file with a list of valid field entries and corresponding urls to the appropriate licence along with other information like distributability. In due course I'd like to see that being mandatory for new .bb files.

Cheers,

Richard

author
#2 lore raw
Quoted 18 lines · Richard Purdie

Hi,

Quoted 15 lines · Koen Kooi

Jason Kridner pointed out that we don't actually put the license in the resulting packages, making it hard for finding the license if you only have a bunch or packages.

http://cgit.openembedded.net/cgit.cgi?url=openembedded/commit/&id=e35d1ffad1553f259b084578992f15d10f590f98

Now the RFC part:

Allow URLs in the LICENSE field for lesser know licenses and/or click-through licenses.

Related to that: a class that would take a text file and generate a preinsts that shows the textfile and prompts to accept it (or not) would be awesome as well.

Quoted 7 lines
Quoted 1 line

Back to the point: what do you think of allowing URLs in the LICENSE field?

I don't like the idea of urls in the field itself. I would however love to see a class file with a list of valid field entries and corresponding urls to the appropriate licence along with other information like distributability. In due course I'd like to see that being mandatory for new .bb files.

We can start by having insane.bbclass disallowing "Unknown" as license, which seems to be the default license in OE.

regards,

Koen

#3 lore raw
In reply to Koen Kooi

Tuesday 25 of November 2008 20:26:24 Koen Kooi napisał(a):

Quoted 3 lines

Jason Kridner pointed out that we don't actually put the license in the resulting packages, making it hard for finding the license if you only have a bunch or packages.

Ugly we are.

Quoted 8 lines

Now the RFC part:

Allow URLs in the LICENSE field for lesser know licenses and/or click-through licenses.

Related to that: a class that would take a text file and generate a preinsts that shows the textfile and prompts to accept it (or not) would be awesome as well.

Only if there will be a place on storage where informations which licenses user accepted would be kept - I do not like to click "Yes, I accept this license" 6 times on each system update.

You also have to think about graphical package managers here.

Quoted 2 lines

Back to the point: what do you think of allowing URLs in the LICENSE field?

Show me code which will make use of it first? Why not add license to SRC_URI?

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://blog.haerwu.biz/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
author
#4 lore raw
Quoted 7 lines · Marcin Juszkiewicz

Tuesday 25 of November 2008 20:26:24 Koen Kooi napisał(a):

Quoted 2 lines

Back to the point: what do you think of allowing URLs in the LICENSE field?

Show me code which will make use of it first? Why not add license to SRC_URI?

At this point it's not about code, it's about being able to show a legal department that the license is referenced in the package.

How would a non-OE user know that http://openembedded.org/dl/ICA2.txt is the license? Shipping the license itself in the packages would be better, but that will need a lot of thought, since we can't have a 1000 packages shipping /usr/share/licenses/GPLv2, and *all* packages from a recipe need a license, even -doc, -dev -and -dbg.

The concrete problem I have is that I have a bunch of licenses that don't have a name (not even inside the company that wrote them), so my recipes have things like

LICENSE = "proprietary binary"
LICENSE = "evil binary"

So as short term solution I'd like to be able to point to a url for the 'licenses without a proper name' and for the long term have a proper, package format independant solution.

regards,

Koen

#5 lore raw

Tuesday 25 of November 2008 22:02:00 Koen Kooi napisał(a):

Quoted 7 lines

How would a non-OE user know that http://openembedded.org/dl/ICA2.txt
is the license? Shipping the license itself in the packages would be better, but that will need a lot of thought,

since we can't have a 1000 packages shipping /usr/share/licenses/GPLv2, and *all* packages from a recipe need a license, even -doc, -dev -and -dbg.

/usr/share/common-licenses/ is part of base-files-doc now and consists GPL, LGPL, BSD, Artistic and few other licenses. We can extend this list and create 'common-licenses' package which would be installed in each image.

Quoted 6 lines

The concrete problem I have is that I have a bunch of licenses that don't have a name (not even inside the company that wrote them), so my recipes have things like

LICENSE = "proprietary binary"
LICENSE = "evil binary"

So add license.txt into /usr/share/doc/${PN}/ with content of that package license. I have done few such packages during last year as some copyright holders gave permissions to distribute their stuff *ONLY* with attached license. This kind of stuff does not even need nothing new - it is just another file in SRC_URI.

Quoted 2 lines

So as short term solution I'd like to be able to point to a url for the 'licenses without a proper name'

Yeah.. especially when license contents is available only in restricted area for which simple person can not get access (for example Marvell extranet). If there are packages which have own license then such license should be inside of package.

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://blog.haerwu.biz/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
author
#6 lore raw
Quoted 19 lines · Marcin Juszkiewicz

Tuesday 25 of November 2008 22:02:00 Koen Kooi napisał(a):

Quoted 7 lines

How would a non-OE user know that http://openembedded.org/dl/ICA2.txt
is the license? Shipping the license itself in the packages would be better, but that will need a lot of thought,

since we can't have a 1000 packages shipping /usr/share/licenses/GPLv2, and *all* packages from a recipe need a license, even -doc, -dev -and -dbg.

/usr/share/common-licenses/ is part of base-files-doc now and consists GPL, LGPL, BSD, Artistic and few other licenses. We can extend this list and create 'common-licenses' package which would be installed in each image.

Quoted 4 lines

The concrete problem I have is that I have a bunch of licenses that don't have a name (not even inside the company that wrote them), so my recipes have things like

Quoted 8 lines
Quoted 2 lines

LICENSE = "proprietary binary"
LICENSE = "evil binary"

So add license.txt into /usr/share/doc/${PN}/ with content of that package license. I have done few such packages during last year as some copyright holders gave permissions to distribute their stuff *ONLY* with attached license. This kind of stuff does not even need nothing new - it is just another file in SRC_URI.

I like that idea very much, but the license file will have to be in every entry in PACKAGES, so ${PN} won't work. Do you have a suggestion on how to handle that?

Quoted 7 lines
Quoted 2 lines

So as short term solution I'd like to be able to point to a url for the 'licenses without a proper name'

Yeah.. especially when license contents is available only in restricted area for which simple person can not get access (for example Marvell extranet). If there are packages which have own license then such license should be inside of package.

So you agree that in those situations we can point to an URL, but in other cases either use the name or include it in the package?

regards,

Koen

#7 lore raw

Tuesday 25 of November 2008 22:57:27 Koen Kooi napisał(a):

Quoted 16 lines · Marcin Juszkiewicz
Quoted 6 lines

Tuesday 25 of November 2008 22:02:00 Koen Kooi napisał(a):

Quoted 4 lines

The concrete problem I have is that I have a bunch of licenses that don't have a name (not even inside the company that wrote them), so my recipes have things like

Quoted 8 lines
Quoted 2 lines

LICENSE = "proprietary binary"
LICENSE = "evil binary"

So add license.txt into /usr/share/doc/${PN}/ with content of that package license. I have done few such packages during last year as some copyright holders gave permissions to distribute their stuff *ONLY* with attached license. This kind of stuff does not even need nothing new - it is just another file in SRC_URI.

Quoted 3 lines

I like that idea very much, but the license file will have to be in every entry in PACKAGES, so ${PN} won't work. Do you have a suggestion on how to handle that?

${PN}-license package on which all entries from PACKAGES will RDEPEND?

Quoted 10 lines
Quoted 7 lines
Quoted 2 lines

So as short term solution I'd like to be able to point to a url for the 'licenses without a proper name'

Yeah.. especially when license contents is available only in restricted area for which simple person can not get access (for example Marvell extranet). If there are packages which have own license then such license should be inside of package.

So you agree that in those situations we can point to an URL, but in other cases either use the name or include it in the package?

No, I mean that if license is not one of popular ones covered by base-files-doc or common-licenses package it should be added into OE metadata. Ok, it can be a bit of overkill adding all those 'povray', 'openssl' etc licenses but when we will end then it will be clear how each recipe is licensed.

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://blog.haerwu.biz/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
author
#8 lore raw
Quoted 16 lines · Marcin Juszkiewicz

Tuesday 25 of November 2008 22:57:27 Koen Kooi napisał(a):

Quoted 14 lines · Marcin Juszkiewicz
Quoted 13 lines

Tuesday 25 of November 2008 22:02:00 Koen Kooi napisał(a):

Quoted 6 lines

The concrete problem I have is that I have a bunch of licenses that don't have a name (not even inside the company that wrote them), so my recipes have things like

LICENSE = "proprietary binary"
LICENSE = "evil binary"

So add license.txt into /usr/share/doc/${PN}/ with content of that package license. I have done few such packages during last year as some copyright holders gave permissions to distribute their stuff *ONLY* with attached license. This kind of stuff does not even need nothing new - it is just another file in SRC_URI.

Quoted 5 lines
Quoted 3 lines

I like that idea very much, but the license file will have to be in every entry in PACKAGES, so ${PN} won't work. Do you have a suggestion on how to handle that?

${PN}-license package on which all entries from PACKAGES will RDEPEND?

That doesn't put the license in the packages itself, so if I give you evil-binary_1.0_armv7a.ipk you still don't know what the license is.

What about a bbclass that iterates over every entry in PACKAGES and puts the license in ${datadir}/<pkgname>/LICENSE.txt?

regards,

Koen

Quoted 16 lines
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

So as short term solution I'd like to be able to point to a url for the 'licenses without a proper name'

Yeah.. especially when license contents is available only in restricted area for which simple person can not get access (for example Marvell extranet). If there are packages which have own license then such license should be inside of package.

So you agree that in those situations we can point to an URL, but in other cases either use the name or include it in the package?

No, I mean that if license is not one of popular ones covered by base-files-doc or common-licenses package it should be added into OE metadata. Ok, it can be a bit of overkill adding all those 'povray', 'openssl' etc licenses but when we will end then it will be clear how each recipe is licensed.

Regards,

author
#9 lore raw
In reply to Marcin Juszkiewicz
Quoted 16 lines · Marcin Juszkiewicz

Tuesday 25 of November 2008 22:57:27 Koen Kooi napisał(a):

Quoted 14 lines · Marcin Juszkiewicz
Quoted 13 lines

Tuesday 25 of November 2008 22:02:00 Koen Kooi napisał(a):

Quoted 6 lines

The concrete problem I have is that I have a bunch of licenses that don't have a name (not even inside the company that wrote them), so my recipes have things like

LICENSE = "proprietary binary"
LICENSE = "evil binary"

So add license.txt into /usr/share/doc/${PN}/ with content of that package license. I have done few such packages during last year as some copyright holders gave permissions to distribute their stuff *ONLY* with attached license. This kind of stuff does not even need nothing new - it is just another file in SRC_URI.

Quoted 5 lines
Quoted 3 lines

I like that idea very much, but the license file will have to be in every entry in PACKAGES, so ${PN} won't work. Do you have a suggestion on how to handle that?

${PN}-license package on which all entries from PACKAGES will RDEPEND?

Any objections to doing it this way till we have a proper bbclass?

regards,

Koen

Quoted 17 lines
Quoted 9 lines
Quoted 7 lines
Quoted 3 lines

So as short term solution I'd like to be able to point to a url for the 'licenses without a proper name'

Yeah.. especially when license contents is available only in restricted area for which simple person can not get access (for example Marvell extranet). If there are packages which have own license then such license should be inside of package.

So you agree that in those situations we can point to an URL, but in other cases either use the name or include it in the package?

No, I mean that if license is not one of popular ones covered by base-files-doc or common-licenses package it should be added into OE metadata. Ok, it can be a bit of overkill adding all those 'povray', 'openssl' etc licenses but when we will end then it will be clear how each recipe is licensed.

Regards,

#10 lore raw
Quoted 3 lines · Koen Kooi
Quoted 1 line

${PN}-license package on which all entries from PACKAGES will RDEPEND?

Any objections to doing it this way till we have a proper bbclass?

I think this is a fine idea. It should be a DISTRO opt-in choice, of course, but I can't see any reason not to provide the facility.

p.

author
#11 lore raw
Quoted 6 lines · Phil Blundell
Quoted 2 lines · Koen Kooi
Quoted 1 line

${PN}-license package on which all entries from PACKAGES will RDEPEND?

Any objections to doing it this way till we have a proper bbclass?

I think this is a fine idea. It should be a DISTRO opt-in choice, of course, but I can't see any reason not to provide the facility.

My idea was to make it opt-in on a per package basis since DISTROs can include base-files-doc for the most commit licenses (GPL, MIT, BSD, etc).

regards,

Koen

#12 lore raw
Quoted 10 lines · Koen Kooi
Quoted 6 lines · Phil Blundell
Quoted 2 lines · Koen Kooi
Quoted 1 line

${PN}-license package on which all entries from PACKAGES will RDEPEND?

Any objections to doing it this way till we have a proper bbclass?

I think this is a fine idea. It should be a DISTRO opt-in choice, of course, but I can't see any reason not to provide the facility.

My idea was to make it opt-in on a per package basis since DISTROs can include base-files-doc for the most commit licenses (GPL, MIT, BSD, etc).

Hm, right. I guess the selection should be both per-package and per-DISTRO.

How about allowing the DISTRO to specify a regexp for the licences that it "knows about"; any package for which ${LICENSE} doesn't match the regexp will get the ${PN}-license thing. The default regexp would be set to ".*" in bitbake.conf, in order to preserve the current behaviour of not emitting any ${PN}-license; DISTROs that want to make use of the new feature can set it to whatever they like.

p.

author
#13 lore raw
Quoted 13 lines · Phil Blundell
Quoted 8 lines · Koen Kooi
Quoted 5 lines · Phil Blundell
Quoted 2 lines · Koen Kooi
Quoted 1 line

${PN}-license package on which all entries from PACKAGES will RDEPEND?

Any objections to doing it this way till we have a proper bbclass?

I think this is a fine idea. It should be a DISTRO opt-in choice, of course, but I can't see any reason not to provide the facility.

My idea was to make it opt-in on a per package basis since DISTROs can include base-files-doc for the most commit licenses (GPL, MIT, BSD, etc).

Hm, right. I guess the selection should be both per-package and per-DISTRO.

Quoted 6 lines

How about allowing the DISTRO to specify a regexp for the licences that it "knows about"; any package for which ${LICENSE} doesn't match the regexp will get the ${PN}-license thing. The default regexp would be set to ".*" in bitbake.conf, in order to preserve the current behaviour of not emitting any ${PN}-license; DISTROs that want to make use of the new feature can set it to whatever they like.

Sounds great.

regards,

Koen