Skip to content

Install license files for all packages #7294

@EbonJaeger

Description

@EbonJaeger

In the past, packagers were recommended against installing license files for individual packages. It even went so far as to ask people to remove these files if they were shipped by the build system. This is Really Bad, because it means we are in violation of most if not all open source licenses! We MUST install these files in packages.

Guidance on fixing

As of version 35.1.0, ypkg has a macro to easily install license files to the correct directory. Use this macro in the install section of packages that don't ship any license files so that the files are installed. Once built, they should be present in the package's /usr/share/licenses/$package/ directory.

Example

install    : |
    %ninja_install

    # Install a single file from the project's source root called LICENSE
    %install_license LICENSE

    # Install multiple license files present in a directory in the project's source root called LICENSES.
    %install_license LICENSES/*

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions