Issue created by Sebastian Huber: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5833



## Summary

**Problem:** From 2027-12-11 the EU Cyber Resilience Act (CRA) obliges every
manufacturer who ships a product with RTEMS to provide a software bill of
materials (SBOM). BSI TR-03183-2, the most concrete SBOM specification for the
CRA, requires an SPDX licence expression for each component. The RTEMS
libraries are statically linked components of every application. Today a user
cannot derive their licences from the tree: 3721 of 14282 files on `main` carry
no machine-readable licence, and 367 source files carry no licence statement at
all. The ISVV findings of #4805 and #4814 point at the same gap.

**Proposal:** Make `main` compliant with the [REUSE specification
3.3](https://reuse.software/spec-3.3/) and check it with `reuse lint` in the CI.
REUSE records the licence that a file has today. It does not relicense
anything. curl, KDE and Eclipse Oniro use it. embedded brains offers to do the
work in a series of merge requests.

## Decisions requested

1. Adopt REUSE as the rule for the licence and copyright information of
   `rtems.git`.
2. Accept one mechanical commit that changes `COPYRIGHT (c)` to
   `Copyright (C)` in about 2945 files. The REUSE tool does not recognise the
   upper case form.
3. Replace `LICENSE.md` with `LICENSES/`, one file per licence.
4. Identify the RTEMS exception as `GPL-2.0-or-later WITH
   LicenseRef-scancode-rtems-exception-2.0`, the identifier of the ScanCode
   LicenseDB. `GPL-2.0+-with-RTEMS-exception` is not a valid SPDX expression,
   and SPDX does not list an RTEMS exception. BSI TR-03183-2 requires the
   ScanCode identifier for such a licence.
5. Run `reuse lint` in the GitLab CI, so that a new file without a licence
   fails.

<details>
<summary>Current state of main</summary>

`reuse lint` of REUSE tool 6.3.0 on `main` 6208755bc6a:

| Count | Files |
| --- | --- |
| all files | 14282 |
| with licence information | 10561 |
| with copyright information | 9328 |
| licence texts missing in `LICENSES/` | 14 |

The 3721 files without licence information:

| Kind | Files | Remedy |
| --- | --- | --- |
| third party code below `contrib/` | 1295 | `REUSE.toml` with the upstream 
licence |
| test reference output `.scn`, `.doc` | 868 | `REUSE.toml` by pattern |
| build, configuration, text, binary and other files | 315 | `REUSE.toml` or a 
comment |
| source code outside `contrib/` | 1243 | SPDX line from the header or the file 
history |

Of the 1243 source files, 590 carry a full licence text and get an SPDX line
from it. 258 mention a licence in some other form. 367 carry no licence
statement and need their history. 28 refer to the historical RTEMS licence.
Vendor code such as `bsps/arm/atsam` and ACPICA forms a large part.

2945 files fail the copyright check only because of the upper case
`COPYRIGHT (c)`.

</details>

<details>
<summary>Alternatives</summary>

| Approach | Used by | Assessment |
| --- | --- | --- |
| REUSE | curl, KDE, Eclipse Oniro | Standard lint and SPDX export, maintained 
by the FSFE. Also checks copyright notices. |
| SPDX lines with a project lint | Linux (`spdxcheck.py`), Zephyr, NuttX | Same 
work on the 1243 files, but the project maintains its own checker. Does not 
check copyright notices. |
| Scanner only, such as ScanCode | Zephyr as a CI check | No change of the 
tree. Every user has to review the files without a licence statement for their 
own SBOM. |

Both metadata approaches need the same work on the 1243 source files. REUSE
adds the copyright case change, `REUSE.toml` and `LICENSES/`.

</details>

<details>
<summary>Sources</summary>

- [Regulation (EU) 
2024/2847](https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX:32024R2847),
  Annex I, Part II, point 1, and Article 13(5)
- [BSI TR-03183-2 v2.1.0](https://www.bsi.bund.de/dok/TR-03183-en)
- [REUSE specification](https://reuse.software/)
- [ScanCode LicenseDB, RTEMS 
exception](https://scancode-licensedb.aboutcode.org/rtems-exception-2.0.html)

</details>

## AI Details
<!-- Make sure you have read our statement at 
https://www.rtems.org/generative-ai/ -->

### Prompt used

None as a single prompt. The analysis was done in an interactive Claude Code
session on the RTEMS tree under my direction.

### AI model used

Claude Opus 5.5 (claude-opus-5-5), through Claude Code.

### How AI was used for the contribution

- ( ) Formatting
- ( ) Test creation.
- ( ) Code comments.
- ( ) The entire contribution was generated using AI
- ( ) AI code completion such as Copilot in VSCode.

The `reuse lint` run, the file classification and the draft of this text came
from that session. I reviewed the text.

### Access

I have not used a product which claims copyright in its output, and I have
legitimate access to the one I used.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5833
You're receiving this email because of your account on gitlab.rtems.org. 
Unsubscribe from this thread: 
https://gitlab.rtems.org/-/namespace/49/sent_notifications/6-1ufr772mwszr2q98pnwj4b92q-1d/unsubscribe
 | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | 
Help: https://gitlab.rtems.org/help


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to