[OE-core] [OE-Core][PATCH] gcc-sanitizers: fix licensing

Dan McGregor danismostlikely at gmail.com
Fri Jan 23 19:07:08 UTC 2015


On 23 January 2015 at 13:05, Dan McGregor <danismostlikely at gmail.com> wrote:
> From: Dan McGregor <dan.mcgregor at usask.ca>
>
> The sanitizer runtime library is dual-licensed under the NCSA
> and MIT licenses.
>
> Also make nativesdk-gcc-sanitizers use SDKGCCVERSION by default
> instead of GCCVERSION
>
> Signed-off-by: Dan McGregor <dan.mcgregor at usask.ca>
> ---
>  meta/conf/distro/include/tcmode-default.inc  | 2 +-
>  meta/recipes-devtools/gcc/gcc-sanitizers.inc | 6 ++++++
>  2 files changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/meta/conf/distro/include/tcmode-default.inc
> b/meta/conf/distro/include/tcmode-default.inc
> index ae6aaf3..7428aa9 100644
> --- a/meta/conf/distro/include/tcmode-default.inc
> +++ b/meta/conf/distro/include/tcmode-default.inc
> @@ -39,7 +39,7 @@ PREFERRED_VERSION_gcc-runtime ?= "${GCCVERSION}"
>  PREFERRED_VERSION_gcc-sanitizers ?= "${GCCVERSION}"
>  PREFERRED_VERSION_gcc-source ?= "${GCCVERSION}"
>  PREFERRED_VERSION_nativesdk-gcc-runtime ?= "${SDKGCCVERSION}"
> -PREFERRED_VERSION_nativesdk-gcc-sanitizers ?= "${GCCVERSION}"
> +PREFERRED_VERSION_nativesdk-gcc-sanitizers ?= "${SDKGCCVERSION}"
>  PREFERRED_VERSION_libgcc ?= "${GCCVERSION}"
>  PREFERRED_VERSION_libgcc-initial ?= "${GCCVERSION}"
>  PREFERRED_VERSION_nativesdk-libgcc ?= "${SDKGCCVERSION}"
> diff --git a/meta/recipes-devtools/gcc/gcc-sanitizers.inc
> b/meta/recipes-devtools/gcc/gcc-sanitizers.inc
> index 892dfe0..35c9247 100644
> --- a/meta/recipes-devtools/gcc/gcc-sanitizers.inc
> +++ b/meta/recipes-devtools/gcc/gcc-sanitizers.inc
> @@ -1,5 +1,11 @@
>  require gcc-configure-common.inc
>
> +LICENSE = "NCSA | MIT"
> +
> +LIC_FILES_CHKSUM = "\
> +    file://libsanitizer/LICENSE.TXT;md5=0249c37748936faf5b1efd5789587909 \
> +"
> +
>  EXTRA_OECONF_PATHS = "\
>      --with-sysroot=/not/exist \
>      --with-build-sysroot=${STAGING_DIR_TARGET} \
> --
> 2.1.0

Turns out I missed this the first time. Without this sanitizer runtime
is assumed to be GPL3 with runtime exception. It gets caught when one
blacklists GPL3 components.



More information about the Openembedded-core mailing list