From: Vitaly Kuznetsov on gitlab.com
Merge Request: https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2648
Be more picky about kernel's source code licenses:
- Keep track of all currently used license in specfile template.
- Add a selftest which checks all currently present license identifiers
against License:.
Signed-off-by: Vitaly Kuznetsov <vkuznets(a)redhat.com>
---
redhat/scripts/kspdx-tool/kspdx.py | 225 +++++++++++++++++++++++++++++++
redhat/self-test/1007-spdx-licenses.bats | 60 ++++++++
redhat/Makefile | 10 +
redhat/kernel.spec.template | 9 +-
4 files changed, 296 insertions(+), 8 deletions(-)
From: Vitaly Kuznetsov on gitlab.com
Merge Request: https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2648
Be more picky about kernel's source code licenses:
- Keep track of all currently used license in redhat/LICENSES and use that for
the License: fields in the specfile.
- Add a selftest which checks all currently present license identifiers with
redhat/LICENSES.
Signed-off-by: Vitaly Kuznetsov <vkuznets(a)redhat.com>
---
redhat/scripts/kspdx-tool/kspdx.py | 224 +++++++++++++++++++++++++++++++
redhat/self-test/1007-spdx-licenses.bats | 54 +++++++
redhat/Makefile | 10 +
redhat/kernel.spec.template | 9 +-
4 files changed, 289 insertions(+), 8 deletions(-)
From: Vitaly Kuznetsov on gitlab.com
Merge Request: https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2648
Be more picky about kernel's source code licenses:
- Keep track of all currently used license in specfile template.
- Add a selftest which checks all currently present license identifiers
against License:.
Signed-off-by: Vitaly Kuznetsov <vkuznets(a)redhat.com>
---
redhat/scripts/kspdx-tool/kspdx.py | 225 +++++++++++++++++++++++++++++++
redhat/self-test/1007-spdx-licenses.bats | 60 ++++++++
redhat/Makefile | 10 +
redhat/kernel.spec.template | 9 +-
4 files changed, 296 insertions(+), 8 deletions(-)
From: Don Zickus <dzickus(a)redhat.com>
Fix tarball creation logic
The create tarball logic tried to determine if the tarball existed or
not by using a git sha. However the check always failed because the
current sha was shortened and the tarball sha was the full 40 digits.
Correct this by converting the shortened sha into the full sha so the
comparison actually works.
Signed-off-by: Don Zickus <dzickus(a)redhat.com>
diff --git a/redhat/scripts/create-tarball.sh b/redhat/scripts/create-tarball.sh
index blahblah..blahblah 100755
--- a/redhat/scripts/create-tarball.sh
+++ b/redhat/scripts/create-tarball.sh
@@ -9,6 +9,9 @@ XZ_THREADS="--threads $RHJOBS"
ARCH=$(arch)
XZ_OPTIONS=""
+# convert from shortened git sha to standard 40 digit git sha
+_GITID="$(git rev-parse "$_GITID")"
+
if [ "$ARCH" != "x86_64" ]
then
XZ_OPTIONS="-M 3G"
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2658
From: Don Zickus <dzickus(a)redhat.com>
Fix tarball creation logic
The create tarball logic tried to determine if the tarball existed or
not by using a git sha. However the check always failed because the
current sha was shortened and the tarball sha was the full 40 digits.
Correct this by converting the shortened sha into the full sha so the
comparison actually works.
Signed-off-by: Don Zickus <dzickus(a)redhat.com>
diff --git a/redhat/scripts/create-tarball.sh b/redhat/scripts/create-tarball.sh
index blahblah..blahblah 100755
--- a/redhat/scripts/create-tarball.sh
+++ b/redhat/scripts/create-tarball.sh
@@ -9,6 +9,9 @@ XZ_THREADS="--threads $RHJOBS"
ARCH=$(arch)
XZ_OPTIONS=""
+# turn from shorten sha to 40 digit sha
+_GITID="$(git rev-parse "$_GITID")"
+
if [ "$ARCH" != "x86_64" ]
then
XZ_OPTIONS="-M 3G"
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2658