Skip to contentSkip to conversation

Fix up SPDX deploy errors

PATCH Applied Joshua Watt 2 participants 2 messages Nov 12 – Nov 16

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix up SPDX deploy errors

do_deploy tasks now generate SPDX output for files that are placed in the deploy directory; however SPDX must be told if it is expected that do_deploy will not produce any files by setting SPDX_DEPLOY_ALLOW_EMPTY:task-deploy = "1"

Several recipes in meta-virtualization have do_deploy tasks that may not produce any output, so mark these tasks to prevent them from generating errors.

---
 classes/container-bundle.bbclass   | 1 +
 classes/oci-multiarch.bbclass      | 1 +
 recipes-extended/xen/xen-tools.inc | 1 +
 3 files changed, 3 insertions(+)
classes/container-bundle.bbclass +1 -0
index 25f1a1e2..7377f0fb 100644
@@ -637,3 +637,4 @@ do_deploy[dirs] = "${DEPLOYDIR}"
 
 # Only add sstate for deploy when enabled
 SSTATE_SKIP_CREATION:task-deploy = "${@'' if d.getVar('CONTAINER_BUNDLE_DEPLOY') == '1' else '1'}"
+SPDX_DEPLOY_ALLOW_EMPTY:task-deploy = "1"
classes/oci-multiarch.bbclass +1 -0
index 43944afc..b92e13d8 100644
@@ -272,5 +272,6 @@ python do_deploy() {
 }
 
 addtask do_deploy after do_create_multiarch_index before do_build
+SPDX_DEPLOY_ALLOW_EMPTY:task-deploy = "1"
 
 EXCLUDE_FROM_WORLD = "1"
recipes-extended/xen/xen-tools.inc +1 -0
index f38cabc2..0e46f289 100644
@@ -954,3 +954,4 @@ do_deploy() {
 # - add the task before do_build to ensure that deployment has completed when
 #   the recipe build done stamp is written
 addtask deploy after do_install do_populate_sysroot before do_build
+SPDX_DEPLOY_ALLOW_EMPTY:task-deploy = "1"
Signature · 1 line
2.56.1
#1 lore raw

applied to master-next.

Bruce

Quoted 64 lines · Joshua Watt via meta-virtualization

do_deploy tasks now generate SPDX output for files that are placed in the deploy directory; however SPDX must be told if it is expected that do_deploy will not produce any files by setting SPDX_DEPLOY_ALLOW_EMPTY:task-deploy = "1"

Several recipes in meta-virtualization have do_deploy tasks that may not produce any output, so mark these tasks to prevent them from generating errors.

---
 classes/container-bundle.bbclass   | 1 +
 classes/oci-multiarch.bbclass      | 1 +
 recipes-extended/xen/xen-tools.inc | 1 +
 3 files changed, 3 insertions(+)
classes/container-bundle.bbclass +0 -0
index 25f1a1e2..7377f0fb 100644
@@ -637,3 +637,4 @@ do_deploy[dirs] = "${DEPLOYDIR}"
 
 # Only add sstate for deploy when enabled
 SSTATE_SKIP_CREATION:task-deploy = "${@'' if

d.getVar('CONTAINER_BUNDLE_DEPLOY') == '1' else '1'}"

classes/container-bundle.bbclass +1 -0
+SPDX_DEPLOY_ALLOW_EMPTY:task-deploy = "1"
classes/oci-multiarch.bbclass +1 -0
index 43944afc..b92e13d8 100644
@@ -272,5 +272,6 @@ python do_deploy() {
 }
 
 addtask do_deploy after do_create_multiarch_index before do_build
+SPDX_DEPLOY_ALLOW_EMPTY:task-deploy = "1"
 
 EXCLUDE_FROM_WORLD = "1"
recipes-extended/xen/xen-tools.inc +0 -0
index f38cabc2..0e46f289 100644
@@ -954,3 +954,4 @@ do_deploy() {
 # - add the task before do_build to ensure that deployment has completed

when
# the recipe build done stamp is written
addtask deploy after do_install do_populate_sysroot before do_build
+SPDX_DEPLOY_ALLOW_EMPTY:task-deploy = "1"
--
2.56.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#10166):
https://lists.yoctoproject.org/g/meta-virtualization/message/10166
Mute This Topic: https://lists.yoctoproject.org/mt/122231710/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II