From 1274e616161e117b390418d39c5d01630704b417 Mon Sep 17 00:00:00 2001 From: Ralf Hubert Date: Tue, 21 Oct 2025 14:33:10 +0200 Subject: [PATCH 1/3] add license helpers --- classes/autotools.yaml | 2 +- classes/basement/bits/python3-pkg.yaml | 2 +- classes/cargo.yaml | 2 +- classes/cmake.yaml | 2 +- classes/licenses.yaml | 48 ++++++++++++++++++++++++++ classes/meson.yaml | 2 +- 6 files changed, 53 insertions(+), 5 deletions(-) create mode 100644 classes/licenses.yaml diff --git a/classes/autotools.yaml b/classes/autotools.yaml index dc0b6149..7c75cf3c 100644 --- a/classes/autotools.yaml +++ b/classes/autotools.yaml @@ -1,4 +1,4 @@ -inherit: [cpackage, libtool, make, install, "basement::update-config"] +inherit: [cpackage, libtool, make, install, "basement::update-config", licenses] buildVars: [AUTOTOOLS_AUTO_STATIC, AR, CC, CXX] buildSetup: | diff --git a/classes/basement/bits/python3-pkg.yaml b/classes/basement/bits/python3-pkg.yaml index 6c938742..e67bd1be 100644 --- a/classes/basement/bits/python3-pkg.yaml +++ b/classes/basement/bits/python3-pkg.yaml @@ -1,4 +1,4 @@ -inherit: [python3] +inherit: [python3, licenses] buildSetup: | # add current pip install directory to PYTHONPATH for instant diff --git a/classes/cargo.yaml b/classes/cargo.yaml index cd9e9844..f59b8e1c 100644 --- a/classes/cargo.yaml +++ b/classes/cargo.yaml @@ -1,4 +1,4 @@ -inherit: [pkg-config, install] +inherit: [pkg-config, install, licenses] depends: # we need a host rustc compiler + a cross std lib for the target arch diff --git a/classes/cmake.yaml b/classes/cmake.yaml index 965c8ecd..61aba71d 100644 --- a/classes/cmake.yaml +++ b/classes/cmake.yaml @@ -1,4 +1,4 @@ -inherit: [cpackage, ninja, install] +inherit: [cpackage, ninja, install, licenses] buildToolsWeak: [cmake] buildVars: [AUTOCONF_HOST, AR, CC, CXX] diff --git a/classes/licenses.yaml b/classes/licenses.yaml new file mode 100644 index 00000000..c8b31a1b --- /dev/null +++ b/classes/licenses.yaml @@ -0,0 +1,48 @@ +buildScript: | + ln -snf $1 .bob-license-src + +packageVars: [PKG_LICENSE, PKG_LICENSE_PATH, BASEMENT_ADD_LICENSE] +packageSetup: | + __LICENSES_SRC=$1/.bob-license-src + # check if the supplied ref is has a valid idString SPDX-Spec v2.3 Annex D.1 + licensesCheckValidRef () { + if [[ $1 =~ ^[A-Za-z0-9.\-]+$ ]]; then + return 0 + fi + echo "Invalid License idRef: $1" >&2 + return 1 + } + + licensesPackage () { + if [ -z "${PKG_LICENSE:-}" ]; then + echo "PKG_LICENSE is missing!" >&2 + return 1 + fi + mkdir -p .bob + echo "${PKG_LICENSE}" > .bob/license + + declare -A LICENSE_REFS + while IFS=: read -r id file ; do + if [[ -n $id && -n $file ]] ; then + licensesCheckValidRef "$id" + LICENSE_REFS["$id"]="$file" + fi + done <<< "${PKG_LICENSE_PATH:-}" + + local L="$PKG_LICENSE" + while [[ $L =~ LicenseRef-([A-Za-z0-9.-]+)(.*) ]] ; do + ID="${BASH_REMATCH[1]}" + L="${BASH_REMATCH[2]}" + if licensesCheckValidRef $ID && [ ${LICENSE_REFS[$ID]+set} ]; then + mkdir -p .bob/licenses + cp $__LICENSES_SRC/${LICENSE_REFS[$ID]} .bob/licenses/$ID + fi + done + + return 0 + } + +packageScript: | + if [ ${BASEMENT_ADD_LICENSE:-true} == true ]; then + licensesPackage + fi diff --git a/classes/meson.yaml b/classes/meson.yaml index 9a89980f..2564d25b 100644 --- a/classes/meson.yaml +++ b/classes/meson.yaml @@ -1,4 +1,4 @@ -inherit: [cpackage, install, python3] +inherit: [cpackage, install, python3, licenses] buildToolsWeak: [meson, ninja] buildVars: [CC, CXX, AR, STRIP, NM] From ce2b3bdde299ef36646645b31eb071d824a11194 Mon Sep 17 00:00:00 2001 From: Ralf Hubert Date: Tue, 11 Nov 2025 12:18:14 +0100 Subject: [PATCH 2/3] add tests for licenses class --- tests/licenses/.gitignore | 4 ++ tests/licenses/config.yaml | 3 + tests/licenses/layers/self | 1 + tests/licenses/recipes/licenses_test.yaml | 81 +++++++++++++++++++++++ 4 files changed, 89 insertions(+) create mode 100644 tests/licenses/.gitignore create mode 100644 tests/licenses/config.yaml create mode 120000 tests/licenses/layers/self create mode 100644 tests/licenses/recipes/licenses_test.yaml diff --git a/tests/licenses/.gitignore b/tests/licenses/.gitignore new file mode 100644 index 00000000..478f5b5d --- /dev/null +++ b/tests/licenses/.gitignore @@ -0,0 +1,4 @@ +/dev* +/work +/graph +/projects diff --git a/tests/licenses/config.yaml b/tests/licenses/config.yaml new file mode 100644 index 00000000..6e9db733 --- /dev/null +++ b/tests/licenses/config.yaml @@ -0,0 +1,3 @@ +bobMinimumVersion: "1.1.0" +layers: + - self diff --git a/tests/licenses/layers/self b/tests/licenses/layers/self new file mode 120000 index 00000000..1b20c9fb --- /dev/null +++ b/tests/licenses/layers/self @@ -0,0 +1 @@ +../../../ \ No newline at end of file diff --git a/tests/licenses/recipes/licenses_test.yaml b/tests/licenses/recipes/licenses_test.yaml new file mode 100644 index 00000000..328cb975 --- /dev/null +++ b/tests/licenses/recipes/licenses_test.yaml @@ -0,0 +1,81 @@ +root: true +inherit: [licenses] + +privateEnvironment: + BASEMENT_ADD_LICENSE: "false" + +packageScript: | + expect_exist() + { + local i + for i in "$@" ; do + if [[ ! -e "$i" ]] ; then + echo "Missing expected file: $i" >&2 + return 1 + fi + done + return 0 + } + + expect_not_exist() + { + local i + for i in "$@" ; do + if [[ -e "$i" ]] ; then + echo "Unexpected file: $i" >&2 + return 1 + fi + done + + return 0 + } + + expect_content_equals () { + if [[ "$(< $1)" != "$2" ]]; then + echo "File \"$1\" doesn't contain \"$2\"" >&2 + return 1 + fi + return 0 + } + +multiPackage: + pkg_license_missing: + packageScript: | + if licensesPackage; then + echo "licensesBuild did not fail as expected!" + exit 1 + fi + expect_not_exist ".bob/license" + + pkg_license_only: + metaEnvironment: + PKG_LICENSE: "GPLv3" + + packageScript: | + licensesPackage + # simulate incremental builds... + licensesPackage + licensesPackage + expect_exist ".bob/license" + expect_content_equals ".bob/license" "${PKG_LICENSE}" + + pkg_license_refs: + metaEnvironment: + PKG_LICENSE: "GPLv3 OR LicenseRef-a AND LicenseRef-test12.3-4 WITH Foo" + PKG_LICENSE_PATH: | + a:license_a.txt + test12.3-4:test/test-lic + + checkoutDeterministic: True + checkoutScript: | + echo "Text of license_a" > license_a.txt + mkdir -p test + echo "Text of test" > test/test-lic + + packageScript: | + licensesPackage + expect_exist ".bob/license" + expect_content_equals ".bob/license" "${PKG_LICENSE}" + expect_exist ".bob/licenses/a" ".bob/licenses/test12.3-4" + expect_content_equals ".bob/licenses/a" "Text of license_a" + expect_content_equals ".bob/licenses/test12.3-4" "Text of test" From 797d4595029648047e9df3eaea49150c24e72fc2 Mon Sep 17 00:00:00 2001 From: Ralf Hubert Date: Tue, 11 Nov 2025 12:23:02 +0100 Subject: [PATCH 3/3] treewide: add missing licenses --- recipes/core/coreutils.yaml | 1 + recipes/core/util-linux.yaml | 3 +++ recipes/devel/autoconf-2.69.yaml | 1 + recipes/devel/autoconf-archive.yaml | 1 + recipes/devel/autoconf.yaml | 1 + recipes/devel/automake.yaml | 1 + recipes/devel/binutils.yaml | 1 + recipes/devel/bison.yaml | 1 + recipes/devel/cmake.yaml | 1 + recipes/devel/compat/binutils.yaml | 1 + recipes/devel/compat/gcc.yaml | 1 + recipes/devel/diffutils.yaml | 1 + recipes/devel/dune.yaml | 1 + recipes/devel/fakeroot.yaml | 1 + recipes/devel/flex.yaml | 3 +++ recipes/devel/gcc.yaml | 1 + recipes/devel/gettext.yaml | 1 + recipes/devel/git.yaml | 1 + recipes/devel/gperf.yaml | 1 + recipes/devel/help2man.yaml | 1 + recipes/devel/libtool.yaml | 1 + recipes/devel/m4.yaml | 1 + recipes/devel/make.yaml | 1 + recipes/devel/meson.yaml | 1 + recipes/devel/ninja.yaml | 1 + recipes/devel/ocaml.yaml | 3 +++ recipes/devel/ocamlfind.yaml | 1 + recipes/devel/opam.yaml | 1 + recipes/devel/patch.yaml | 1 + recipes/devel/pkg-config.yaml | 1 + recipes/devel/texinfo.yaml | 1 + recipes/editors/ed.yaml | 1 + recipes/kernel/linux-libc-headers.yaml | 1 + recipes/libs/bigarray-compat.yaml | 1 + recipes/libs/compat/glibc.yaml | 1 + recipes/libs/compat/isl.yaml | 1 + recipes/libs/csexp.yaml | 1 + recipes/libs/expat.yaml | 1 + recipes/libs/gdbm.yaml | 1 + recipes/libs/glib.yaml | 1 + recipes/libs/glibc.yaml | 1 + recipes/libs/gmp.yaml | 1 + recipes/libs/isl.yaml | 1 + recipes/libs/jsoncpp.yaml | 3 +++ recipes/libs/libarchive.yaml | 3 +++ recipes/libs/libcap.yaml | 1 + recipes/libs/libffi.yaml | 1 + recipes/libs/libuv.yaml | 1 + recipes/libs/libxcrypt.yaml | 1 + recipes/libs/mpc.yaml | 1 + recipes/libs/mpfr.yaml | 1 + recipes/libs/ncurses.yaml | 1 + recipes/libs/newlib.yaml | 3 +++ recipes/libs/ocaml-ctypes.yaml | 1 + recipes/libs/ocaml-integers.yaml | 1 + recipes/libs/openssl.yaml | 1 + recipes/libs/readline.yaml | 1 + recipes/libs/rhash.yaml | 1 + recipes/libs/stdlib-shims.yaml | 3 +++ recipes/libs/zlib.yaml | 1 + recipes/net/curl.yaml | 1 + recipes/perl/perl.yaml | 1 + recipes/python/build.yaml | 1 + recipes/python/flit_core.yaml | 1 + recipes/python/installer.yaml | 1 + recipes/python/packaging.yaml | 1 + recipes/python/pyproject-hooks.yaml | 1 + recipes/python/python3-pip.yaml | 1 + recipes/python/python3-setuptools.yaml | 1 + recipes/python/python3.yaml | 1 + recipes/python/wheel.yaml | 1 + recipes/utils/bash.yaml | 1 + recipes/utils/bc.yaml | 1 + recipes/utils/bzip2.yaml | 1 + recipes/utils/file.yaml | 1 + recipes/utils/findutils.yaml | 1 + recipes/utils/gawk.yaml | 1 + recipes/utils/gzip.yaml | 1 + recipes/utils/pxargs.yaml | 3 +++ recipes/utils/rsync.yaml | 1 + recipes/utils/sed.yaml | 1 + recipes/utils/tar.yaml | 1 + recipes/utils/unzip.yaml | 1 + recipes/utils/xz-utils.yaml | 1 + tests/cross-platform/recipes/cmake/greeter.yaml | 3 +++ tests/cross-platform/recipes/cmake/libgreet.yaml | 3 +++ tests/cross-platform/recipes/cmake/libholler.yaml | 3 +++ tests/linux/recipes/meson/greeter.yaml | 3 +++ tests/linux/recipes/meson/libgreet.yaml | 3 +++ tests/linux/recipes/meson/libholler.yaml | 3 +++ 90 files changed, 118 insertions(+) diff --git a/recipes/core/coreutils.yaml b/recipes/core/coreutils.yaml index f5ed41f6..77bba224 100644 --- a/recipes/core/coreutils.yaml +++ b/recipes/core/coreutils.yaml @@ -2,6 +2,7 @@ inherit: [autotools, patch] metaEnvironment: PKG_VERSION: "9.5" + PKG_LICENSE: "GFDL-1.3-or-later AND GPL-3.0-or-later" depends: - libs::gmp-dev diff --git a/recipes/core/util-linux.yaml b/recipes/core/util-linux.yaml index 4ea823f3..44709fce 100644 --- a/recipes/core/util-linux.yaml +++ b/recipes/core/util-linux.yaml @@ -3,6 +3,9 @@ inherit: [autotools] metaEnvironment: PKG_VERSION_MAJOR: "2.40" PKG_VERSION: "2.40.2" + PKG_LICENSE: "LicenseRef-util-linux" + PKG_LICENSE_PATH: + util-linux:README.licensing depends: - libs::ncurses-dev diff --git a/recipes/devel/autoconf-2.69.yaml b/recipes/devel/autoconf-2.69.yaml index 66061d2f..6ecce098 100644 --- a/recipes/devel/autoconf-2.69.yaml +++ b/recipes/devel/autoconf-2.69.yaml @@ -2,6 +2,7 @@ inherit: [autotools-noarch, patch] metaEnvironment: PKG_VERSION: "2.69" + PKG_LICENSE: "GPL-2.0 AND GPL-3.0 WITH Autoconf-exception-3.0" checkoutSCM: scm: url diff --git a/recipes/devel/autoconf-archive.yaml b/recipes/devel/autoconf-archive.yaml index 22146ca3..108d4c4f 100644 --- a/recipes/devel/autoconf-archive.yaml +++ b/recipes/devel/autoconf-archive.yaml @@ -2,6 +2,7 @@ inherit: [autotools-noarch] metaEnvironment: PKG_VERSION: "2023.02.20" + PKG_LICENSE: "GPL-3.0-or-later WITH Autoconf-exception-3.0" checkoutSCM: scm: url diff --git a/recipes/devel/autoconf.yaml b/recipes/devel/autoconf.yaml index 266fb5d1..f7d5575a 100644 --- a/recipes/devel/autoconf.yaml +++ b/recipes/devel/autoconf.yaml @@ -2,6 +2,7 @@ inherit: [autotools-noarch, patch] metaEnvironment: PKG_VERSION: "2.72" + PKG_LICENSE: "GPL-2.0 AND GPL-3.0 WITH Autoconf-exception-3.0" checkoutSCM: scm: url diff --git a/recipes/devel/automake.yaml b/recipes/devel/automake.yaml index 4924a933..a38adbda 100644 --- a/recipes/devel/automake.yaml +++ b/recipes/devel/automake.yaml @@ -2,6 +2,7 @@ inherit: [autotools-noarch, patch] metaEnvironment: PKG_VERSION: "1.16.5" + PKG_LICENSE: "GPL-2.0-only" depends: - devel::autoconf diff --git a/recipes/devel/binutils.yaml b/recipes/devel/binutils.yaml index 0b8d6d75..d4cc524b 100644 --- a/recipes/devel/binutils.yaml +++ b/recipes/devel/binutils.yaml @@ -2,6 +2,7 @@ inherit: [autotools, patch] metaEnvironment: PKG_VERSION: "2.45" + PKG_LICENSE: "FSFAP AND GFDL-1.3 AND GPL-2.0-or-later AND LGPL-2.0-or-later" checkoutSCM: scm: url diff --git a/recipes/devel/bison.yaml b/recipes/devel/bison.yaml index 6ea3f46c..c3fa05ba 100644 --- a/recipes/devel/bison.yaml +++ b/recipes/devel/bison.yaml @@ -2,6 +2,7 @@ inherit: [autotools] metaEnvironment: PKG_VERSION: "3.8.2" + PKG_LICENSE: "GPL-3.0-or-later" # parallel make sometimes fails in examples/c/reccalc/... jobServer: False diff --git a/recipes/devel/cmake.yaml b/recipes/devel/cmake.yaml index d7647c97..850f9f5d 100644 --- a/recipes/devel/cmake.yaml +++ b/recipes/devel/cmake.yaml @@ -2,6 +2,7 @@ inherit: [patch] metaEnvironment: PKG_VERSION: "3.25.1" + PKG_LICENSE: "BSD-3-Clause" checkoutSCM: scm: url diff --git a/recipes/devel/compat/binutils.yaml b/recipes/devel/compat/binutils.yaml index d80a61fb..6f7103de 100644 --- a/recipes/devel/compat/binutils.yaml +++ b/recipes/devel/compat/binutils.yaml @@ -2,6 +2,7 @@ inherit: [autotools] metaEnvironment: PKG_VERSION: "2.34" + PKG_LICENSE: "FSFAP AND GFDL-1.3 AND GPL-2.0-or-later AND LGPL-2.0-or-later" checkoutSCM: scm: url diff --git a/recipes/devel/compat/gcc.yaml b/recipes/devel/compat/gcc.yaml index 5b9751b2..cfd92b24 100644 --- a/recipes/devel/compat/gcc.yaml +++ b/recipes/devel/compat/gcc.yaml @@ -2,6 +2,7 @@ inherit: [make, install, patch] metaEnvironment: PKG_VERSION: "9.5.0" + PKG_LICENSE: "GPL-3.0-with-GCC-exception" depends: - environment: diff --git a/recipes/devel/diffutils.yaml b/recipes/devel/diffutils.yaml index 2334c0e6..37056986 100644 --- a/recipes/devel/diffutils.yaml +++ b/recipes/devel/diffutils.yaml @@ -2,6 +2,7 @@ inherit: [autotools] metaEnvironment: PKG_VERSION: "3.10" + PKG_LICENSE: "GPL-3.0-or-later" checkoutSCM: scm: url diff --git a/recipes/devel/dune.yaml b/recipes/devel/dune.yaml index 71a098a4..b7d44896 100644 --- a/recipes/devel/dune.yaml +++ b/recipes/devel/dune.yaml @@ -2,6 +2,7 @@ inherit: [cpackage, make] metaEnvironment: PKG_VERSION: "3.17.2" + PKG_LICENSE: "MIT" depends: - libs::zstd-dev diff --git a/recipes/devel/fakeroot.yaml b/recipes/devel/fakeroot.yaml index 21dd2b76..8c29a012 100644 --- a/recipes/devel/fakeroot.yaml +++ b/recipes/devel/fakeroot.yaml @@ -2,6 +2,7 @@ inherit: [autotools] metaEnvironment: PKG_VERSION: "1.34" + PKG_LICENSE: "GPL-3.0-or-later" depends: - libs::libcap-dev diff --git a/recipes/devel/flex.yaml b/recipes/devel/flex.yaml index 07024bc1..fdf9c690 100644 --- a/recipes/devel/flex.yaml +++ b/recipes/devel/flex.yaml @@ -2,6 +2,9 @@ inherit: [autotools, autoconf, patch] metaEnvironment: PKG_VERSION: "2.6.4" + PKG_LICENSE: "LicenseRef-flex" + PKG_LICENSE_PATH: | + flex:COPYING checkoutSCM: scm: url diff --git a/recipes/devel/gcc.yaml b/recipes/devel/gcc.yaml index 4db55d2a..5c15c6b3 100644 --- a/recipes/devel/gcc.yaml +++ b/recipes/devel/gcc.yaml @@ -2,6 +2,7 @@ inherit: [autoconf, make, patch, install, "basement::update-config"] metaEnvironment: PKG_VERSION: "13.4.0" + PKG_LICENSE: "GPL-3.0-with-GCC-exception" depends: - libs::gmp-dev diff --git a/recipes/devel/gettext.yaml b/recipes/devel/gettext.yaml index bea9120d..3925ce01 100644 --- a/recipes/devel/gettext.yaml +++ b/recipes/devel/gettext.yaml @@ -2,6 +2,7 @@ inherit: [autotools] metaEnvironment: PKG_VERSION: "0.22.5" + PKG_LICENSE: "GFDL-1.2-only AND GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-only" checkoutSCM: scm: url diff --git a/recipes/devel/git.yaml b/recipes/devel/git.yaml index 5a2e151d..457ab009 100644 --- a/recipes/devel/git.yaml +++ b/recipes/devel/git.yaml @@ -2,6 +2,7 @@ inherit: [cpackage, install, make, pkg-config] metaEnvironment: PKG_VERSION: "2.47.1" + PKG_LICENSE: "GPL-2.0-only" depends: - libs::zlib-dev diff --git a/recipes/devel/gperf.yaml b/recipes/devel/gperf.yaml index 8f00254a..f4e8c1d7 100644 --- a/recipes/devel/gperf.yaml +++ b/recipes/devel/gperf.yaml @@ -2,6 +2,7 @@ inherit: [autotools] metaEnvironment: PKG_VERSION: "3.1" + PKG_LICENSE: "GPL-3.0-or-later" checkoutSCM: scm: url diff --git a/recipes/devel/help2man.yaml b/recipes/devel/help2man.yaml index 64b5b222..7899246e 100644 --- a/recipes/devel/help2man.yaml +++ b/recipes/devel/help2man.yaml @@ -1,6 +1,7 @@ inherit: [autotools] metaEnvironment: PKG_VERSION: "1.49.3" + PKG_LICENSE: "GPL-3.0" checkoutSCM: scm: url diff --git a/recipes/devel/libtool.yaml b/recipes/devel/libtool.yaml index 6c963eee..3c5407af 100644 --- a/recipes/devel/libtool.yaml +++ b/recipes/devel/libtool.yaml @@ -5,6 +5,7 @@ inherit: [libtool, patch] metaEnvironment: PKG_VERSION: "2.4.6" + PKG_LICENSE: "LGPL-2.0-or-later WITH Libtool-exception" privateEnvironment: APPLY_LIBTOOL_PATCH: "no" diff --git a/recipes/devel/m4.yaml b/recipes/devel/m4.yaml index 3f54c836..e9cddeb3 100644 --- a/recipes/devel/m4.yaml +++ b/recipes/devel/m4.yaml @@ -2,6 +2,7 @@ inherit: [autotools, patch] metaEnvironment: PKG_VERSION: "1.4.20" + PKG_LICENSE: "GPL-3.0-or-later" checkoutSCM: scm: url diff --git a/recipes/devel/make.yaml b/recipes/devel/make.yaml index 59e71d94..7315c9d4 100644 --- a/recipes/devel/make.yaml +++ b/recipes/devel/make.yaml @@ -2,6 +2,7 @@ inherit: [cpackage, libtool, install, "basement::update-config"] metaEnvironment: PKG_VERSION: "4.3" + PKG_LICENSE: "GPL-3.0-only" checkoutSCM: scm: url diff --git a/recipes/devel/meson.yaml b/recipes/devel/meson.yaml index 713604fc..f3b4e810 100644 --- a/recipes/devel/meson.yaml +++ b/recipes/devel/meson.yaml @@ -2,6 +2,7 @@ inherit: ["python3::setuptools"] metaEnvironment: PKG_VERSION: "1.5.1" + PKG_LICENSE: "Apache-2.0" checkoutSCM: scm: url diff --git a/recipes/devel/ninja.yaml b/recipes/devel/ninja.yaml index 44e1744d..37ecc291 100644 --- a/recipes/devel/ninja.yaml +++ b/recipes/devel/ninja.yaml @@ -2,6 +2,7 @@ inherit: [cpackage, install, patch] metaEnvironment: PKG_VERSION: "1.11.1.g95dee.kitware.jobserver-1" + PKG_LICENSE: "Apache-2.0" checkoutSCM: scm: url diff --git a/recipes/devel/ocaml.yaml b/recipes/devel/ocaml.yaml index bcc9a04e..5e4bc4cb 100644 --- a/recipes/devel/ocaml.yaml +++ b/recipes/devel/ocaml.yaml @@ -2,6 +2,9 @@ inherit: [autotools] metaEnvironment: PKG_VERSION: "5.3.0" + PKG_LICENSE: "LicenseRef-ocaml" + PKG_LICENSE_PATH: + ocaml:LICENSE checkoutSCM: scm: url diff --git a/recipes/devel/ocamlfind.yaml b/recipes/devel/ocamlfind.yaml index a4b98933..4eec446c 100644 --- a/recipes/devel/ocamlfind.yaml +++ b/recipes/devel/ocamlfind.yaml @@ -2,6 +2,7 @@ inherit: [autotools] metaEnvironment: PKG_VERSION: "1.9.8" + PKG_LICENSE: "MIT" depends: - libs::zstd-dev diff --git a/recipes/devel/opam.yaml b/recipes/devel/opam.yaml index 78f065df..89eb9d9a 100644 --- a/recipes/devel/opam.yaml +++ b/recipes/devel/opam.yaml @@ -2,6 +2,7 @@ inherit: [autotools] metaEnvironment: PKG_VERSION: "2.3.0" + PKG_LICENSE: "LGPL-2.1-only" checkoutSCM: scm: url diff --git a/recipes/devel/patch.yaml b/recipes/devel/patch.yaml index df7698b2..9ae3398e 100644 --- a/recipes/devel/patch.yaml +++ b/recipes/devel/patch.yaml @@ -2,6 +2,7 @@ inherit: [autotools] metaEnvironment: PKG_VERSION: "2.7.6" + PKG_LICENSE: "GPL-3.0-or-later" checkoutSCM: scm: url diff --git a/recipes/devel/pkg-config.yaml b/recipes/devel/pkg-config.yaml index 75d26a66..8df601b9 100644 --- a/recipes/devel/pkg-config.yaml +++ b/recipes/devel/pkg-config.yaml @@ -4,6 +4,7 @@ inherit: [libtool, patch] metaEnvironment: + PKG_LICENSE: "GPL-2.0" PKG_VERSION: "0.29.2" checkoutSCM: diff --git a/recipes/devel/texinfo.yaml b/recipes/devel/texinfo.yaml index 7612c117..ad0fc326 100644 --- a/recipes/devel/texinfo.yaml +++ b/recipes/devel/texinfo.yaml @@ -1,6 +1,7 @@ inherit: [autotools] metaEnvironment: + PKG_LICENSE: "GPL-3.0" PKG_VERSION: "6.1" checkoutSCM: diff --git a/recipes/editors/ed.yaml b/recipes/editors/ed.yaml index d11cfe37..61df2e10 100644 --- a/recipes/editors/ed.yaml +++ b/recipes/editors/ed.yaml @@ -2,6 +2,7 @@ inherit: [autotools] metaEnvironment: PKG_VERSION: "1.20.2" + PKG_LICENSE: "GPL-2.0-only" checkoutSCM: scm: url diff --git a/recipes/kernel/linux-libc-headers.yaml b/recipes/kernel/linux-libc-headers.yaml index 466cc63f..1b40157c 100644 --- a/recipes/kernel/linux-libc-headers.yaml +++ b/recipes/kernel/linux-libc-headers.yaml @@ -12,6 +12,7 @@ inherit: [make] metaEnvironment: PKG_VERSION: "6.6.31" + PKG_LICENSE: "GPL-2.0-only" checkoutSCM: scm: url diff --git a/recipes/libs/bigarray-compat.yaml b/recipes/libs/bigarray-compat.yaml index c9217d02..930c12f8 100644 --- a/recipes/libs/bigarray-compat.yaml +++ b/recipes/libs/bigarray-compat.yaml @@ -1,6 +1,7 @@ inherit: [ocaml, install] metaEnvironment: + PKG_LICENSE: "ISC" PKG_VERSION: "1.1.0" checkoutSCM: diff --git a/recipes/libs/compat/glibc.yaml b/recipes/libs/compat/glibc.yaml index 75008d68..9df3ce95 100644 --- a/recipes/libs/compat/glibc.yaml +++ b/recipes/libs/compat/glibc.yaml @@ -7,6 +7,7 @@ depends: use: [tools] metaEnvironment: + PKG_LICENSE: "GPL-2.0-or-later AND LGPL-2.1-or-later" PKG_VERSION: "2.31" checkoutSCM: diff --git a/recipes/libs/compat/isl.yaml b/recipes/libs/compat/isl.yaml index cd6217bb..d1a0378f 100644 --- a/recipes/libs/compat/isl.yaml +++ b/recipes/libs/compat/isl.yaml @@ -2,6 +2,7 @@ inherit: [autotools] metaEnvironment: PKG_VERSION: "0.22.1" + PKG_LICENSE: "MIT" privateEnvironment: APPLY_LIBTOOL_PATCH: "no" diff --git a/recipes/libs/csexp.yaml b/recipes/libs/csexp.yaml index 583c30bf..c685fe02 100644 --- a/recipes/libs/csexp.yaml +++ b/recipes/libs/csexp.yaml @@ -1,6 +1,7 @@ inherit: [install] metaEnvironment: + PKG_LICENSE: "MIT" PKG_VERSION: "1.5.2" checkoutSCM: diff --git a/recipes/libs/expat.yaml b/recipes/libs/expat.yaml index 2bc4e51a..9b598d3e 100644 --- a/recipes/libs/expat.yaml +++ b/recipes/libs/expat.yaml @@ -2,6 +2,7 @@ inherit: [autotools, autoconf] metaEnvironment: PKG_VERSION: "2.4.1" + PKG_LICENSE: "MIT" checkoutSCM: scm: url diff --git a/recipes/libs/gdbm.yaml b/recipes/libs/gdbm.yaml index 72099fff..e3a5929a 100644 --- a/recipes/libs/gdbm.yaml +++ b/recipes/libs/gdbm.yaml @@ -2,6 +2,7 @@ inherit: [autotools, autoconf] metaEnvironment: PKG_VERSION: "1.23" + PKG_LICENSE: "GPL-3.0-or-later" checkoutSCM: scm: url diff --git a/recipes/libs/glib.yaml b/recipes/libs/glib.yaml index 9a309909..d4c2f362 100644 --- a/recipes/libs/glib.yaml +++ b/recipes/libs/glib.yaml @@ -1,6 +1,7 @@ inherit: [meson, patch] metaEnvironment: + PKG_LICENSE: "LGPL-2.1-or-later" PKG_VERSION: "2.71.0" depends: diff --git a/recipes/libs/glibc.yaml b/recipes/libs/glibc.yaml index bf4498fb..23922a58 100644 --- a/recipes/libs/glibc.yaml +++ b/recipes/libs/glibc.yaml @@ -5,6 +5,7 @@ depends: use: [result, environment] metaEnvironment: + PKG_LICENSE: "GPL-2.0-or-later AND LGPL-2.1-or-later" PKG_VERSION: "2.39" privateEnvironment: diff --git a/recipes/libs/gmp.yaml b/recipes/libs/gmp.yaml index 0c6f3871..f8926149 100644 --- a/recipes/libs/gmp.yaml +++ b/recipes/libs/gmp.yaml @@ -4,6 +4,7 @@ privateEnvironment: APPLY_UPDATE_CONFIG: "no" metaEnvironment: + PKG_LICENSE: "LGPL-3.0 AND GPL-2.0" PKG_VERSION: "6.3.0" checkoutSCM: diff --git a/recipes/libs/isl.yaml b/recipes/libs/isl.yaml index 5b15ea1b..b72508cb 100644 --- a/recipes/libs/isl.yaml +++ b/recipes/libs/isl.yaml @@ -2,6 +2,7 @@ inherit: [autotools] metaEnvironment: PKG_VERSION: "0.26" + PKG_LICENSE: "MIT" privateEnvironment: APPLY_LIBTOOL_PATCH: "no" diff --git a/recipes/libs/jsoncpp.yaml b/recipes/libs/jsoncpp.yaml index 9fa772e5..c0d11fcd 100644 --- a/recipes/libs/jsoncpp.yaml +++ b/recipes/libs/jsoncpp.yaml @@ -1,7 +1,10 @@ inherit: [meson] metaEnvironment: + PKG_LICENSE: "LicenseRef-jsoncpp" PKG_VERSION: "1.9.3" + PKG_LICENSE_PATH: | + jsoncpp:LICENSE checkoutSCM: scm: url diff --git a/recipes/libs/libarchive.yaml b/recipes/libs/libarchive.yaml index 290db621..13cce766 100644 --- a/recipes/libs/libarchive.yaml +++ b/recipes/libs/libarchive.yaml @@ -2,6 +2,9 @@ inherit: [autotools] metaEnvironment: PKG_VERSION: "3.4.3" + PKG_LICENSE: "LicenseRef-libarchive" + PKG_LICENSE_PATH: | + libarchive:COPYING depends: - libs::zlib-dev diff --git a/recipes/libs/libcap.yaml b/recipes/libs/libcap.yaml index 7a6e2872..5857c32e 100644 --- a/recipes/libs/libcap.yaml +++ b/recipes/libs/libcap.yaml @@ -2,6 +2,7 @@ inherit: [make, install] metaEnvironment: PKG_VERSION: "2.70" + PKG_LICENSE: "BSD-3-Clause or GPL-2.0-only" checkoutSCM: scm: url diff --git a/recipes/libs/libffi.yaml b/recipes/libs/libffi.yaml index 69ad87f1..2b1c2b79 100644 --- a/recipes/libs/libffi.yaml +++ b/recipes/libs/libffi.yaml @@ -2,6 +2,7 @@ inherit: [autotools, autoconf, patch] metaEnvironment: PKG_VERSION: "3.2.1" + PKG_LICENSE: "MIT" checkoutSCM: scm: url diff --git a/recipes/libs/libuv.yaml b/recipes/libs/libuv.yaml index cc196eae..ae4d8126 100644 --- a/recipes/libs/libuv.yaml +++ b/recipes/libs/libuv.yaml @@ -2,6 +2,7 @@ inherit: [autotools, autoconf] metaEnvironment: PKG_VERSION: "1.38.0" + PKG_LICENSE: "MIT" checkoutSCM: scm: url diff --git a/recipes/libs/libxcrypt.yaml b/recipes/libs/libxcrypt.yaml index 2ed47047..27639bda 100644 --- a/recipes/libs/libxcrypt.yaml +++ b/recipes/libs/libxcrypt.yaml @@ -2,6 +2,7 @@ inherit: [autoconf, autotools] metaEnvironment: PKG_VERSION: 4.4.36 + PKG_LICENSE: "LGPL-2.1" checkoutSCM: scm: url diff --git a/recipes/libs/mpc.yaml b/recipes/libs/mpc.yaml index c608e88c..cd4a8356 100644 --- a/recipes/libs/mpc.yaml +++ b/recipes/libs/mpc.yaml @@ -1,6 +1,7 @@ inherit: [autotools] metaEnvironment: + PKG_LICENSE: "LGPL-3.0-or-later" PKG_VERSION: "1.3.1" depends: diff --git a/recipes/libs/mpfr.yaml b/recipes/libs/mpfr.yaml index a7605745..69f9806f 100644 --- a/recipes/libs/mpfr.yaml +++ b/recipes/libs/mpfr.yaml @@ -1,6 +1,7 @@ inherit: [autotools] metaEnvironment: + PKG_LICENSE: "LGPL-3.0-or-later" PKG_VERSION: "4.2.1" depends: diff --git a/recipes/libs/ncurses.yaml b/recipes/libs/ncurses.yaml index 5ad11d21..ba3e3fba 100644 --- a/recipes/libs/ncurses.yaml +++ b/recipes/libs/ncurses.yaml @@ -1,6 +1,7 @@ inherit: [autotools, patch] metaEnvironment: + PKG_LICENSE: "MIT-open-group" PKG_VERSION: "6.5" checkoutSCM: diff --git a/recipes/libs/newlib.yaml b/recipes/libs/newlib.yaml index 4fad90a8..90d8919d 100644 --- a/recipes/libs/newlib.yaml +++ b/recipes/libs/newlib.yaml @@ -2,6 +2,9 @@ inherit: [make, strip] metaEnvironment: PKG_VERSION: "4.1.0" + PKG_LICENSE: "LicenseRef-newlib" + PKG_LICENSE_PATH: | + newlib:COPYING.NEWLIB checkoutSCM: scm: url diff --git a/recipes/libs/ocaml-ctypes.yaml b/recipes/libs/ocaml-ctypes.yaml index eb382ef0..0d436354 100644 --- a/recipes/libs/ocaml-ctypes.yaml +++ b/recipes/libs/ocaml-ctypes.yaml @@ -2,6 +2,7 @@ inherit: [make, cpackage, ocaml] metaEnvironment: PKG_VERSION: "0.23.0" + PKG_LICENSE: "MIT" depends: - name: devel::dune diff --git a/recipes/libs/ocaml-integers.yaml b/recipes/libs/ocaml-integers.yaml index 3c4bf318..b9a3331e 100644 --- a/recipes/libs/ocaml-integers.yaml +++ b/recipes/libs/ocaml-integers.yaml @@ -1,6 +1,7 @@ inherit: [ocaml, install] metaEnvironment: + PKG_LICENSE: "MIT" PKG_VERSION: "0.7.0" depends: diff --git a/recipes/libs/openssl.yaml b/recipes/libs/openssl.yaml index 5f9c0821..38acc107 100644 --- a/recipes/libs/openssl.yaml +++ b/recipes/libs/openssl.yaml @@ -1,6 +1,7 @@ inherit: [cpackage, make, install, patch] metaEnvironment: + PKG_LICENSE: "Apache-2.0" PKG_VERSION: "3.3.1" depends: diff --git a/recipes/libs/readline.yaml b/recipes/libs/readline.yaml index 02848f66..2be6ecd1 100644 --- a/recipes/libs/readline.yaml +++ b/recipes/libs/readline.yaml @@ -1,6 +1,7 @@ inherit: [autotools, patch] metaEnvironment: + PKG_LICENSE: "GPL-3.0" PKG_VERSION: "8.3" depends: diff --git a/recipes/libs/rhash.yaml b/recipes/libs/rhash.yaml index d29d4f4b..cfb64291 100644 --- a/recipes/libs/rhash.yaml +++ b/recipes/libs/rhash.yaml @@ -1,6 +1,7 @@ inherit: [make, cpackage, install] metaEnvironment: + PKG_LICENSE: "0BSD" PKG_VERSION: "1.3.5" checkoutSCM: diff --git a/recipes/libs/stdlib-shims.yaml b/recipes/libs/stdlib-shims.yaml index 027bee10..bce49732 100644 --- a/recipes/libs/stdlib-shims.yaml +++ b/recipes/libs/stdlib-shims.yaml @@ -2,6 +2,9 @@ inherit: [ocaml, install] metaEnvironment: PKG_VERSION: "0.3.0" + PKG_LICENSE: "LicenseRef-stdlib-shims" + PKG_LICENSE_PATH: | + stdlib-shims:LICENSE checkoutSCM: scm: url diff --git a/recipes/libs/zlib.yaml b/recipes/libs/zlib.yaml index 775f67a0..ea1cbf0e 100644 --- a/recipes/libs/zlib.yaml +++ b/recipes/libs/zlib.yaml @@ -2,6 +2,7 @@ inherit: [cpackage, make, install] metaEnvironment: PKG_VERSION: "1.3.1" + PKG_LICENSE: "Zlib" checkoutSCM: scm: url diff --git a/recipes/net/curl.yaml b/recipes/net/curl.yaml index fce3baeb..a02106c7 100644 --- a/recipes/net/curl.yaml +++ b/recipes/net/curl.yaml @@ -2,6 +2,7 @@ inherit: [autotools] metaEnvironment: PKG_VERSION: "8.7.1" + PKG_LICENSE: "curl" depends: - libs::openssl-dev diff --git a/recipes/perl/perl.yaml b/recipes/perl/perl.yaml index 732c5d9b..6ae5b961 100644 --- a/recipes/perl/perl.yaml +++ b/recipes/perl/perl.yaml @@ -1,6 +1,7 @@ inherit: [make, strip, "basement::update-config", install, patch] metaEnvironment: + PKG_LICENSE: "Artistic-1.0-Perl OR GPL-1.0-or-later" PKG_VERSION: "5.40.2" privateEnvironment: diff --git a/recipes/python/build.yaml b/recipes/python/build.yaml index d1699a8f..8475317d 100644 --- a/recipes/python/build.yaml +++ b/recipes/python/build.yaml @@ -2,6 +2,7 @@ inherit: ["python3::flit"] metaEnvironment: PKG_VERSION: "1.2.2" + PKG_LICENSE: "MIT" checkoutSCM: scm: url diff --git a/recipes/python/flit_core.yaml b/recipes/python/flit_core.yaml index 64744d0a..25db367c 100644 --- a/recipes/python/flit_core.yaml +++ b/recipes/python/flit_core.yaml @@ -2,6 +2,7 @@ inherit: ["basement::bits::python3-pkg"] metaEnvironment: PKG_VERSION: "3.9.0" + PKG_LICENSE: "BSD-3-Clause" checkoutSCM: scm: url diff --git a/recipes/python/installer.yaml b/recipes/python/installer.yaml index 1fcbbf89..8816f598 100644 --- a/recipes/python/installer.yaml +++ b/recipes/python/installer.yaml @@ -2,6 +2,7 @@ inherit: [patch, "basement::bits::python3-pkg"] metaEnvironment: PKG_VERSION: "0.7.0" + PKG_LICENSE: "MIT" checkoutSCM: scm: url diff --git a/recipes/python/packaging.yaml b/recipes/python/packaging.yaml index 4a13adc1..6b4e4117 100644 --- a/recipes/python/packaging.yaml +++ b/recipes/python/packaging.yaml @@ -2,6 +2,7 @@ inherit: ["python3::flit"] metaEnvironment: PKG_VERSION: "24.1" + PKG_LICENSE: "Apache-2.0 OR BSD-2-Clause" checkoutSCM: scm: url diff --git a/recipes/python/pyproject-hooks.yaml b/recipes/python/pyproject-hooks.yaml index 610a107e..9751296c 100644 --- a/recipes/python/pyproject-hooks.yaml +++ b/recipes/python/pyproject-hooks.yaml @@ -2,6 +2,7 @@ inherit: ["python3::flit"] metaEnvironment: PKG_VERSION: "1.1.0" + PKG_LICENSE: "MIT" checkoutSCM: scm: url diff --git a/recipes/python/python3-pip.yaml b/recipes/python/python3-pip.yaml index ba9a138e..1c325a80 100644 --- a/recipes/python/python3-pip.yaml +++ b/recipes/python/python3-pip.yaml @@ -2,6 +2,7 @@ inherit: [ "python3::build" ] metaEnvironment: PKG_VERSION: "25.0.1" + PKG_LICENSE: "MIT" depends: - python::python3-setuptools diff --git a/recipes/python/python3-setuptools.yaml b/recipes/python/python3-setuptools.yaml index bdd3cefe..221580a9 100644 --- a/recipes/python/python3-setuptools.yaml +++ b/recipes/python/python3-setuptools.yaml @@ -2,6 +2,7 @@ inherit: [patch] metaEnvironment: PKG_VERSION: "75.3.2" + PKG_LICENSE: "MIT" checkoutSCM: scm: url diff --git a/recipes/python/python3.yaml b/recipes/python/python3.yaml index 8b0b880c..2c55f334 100644 --- a/recipes/python/python3.yaml +++ b/recipes/python/python3.yaml @@ -2,6 +2,7 @@ inherit: [autotools, autoconf, make, patch] metaEnvironment: PKG_VERSION: "3.13.2" + PKG_LICENSE: "PSF-2.0" privateEnvironment: APPLY_LIBTOOL_PATCH: "no" diff --git a/recipes/python/wheel.yaml b/recipes/python/wheel.yaml index b2f14d43..84ccee86 100644 --- a/recipes/python/wheel.yaml +++ b/recipes/python/wheel.yaml @@ -2,6 +2,7 @@ inherit: ["python3::flit"] metaEnvironment: PKG_VERSION: "0.44.0" + PKG_LICENSE: "MIT" checkoutSCM: scm: url diff --git a/recipes/utils/bash.yaml b/recipes/utils/bash.yaml index 9d11bf77..b28a55d8 100644 --- a/recipes/utils/bash.yaml +++ b/recipes/utils/bash.yaml @@ -2,6 +2,7 @@ inherit: [autotools, patch] metaEnvironment: PKG_VERSION: "5.3" + PKG_LICENSE: "GPL-3.0-or-later" depends: - libs::ncurses-dev diff --git a/recipes/utils/bc.yaml b/recipes/utils/bc.yaml index 1ddb6d7a..3712d5a6 100644 --- a/recipes/utils/bc.yaml +++ b/recipes/utils/bc.yaml @@ -1,6 +1,7 @@ inherit: [autotools] metaEnvironment: + PKG_LICENSE: "GPL-3.0-only" PKG_VERSION: "1.08.1" checkoutSCM: diff --git a/recipes/utils/bzip2.yaml b/recipes/utils/bzip2.yaml index f6cf8bb6..c7194392 100644 --- a/recipes/utils/bzip2.yaml +++ b/recipes/utils/bzip2.yaml @@ -1,6 +1,7 @@ inherit: [make, install] metaEnvironment: + PKG_LICENSE: "BSD-4-Clause" PKG_VERSION: "1.0.8" checkoutSCM: diff --git a/recipes/utils/file.yaml b/recipes/utils/file.yaml index 80058ed0..4cd0f6f1 100644 --- a/recipes/utils/file.yaml +++ b/recipes/utils/file.yaml @@ -1,6 +1,7 @@ inherit: [autotools] metaEnvironment: + PKG_LICENSE: "BSD-2-Clause" PKG_VERSION: "5.43" checkoutSCM: diff --git a/recipes/utils/findutils.yaml b/recipes/utils/findutils.yaml index 3242b7c0..05fbfd24 100644 --- a/recipes/utils/findutils.yaml +++ b/recipes/utils/findutils.yaml @@ -1,6 +1,7 @@ inherit: [autotools] metaEnvironment: + PKG_LICENSE: "GPL-3.0-or-later" PKG_VERSION: "4.10.0" checkoutSCM: diff --git a/recipes/utils/gawk.yaml b/recipes/utils/gawk.yaml index 9068ce96..4eea37dc 100644 --- a/recipes/utils/gawk.yaml +++ b/recipes/utils/gawk.yaml @@ -1,6 +1,7 @@ inherit: [autotools] metaEnvironment: + PKG_LICENSE: "GPL-3.0-or-later" PKG_VERSION: "5.3.0" depends: diff --git a/recipes/utils/gzip.yaml b/recipes/utils/gzip.yaml index be43c61a..2b16388c 100644 --- a/recipes/utils/gzip.yaml +++ b/recipes/utils/gzip.yaml @@ -1,6 +1,7 @@ inherit: [autotools] metaEnvironment: + PKG_LICENSE: "GPL-3.0-or-later" PKG_VERSION: "1.13" checkoutSCM: diff --git a/recipes/utils/pxargs.yaml b/recipes/utils/pxargs.yaml index 00fde105..f861ce08 100644 --- a/recipes/utils/pxargs.yaml +++ b/recipes/utils/pxargs.yaml @@ -1,3 +1,6 @@ +metaEnvironment: + PKG_LICENSE: "MIT" + # We don't inherit the cpackage class here on purpose! We want to keep the # dependencies to a minimum! buildTools: [target-toolchain] diff --git a/recipes/utils/rsync.yaml b/recipes/utils/rsync.yaml index f28ac424..df27a21e 100644 --- a/recipes/utils/rsync.yaml +++ b/recipes/utils/rsync.yaml @@ -1,6 +1,7 @@ inherit: [autotools] metaEnvironment: + PKG_LICENSE: "GPL-3.0-or-later" PKG_VERSION: "3.3.0" checkoutSCM: diff --git a/recipes/utils/sed.yaml b/recipes/utils/sed.yaml index 107095fd..d15f4d4b 100644 --- a/recipes/utils/sed.yaml +++ b/recipes/utils/sed.yaml @@ -1,6 +1,7 @@ inherit: [autotools] metaEnvironment: + PKG_LICENSE: "GPL-3.0-only" PKG_VERSION: "4.9" checkoutSCM: diff --git a/recipes/utils/tar.yaml b/recipes/utils/tar.yaml index d40aee75..93b6e9b7 100644 --- a/recipes/utils/tar.yaml +++ b/recipes/utils/tar.yaml @@ -1,6 +1,7 @@ inherit: [autotools] metaEnvironment: + PKG_LICENSE: "GPL-3.0-only" PKG_VERSION: "1.35" checkoutSCM: diff --git a/recipes/utils/unzip.yaml b/recipes/utils/unzip.yaml index 86fd335b..c654e3a6 100644 --- a/recipes/utils/unzip.yaml +++ b/recipes/utils/unzip.yaml @@ -1,6 +1,7 @@ inherit: [make, install] metaEnvironment: + PKG_LICENSE: "Info-ZIP" PKG_VERSION: "60" checkoutSCM: diff --git a/recipes/utils/xz-utils.yaml b/recipes/utils/xz-utils.yaml index 64e2befc..0e79b647 100644 --- a/recipes/utils/xz-utils.yaml +++ b/recipes/utils/xz-utils.yaml @@ -1,6 +1,7 @@ inherit: [autotools] metaEnvironment: + PKG_LICENSE: "0BSD AND GPL-2.0-or-later AND LGPL-2.1-or-later" PKG_VERSION: "5.4.6" checkoutSCM: diff --git a/tests/cross-platform/recipes/cmake/greeter.yaml b/tests/cross-platform/recipes/cmake/greeter.yaml index 2bf40866..c310e980 100644 --- a/tests/cross-platform/recipes/cmake/greeter.yaml +++ b/tests/cross-platform/recipes/cmake/greeter.yaml @@ -1,5 +1,8 @@ inherit: [ "basement::rootrecipe", cmake ] +metaEnvironment: + PKG_LICENSE: "MIT" + checkoutSCM: scm: import url: src/greeter/ diff --git a/tests/cross-platform/recipes/cmake/libgreet.yaml b/tests/cross-platform/recipes/cmake/libgreet.yaml index 911348a9..dfefbade 100644 --- a/tests/cross-platform/recipes/cmake/libgreet.yaml +++ b/tests/cross-platform/recipes/cmake/libgreet.yaml @@ -1,5 +1,8 @@ inherit: [cmake] +metaEnvironment: + PKG_LICENSE: "MIT" + depends: - cmake::libholler-dev - use: [] diff --git a/tests/cross-platform/recipes/cmake/libholler.yaml b/tests/cross-platform/recipes/cmake/libholler.yaml index 29dce809..94407cc6 100644 --- a/tests/cross-platform/recipes/cmake/libholler.yaml +++ b/tests/cross-platform/recipes/cmake/libholler.yaml @@ -1,5 +1,8 @@ inherit: [cmake] +metaEnvironment: + PKG_LICENSE: "MIT" + checkoutSCM: scm: import url: src/libholler/ diff --git a/tests/linux/recipes/meson/greeter.yaml b/tests/linux/recipes/meson/greeter.yaml index d8718c12..1826c92d 100644 --- a/tests/linux/recipes/meson/greeter.yaml +++ b/tests/linux/recipes/meson/greeter.yaml @@ -1,5 +1,8 @@ inherit: [ "basement::rootrecipe", meson ] +metaEnvironment: + PKG_LICENSE: "MIT" + root: !expr | "${BOB_HOST_PLATFORM}" == "linux" diff --git a/tests/linux/recipes/meson/libgreet.yaml b/tests/linux/recipes/meson/libgreet.yaml index 73a47798..f7043e2a 100644 --- a/tests/linux/recipes/meson/libgreet.yaml +++ b/tests/linux/recipes/meson/libgreet.yaml @@ -1,5 +1,8 @@ inherit: [meson] +metaEnvironment: + PKG_LICENSE: "MIT" + depends: - meson::libholler-dev - use: [] diff --git a/tests/linux/recipes/meson/libholler.yaml b/tests/linux/recipes/meson/libholler.yaml index d972cf12..009a76c6 100644 --- a/tests/linux/recipes/meson/libholler.yaml +++ b/tests/linux/recipes/meson/libholler.yaml @@ -1,5 +1,8 @@ inherit: [meson] +metaEnvironment: + PKG_LICENSE: "MIT" + checkoutSCM: scm: import url: src/libholler/