Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dbus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 249
    • Issues 249
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 33
    • Merge requests 33
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • dbus
  • dbus
  • Merge requests
  • !304

Migrate licenses in dbus source to SPDX format

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Ralf Habacker requested to merge rhabacker/dbus:spdx-license-header into master May 03, 2022
  • Overview 47
  • Commits 21
  • Pipelines 12
  • Changes 339

With the commits from this merge request, the dbus source code will have license information based on the SPDX notation. Existing copyright information also uses SPDX keywords, as this reduces the effort required to capture corresponding information.

Reuse conformance can be checked, for example, with sudo docker run --rm --volume $(pwd):/data fsfe/reuse lint, which showed no missing license information in (c/cpp) source files after applying the patches from this merge request.

A question that is often asked in this context is whether the full license text must be included in each file. The Linux kernel developers say on this:

The common way of expressing the license of a source file is to add the
matching boilerplate text into the top comment of the file.  Due to
formatting, typos etc. these "boilerplates" are hard to validate for
tools which are used in the context of license compliance.

An alternative to boilerplate text is the use of Software Package Data
Exchange (SPDX) license identifiers in each source file.  SPDX license
identifiers are machine parsable and precise shorthands for the license
under which the content of the file is contributed.  SPDX license
identifiers are managed by the SPDX Workgroup at the Linux Foundation and
have been agreed on by partners throughout the industry, tool vendors, and
legal teams.  For further information see https://spdx.org/

This is important because especially with (L)GPL there is a stricter condition for this and the Linux kernel mainly uses these licenses.

resolves #394

Edited Jun 01, 2022 by Ralf Habacker
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: spdx-license-header