Skip to contentSkip to conversation

docker-distribution: allow empty packages

PATCH In review Yi Zhao 2 participants 2 messages Sep 2, 2021

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 docker-distribution: allow empty packages

Allow to create empty packages for docker-distribution and
docker-distribution-dev to fix the do_populate_sdk error:
Error: nothing provides docker-distribution = v2.7.1-r0 needed by docker-distribution-dev-v2.7.1-r0.core2_64

---
 .../docker-distribution/docker-distribution_git.bb             | 3 +++
 1 file changed, 3 insertions(+)
recipes-containers/docker-distribution/docker-distribution_git.bb +3 -0
index 1f6334f..6e93a21 100644
@@ -72,3 +72,6 @@ SYSTEMD_AUTO_ENABLE:docker-registry = "enable"
 RDEPENDS:${PN}-ptest:remove = "${PN}"
 
 CVE_PRODUCT = "docker_registry"
+
+ALLOW_EMPTY:${PN} = "1"
+ALLOW_EMPTY:${PN}-dev = "1"
Signature · 1 line
2.25.1
#1 lore raw

${PN}-dev already isn't empty when you get the "needed by docker-distribution-dev-v2.7.1-r0.core2_64" message right?

and for empty ${PN}, why don't you set RDEPENDS:${PN}-dev to be empty instead? empty packages are useless.

Quoted 30 lines · Yi Zhao

Allow to create empty packages for docker-distribution and docker-distribution-dev to fix the do_populate_sdk error:
Error: nothing provides docker-distribution = v2.7.1-r0 needed by docker-distribution-dev-v2.7.1-r0.core2_64

---
 .../docker-distribution/docker-distribution_git.bb             | 3 +++
 1 file changed, 3 insertions(+)
(quoted diff) +0 -0

docker-distribution_git.bb b/recipes-containers/docker-distribution/ docker-distribution_git.bb
index 1f6334f..6e93a21 100644

recipes-containers/docker-distribution/docker-distribution_git.bb +3 -1
@@ -72,3 +72,6 @@ SYSTEMD_AUTO_ENABLE:docker-registry = "enable"
 RDEPENDS:${PN}-ptest:remove = "${PN}"
 
 CVE_PRODUCT = "docker_registry"
+
+ALLOW_EMPTY:${PN} = "1"
+ALLOW_EMPTY:${PN}-dev = "1"
--

2.25.1