Re: git: 2622703703e6 - main - license: Add a non applicable (NA) license only for metaports

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Sun, 28 Aug 2022 14:00:42 UTC
Moin!

On 26.08.2022 15:00, Baptiste Daroussin wrote:
> The branch main has been updated by bapt:
> 
> URL: https://cgit.FreeBSD.org/ports/commit/?id=2622703703e68725c5b753ada8f1d0f9837f0403
> 
> commit 2622703703e68725c5b753ada8f1d0f9837f0403
> Author:     Baptiste Daroussin <bapt@FreeBSD.org>
> AuthorDate: 2022-08-26 09:36:43 +0000
> Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
> CommitDate: 2022-08-26 12:00:32 +0000
> 
>      license: Add a non applicable (NA) license only for metaports
>      
>      PR:     223932
>      Reviewed by:    mat
>      Differential Revision:  https://reviews.freebsd.org/D36358
> ---
>   Mk/Uses/metaport.mk | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/Mk/Uses/metaport.mk b/Mk/Uses/metaport.mk
> index 29794872bdbb..a85c348db85a 100644
> --- a/Mk/Uses/metaport.mk
> +++ b/Mk/Uses/metaport.mk
> @@ -8,6 +8,10 @@
>   .if !defined(_INCLUDE_USES_METAPORT_MK)
>   _INCLUDE_USES_METAPORT_MK=	yes
>   
> +LICENSE=	NA
> +LICENSE_NAME=	Non applicable
> +LICENSE_TEXT=	No license are applicable to metaports
> +LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

As NA licence is forced for metaports, please also force
"LICENSE_COMB= single" here.

Some metaports (editors/libreoffice-i18n for example) may inherit dual 
(or multi) licenses from master port, which leads to error on sanity-check:

===>  License not correctly defined: single license in LICENSE, but 
LICENSE_COMB is set to dual (requires more than one)
make: exec(exit) failed (No such file or directory)
*** Error code 1


>   MASTER_SITES=	#
>   DISTFILES=	#
>   EXTRACT_ONLY=	#
> 

-- 
Sincerely,
Dima (fluffy@FreeBSD.org, https://t.me/FluffyBSD)
(desktop, kde, x11, office, ports-secteam)@FreeBSD team