[PATCH RESEND 0/4] Add package.license support to profiles
Louis Chauvet <[email protected]> Wed, 17 Dec 2025 08:10:11 +0100
| Newsgroups | gmane.linux.gentoo.portage.devel |
|---|---|
| Message-ID | <20251217-add_package_license_to_profiles-v1-0-4bf9be62e3d9@bootlin.com> |
Currently profiles does not allow using per-package license unmasking. The only solution is the LICENSE variable, which apply to all the packages. To allow this, add support for package.license in profile. Signed-off-by: Louis Chauvet <[email protected]> --- Louis Chauvet (4): lib/portage/package/ebuild/_config/LicenseManager.py: Use location_manager instead of paths lib/portage/package/ebuild/_config/LicenseManager.py: Read per-profile package.license tests/test_config: Refactor LicenseManager testing to test multiple configurations tests/test_config: Add test for package.license in profiles .../package/ebuild/_config/LicenseManager.py | 9 +- lib/portage/package/ebuild/config.py | 3 +- lib/portage/tests/ebuild/test_config.py | 215 ++++++++++++--------- man/portage.5 | 1 + 4 files changed, 130 insertions(+), 98 deletions(-) --- base-commit: d7d6fd54f1c936e89c5e4467c6c1f33b217325ca change-id: 20251216-add_package_license_to_profiles-c6f695182aa3 Best regards, -- Louis Chauvet <[email protected]>