Skip to content

boulder: Add convenient %install_licenses macro#781

Open
ermo wants to merge 1 commit into
mainfrom
feature/add-install_license_action_macro
Open

boulder: Add convenient %install_licenses macro#781
ermo wants to merge 1 commit into
mainfrom
feature/add-install_license_action_macro

Conversation

@ermo

@ermo ermo commented May 8, 2026

Copy link
Copy Markdown
Member

In most cases, it will only be necessary to add %install_licenses to recipes to be in compliance with license requirements.

If the automation is unsatisfactory, it is possible to explicitly specify the license files to install with e.g.

%install_licenses LICENSE1 LICENSE2 COPYING*

Test Plan

  • %install_licenses => check that build completes and licenses found are being installed
  • %install_licenses <existing file> => check that build completes and file is installed
  • %install_licenses <missing file> => check that build fails and error is reported
  • just chroot and run a_install_licenses => check that informative output is printed

@ermo ermo requested review from jplatte and tarkah as code owners May 8, 2026 22:13
In most cases, it will only be necessary to add `%install_licenses` to
recipes to be in compliance with recipe requirements.

If the automation fails, it is possible to explicitly specify the license
files to install with e.g.

    %install_licenses LICENSE1 LICENSE2 COPYING*

If the macro is specified in a recipe, but no license files are found,
the script will exit 1, which will cause the install phase to fail and
the build to abort abnormally.

Signed-off-by: Rune Morling <ermo@aerynos.com>
@ermo ermo force-pushed the feature/add-install_license_action_macro branch from f9e2c33 to 2786c0d Compare May 11, 2026 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant