Hi Lukas, thanks for asking.

Please note the cardinality of that field, which is 0..*, which means you can 
have multiple instances of this in your data.
Each one of them has to have the value (as you write) “NONE, NOASSERTION or a 
SPDX License Expression”, but you can have more than one.

The examples show three different licenses.
I admit, the typesetting of the Tag-Value example (Example 1) look split into 
three different ones, but it’s only one set with three lines.

--
zvr
From: [email protected] <[email protected]> On Behalf Of 
lukas.panni via lists.spdx.org
Sent: Wednesday, 8 November, 2023 11:34
To: [email protected]
Subject: [spdx-tech] Clarification regarding spec 7.14 All licenses information 
from files field

Hi all,

when working with different tools I noticed a difference in handling the All 
licenses information from files 
field<https://spdx.github.io/spdx-spec/v2.3/package-information/#714-all-licenses-information-from-files-field>.
The specification explicitly states the following:
The relationship between licenses (i.e., conjunctive, disjunctive) is not 
specified in this field - it is simply a listing of all licenses found
However, it is specified that this field should either contain NONE, 
NOASSERTION or a SPDX License Expression according to Annex 
D.<https://spdx.github.io/spdx-spec/v2.3/SPDX-license-expressions/>
The syntax seemingly does not allow a simple 'listing of all licenses found', 
instead for multiple licenses it requires to use AND/OR to list multiple 
License-IDs.

So how to properly handle this field?
To pass syntax validation we would need to specify the relationships between 
licenses which would contradict the field's description.


Thanks in advance,
Lukas



Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva  
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5424): https://lists.spdx.org/g/Spdx-tech/message/5424
Mute This Topic: https://lists.spdx.org/mt/102461133/21656
Group Owner: [email protected]
Unsubscribe: https://lists.spdx.org/g/Spdx-tech/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to