First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 34146
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Portage team <dev-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jason Stubbs (RETIRED) <jstubbs@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ebuilds.licenses.OR All packages which contain "|" in LICENSE= text/plain Jason Stubbs (RETIRED) 2003-11-22 17:55 0000 4.74 KB Details
ebuilds.licenses.AND Packages with multiple licenses with no "|" text/plain Jason Stubbs (RETIRED) 2003-11-22 17:56 0000 3.92 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 34146 depends on: Show dependency tree
Bug 34146 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-11-22 17:52 0000
Some ebuilds use "|" within LICENSE= to mean OR and some to mean AND. This begs
the question as to whether multiple licenses without a "|" always means AND as
well.

Examples
qt-3.2.2-r1.ebuild:LICENSE="QPL-1.0 | GPL-2" (QPL-1.0 OR GPL-2)
colorschemes-20031113.ebuild:LICENSE="vim | GPL-2 | public-domain" (vim AND
GPL-2 AND public-domain)

It seems there is presently no rule for which is correct, although I'd take the
former to be more intuitive (to a programmer!) and no "|" to mean AND.

------- Comment #1 From Jason Stubbs (RETIRED) 2003-11-22 17:55:10 0000 -------
Created an attachment (id=21110) [details]
All packages which contain "|" in LICENSE=

When these are checked, I suggest adding a tag to the LICENSE= line such as
#CONFIRMED as a means for later checking.

------- Comment #2 From Jason Stubbs (RETIRED) 2003-11-22 17:56:06 0000 -------
Created an attachment (id=21111) [details]
Packages with multiple licenses with no "|"

As above

------- Comment #3 From Sandy McArthur 2003-11-23 02:04:24 0000 -------
The "|" means OR. If the mailing list archives were up I'd link to the original
LICENSE= propsal from 4/25/02 with the subject of "Licenses, Ebuilds, and you".

Eg:

LICENSE="GPL-2 | (FOO BAR)"

Means that this package licensed under the GPL version 2 OR both FOO and BAR.
The user may accept GPL-2 and not either of FOO or BAR. Alternativly the user
can accept FOO and BAR but not the GPL-2.


In the case of the colorschemes example, it's clear that the "|" is being used
to mean OR.

------- Comment #4 From Jason Stubbs (RETIRED) 2003-11-23 02:19:18 0000 -------
Interesting that the maintainer of the colorschemes ebuild said that all three
licenses were applicable and all had to be agreed to as each license applied to
different parts of what was installed, no? I asked first on the -dev mailing
list and nobody that answered was completely sure or admitted that either they
didn't know or thought different. Also, the ebuild howto makes no mention of
how to specifiy multiple licenses.

Maybe the packages I've listed in the AND attachment are all correct, but I'd
be surprised if there aren't more incorrect ones other than colorschemes listed
in the OR attachment.

------- Comment #5 From Aron Griffis (RETIRED) 2003-11-23 15:22:07 0000 -------
This bug is valid.  It arises from a discussion on -dev where it was
discovered that different authors have been using different standards
for AND/OR in the LICENSE string.  Three things need to happen as part
of this bug:

1. Documentation needs to be fixed.  Swift is working on this.

2. Skel.ebuild needs to include some information regarding multiple
   licenses.  I can handle this part.

3. The ebuilds listed need to be checked to make sure they are using
   the syntax correctly.  For this part, I would suggest, that the bug
   be passed around to the team for each affected herd.  Each herd can
   then do appropriate checking, remove their ebuilds from the list,
   and assign to the next herd in the list.

Does this sound reasonable?  SandyMac, I realize (now) that the
standard for this was once discussed on -dev but it was never
transcribed into documentation.  Now that we're (hopefully)
implementing ACCEPT_LICENSES as an integral part of portage, it's
important to make sure that we have the multiple license situations
right.

Regarding colorschemes, Jason is correct and Sandy is wrong.  It
mistakenly uses "|" when the user needs to agree to all the licenses.

------- Comment #6 From Marius Mauch (RETIRED) 2003-11-24 20:43:09 0000 -------
btw, currently parantheses are NOT supported, repoman will complain on them. Do
we need them or is it sufficient to say AND binds stronger than OR ?

------- Comment #7 From Jason Stubbs (RETIRED) 2003-11-25 23:25:09 0000 -------
In bug 17367, I was told that OR is stronger than AND:

"foo bar | license" = "foo (bar | license)" != "(foo bar) | license"

Brackets may not be necessary at the moment but it's probably better to put them in just so that the meaning of the above is completely clear at a glance. New devs would be less likely to make mistakes, as well. How hard would modifications to repoman be? Most of the code for parsing these strings couple be taken from the DEPEND code...

Though, even if brackets are implemented, the question of which of AND and OR takes precedence still remains. Can I get some confirmation, please?

------- Comment #8 From Jason Stubbs (RETIRED) 2003-11-27 09:17:02 0000 -------
Slightly unrelated, but I found a another issue with this. Some packages are
combined from multiple sources which require different licenses depending on
USE flags. Most notably is x11-base/xfree. It has LICENSE="X11 MSttfEULA" yet
only needs the MSttfEULA if the "truetype" USE flag is set.

This will require either LICENSE= being similar to DEPEND= or constructs such
as:
LICENSE="X11"
if use truetype
        LICENSE="${LICENSE} truetype"
fi

(that's if the "use" function is actually available at that location)

------- Comment #9 From Brian Harring 2005-02-27 23:31:18 0000 -------
Jason... ^^^ ?

------- Comment #10 From Jason Stubbs (RETIRED) 2005-02-28 04:02:41 0000 -------
DEPEND-type syntax has been approved and repoman now enforces it.

First Last Prev Next    No search results available      Search page      Enter new bug