Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify use of newlines for license expressions used in source files #45

Closed
goneall opened this issue Oct 12, 2017 · 4 comments · Fixed by #224
Closed

Clarify use of newlines for license expressions used in source files #45

goneall opened this issue Oct 12, 2017 · 4 comments · Fixed by #224
Assignees
Milestone

Comments

@goneall
Copy link
Member

goneall commented Oct 12, 2017

In Appendix V, it is not clear if multiple lines are to be used for compound set of licenses. Suggest changing the following statement:

The SPDX License Identifier syntax may consist of a single license (represented by a short identifier from the SPDX license list) or a compound set of licenses (represented by joining together multiple licenses using the license expression syntax).

to:

The SPDX License Identifier syntax may consist of a single license (represented by a short identifier from the SPDX license list) or a compound set of licenses (represented by joining together multiple licenses using the license expression syntax which is enclosed in parenthesis and may span multiple lines).

@wking
Copy link
Contributor

wking commented Oct 12, 2017 via email

@wking
Copy link
Contributor

wking commented Oct 12, 2017

The motivation for relaxing the paren requirement is to allow for wild-caught declarations like this:

SPDX-License-Identifier: GPL-2.0+ or X11

@pombredanne
Copy link
Member

For simplicity, we should state than an expression is always a single line IMHO

@swinslow
Copy link
Member

swinslow commented Apr 3, 2018

@pombredanne +1

One of the big gains from using short-form IDs in source code is making license info obtainable, to grep for "SPDX-License-Identifier:". That assumes that the license IDs are on the same line, and becomes messier or less effective if it can spread over multiple lines.

@kestewart kestewart assigned swinslow and unassigned goneall and kestewart Mar 17, 2020
swinslow added a commit to swinslow/spdx-spec that referenced this issue Mar 31, 2020
This changes appendices IV and V to prohibit multiple lines (e.g.,
line breaks) in a single license expression. This is applicable
for both tag-value SPDX documents as well as short-form license
identifier expressions in source code.

Because multiple lines are no longer permitted, this also makes
the outer set of parentheses optional, rather than mandatory, for
license expressions with more than one license identifier.

Fixes spdx#44
Fixes spdx#45
Fixes spdx#52

Signed-off-by: Steve Winslow <steve@swinslow.net>
kestewart pushed a commit that referenced this issue Apr 7, 2020
This changes appendices IV and V to prohibit multiple lines (e.g.,
line breaks) in a single license expression. This is applicable
for both tag-value SPDX documents as well as short-form license
identifier expressions in source code.

Because multiple lines are no longer permitted, this also makes
the outer set of parentheses optional, rather than mandatory, for
license expressions with more than one license identifier.

Fixes #44
Fixes #45
Fixes #52

Signed-off-by: Steve Winslow <steve@swinslow.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants