Skip to contentSkip to conversation

meta-cloud-services: remove invalid S settings

PATCH In review [email protected] 2 participants 3 messages Jul 16, 2025 – Jul 17, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meta-cloud-services: remove invalid S settings

From: Chen Qi <[email protected]>

Due to recent oe-core's change about UNPACKDIR/S, these settings are no longer valid and are causing errors.

The git fetcher in bitbake now defaults to fetch git source to be under /${BP} instead of /git. So using '/git' is no longer valid.

In addition, S now locates under ${UNPACKDIR} instead of ${WORKDIR}.

So the default value of S (S = "${UNPACKDIR}/${BP}" from bitbake.conf) is already enough and do not need any further settings for these git recipes.

---
 recipes-connectivity/consul/consul-migrate_git.bb          | 1 -
 recipes-connectivity/consul/consul_git.bb                  | 1 -
 recipes-connectivity/serf/hashicorp-serf_0.9.4.bb          | 1 -
 recipes-devtools/python/python-ansible.inc                 | 1 -
 recipes-support/puppet-vswitch/puppet-vswitch_git.bb       | 1 -
 recipes-support/puppetlabs-stdlib/puppetlabs-stdlib_git.bb | 1 -
 recipes-support/ruby-shadow/ruby-shadow_git.bb             | 1 -
 7 files changed, 7 deletions(-)
recipes-connectivity/consul/consul-migrate_git.bb +0 -1
index 1393c912..3c9518ee 100644
@@ -7,7 +7,6 @@ GO_IMPORT = "github.com/hashicorp/consul-migrate"
 SRC_URI = "https://${GO_IMPORT}.git;branch=master"
 SRCREV = "678fb10cdeae25ab309e99e655148f0bf65f9710"
 
-S = "${WORKDIR}/git"
 
 SRCREV_raft = "057b893fd996696719e98b6c44649ea14968c811"
 SRCREV_go-metrics = "f303b03b91d770a11a39677f1d3b55da4002bbcb"
recipes-connectivity/consul/consul_git.bb +0 -1
index 0d084b0d..3dceb9d8 100644
@@ -10,7 +10,6 @@ SRC_URI = "git://${GO_IMPORT}.git;branch=main;protocol=https \
            file://consul.service \
           "
 
-S = "${WORKDIR}/git"
 
 RDEPENDS:${PN}-dev:append = " bash"
 
recipes-connectivity/serf/hashicorp-serf_0.9.4.bb +0 -1
index 8318400d..e46acbdc 100644
@@ -22,7 +22,6 @@ SRC_URI = "git://${GO_IMPORT}.git;protocol=https;branch=master"
 PV = "0.8.5+git${SRCPV}"
 SRCREV = "1d3fdf93bbe5002c5023da50402368a817488691"
 
-S = "${WORKDIR}/git"
 
 inherit go
 
recipes-devtools/python/python-ansible.inc +0 -1
index 4bb90cb7..737daa9a 100644
@@ -10,7 +10,6 @@ SRC_URI = "git://github.com/ansible/ansible.git;protocol=https;branch=stable-2.1
 
 SRCREV = "dc0e3bd16cc7ded081bc46c88e4e3d1997ca9bb0"
 
-S = "${WORKDIR}/git"
 
 ANSIBLE_WHITELIST_MODULES ?= "commands files system network/ovs __pycache__ service"
 
recipes-support/puppet-vswitch/puppet-vswitch_git.bb +0 -1
index b2413283..6b282168 100644
@@ -16,7 +16,6 @@ inherit rubyv2
 GEM_NAME = "puppetlabs-std"
 GEM_SPEC_FILE = "puppet-vswitch.gemspec"
 
-S = "${WORKDIR}/git"
 
 DEPENDS += " \
         ruby \
recipes-support/puppetlabs-stdlib/puppetlabs-stdlib_git.bb +0 -1
index 8a3c1def..1132f6be 100644
@@ -16,7 +16,6 @@ inherit rubyv2
 GEM_NAME = "puppetlabs-std"
 GEM_SPEC_FILE = "puppetlabs-stdlib.gemspec"
 
-S = "${WORKDIR}/git"
 
 DEPENDS += " \
         ruby \
recipes-support/ruby-shadow/ruby-shadow_git.bb +0 -1
index 9a82a5bd..c9251aa3 100644
@@ -10,7 +10,6 @@ SRC_URI = "git://github.com/apalmblad/ruby-shadow.git;branch=master;protocol=htt
            file://extconf.rb"
 
 SRCREV = "f135b3fd52d0a638f2eb9b17a8952a7f0f317688"
-S = "${WORKDIR}/git"
 
 inherit ruby
 
Signature · 1 line
2.34.1
#1 lore raw
Quoted 5 lines · Chen Qi via lists.yoctoproject.org

From: Chen Qi <[email protected]>

Due to recent oe-core's change about UNPACKDIR/S, these settings are no longer valid and are causing errors.

Quoted 9 lines

The git fetcher in bitbake now defaults to fetch git source to be under /${BP} instead of /git. So using '/git' is no longer valid.

In addition, S now locates under ${UNPACKDIR} instead of ${WORKDIR}.

So the default value of S (S = "${UNPACKDIR}/${BP}" from bitbake.conf) is already enough and do not need any further settings for these git recipes.

Ooops. My mistake on this, I was so busy doing the package uprevs in meta-virt,
that I forgot to commit and push my changes to m-c-s.

I'll check mine against this and take care of it shortly.

Bruce

Quoted 123 lines
---
 recipes-connectivity/consul/consul-migrate_git.bb          | 1 -
 recipes-connectivity/consul/consul_git.bb                  | 1 -
 recipes-connectivity/serf/hashicorp-serf_0.9.4.bb          | 1 -
 recipes-devtools/python/python-ansible.inc                 | 1 -
 recipes-support/puppet-vswitch/puppet-vswitch_git.bb       | 1 -
 recipes-support/puppetlabs-stdlib/puppetlabs-stdlib_git.bb | 1 -
 recipes-support/ruby-shadow/ruby-shadow_git.bb             | 1 -
 7 files changed, 7 deletions(-)
recipes-connectivity/consul/consul-migrate_git.bb +0 -1
index 1393c912..3c9518ee 100644
@@ -7,7 +7,6 @@ GO_IMPORT = "github.com/hashicorp/consul-migrate"
 SRC_URI = "https://${GO_IMPORT}.git;branch=master"
 SRCREV = "678fb10cdeae25ab309e99e655148f0bf65f9710"
 
-S = "${WORKDIR}/git"
 
 SRCREV_raft = "057b893fd996696719e98b6c44649ea14968c811"
 SRCREV_go-metrics = "f303b03b91d770a11a39677f1d3b55da4002bbcb"
recipes-connectivity/consul/consul_git.bb +0 -1
index 0d084b0d..3dceb9d8 100644
@@ -10,7 +10,6 @@ SRC_URI =
 "git://${GO_IMPORT}.git;branch=main;protocol=https \
            file://consul.service \
           "
 
-S = "${WORKDIR}/git"
 
 RDEPENDS:${PN}-dev:append = " bash"
recipes-connectivity/serf/hashicorp-serf_0.9.4.bb +0 -0
index 8318400d..e46acbdc 100644
@@ -22,7 +22,6 @@ SRC_URI =

"git://${GO_IMPORT}.git;protocol=https;branch=master"
PV = "0.8.5+git${SRCPV}"
SRCREV = "1d3fdf93bbe5002c5023da50402368a817488691"

recipes-connectivity/serf/hashicorp-serf_0.9.4.bb +0 -1
-S = "${WORKDIR}/git"
 
 inherit go
recipes-devtools/python/python-ansible.inc +0 -0
index 4bb90cb7..737daa9a 100644
@@ -10,7 +10,6 @@ SRC_URI = "git://

github.com/ansible/ansible.git;protocol=https;branch=stable-2.1

SRCREV = "dc0e3bd16cc7ded081bc46c88e4e3d1997ca9bb0"

-S = "${WORKDIR}/git"

ANSIBLE_WHITELIST_MODULES ?= "commands files system network/ovs
__pycache__ service"

recipes-support/puppet-vswitch/puppet-vswitch_git.bb +0 -1
index b2413283..6b282168 100644
@@ -16,7 +16,6 @@ inherit rubyv2
 GEM_NAME = "puppetlabs-std"
 GEM_SPEC_FILE = "puppet-vswitch.gemspec"
 
-S = "${WORKDIR}/git"
 
 DEPENDS += " \
         ruby \
recipes-support/puppetlabs-stdlib/puppetlabs-stdlib_git.bb +0 -1
index 8a3c1def..1132f6be 100644
@@ -16,7 +16,6 @@ inherit rubyv2
 GEM_NAME = "puppetlabs-std"
 GEM_SPEC_FILE = "puppetlabs-stdlib.gemspec"
 
-S = "${WORKDIR}/git"
 
 DEPENDS += " \
         ruby \
recipes-support/ruby-shadow/ruby-shadow_git.bb +0 -0
index 9a82a5bd..c9251aa3 100644
@@ -10,7 +10,6 @@ SRC_URI = "git://

github.com/apalmblad/ruby-shadow.git;branch=master;protocol=htt

            file://extconf.rb"

SRCREV = "f135b3fd52d0a638f2eb9b17a8952a7f0f317688"
-S = "${WORKDIR}/git"

inherit ruby

--
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#9309):
https://lists.yoctoproject.org/g/meta-virtualization/message/9309
Mute This Topic: https://lists.yoctoproject.org/mt/114180711/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
author
#2 lore raw

Got it. Thanks a lot.

Regards,
Qi

From: Bruce Ashfield <[email protected]>
Sent: Wednesday, July 16, 2025 9:21 PM
To: Chen, Qi <[email protected]>
Cc: [email protected]
Subject: Re: [meta-virtualization][m-c-s][PATCH] meta-cloud-services: remove invalid S settings

On Wed, Jul 16, 2025 at 2:00 AM Chen Qi via lists.yoctoproject.org<https://urldefense.com/v3/__http:/lists.yoctoproject.org__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriOKAUEyxw$> <[email protected]<mailto:[email protected]>> wrote:
From: Chen Qi <[email protected]<mailto:[email protected]>>

Due to recent oe-core's change about UNPACKDIR/S, these settings are no longer valid and are causing errors.

The git fetcher in bitbake now defaults to fetch git source to be under /${BP} instead of /git. So using '/git' is no longer valid.

In addition, S now locates under ${UNPACKDIR} instead of ${WORKDIR}.

So the default value of S (S = "${UNPACKDIR}/${BP}" from bitbake.conf) is already enough and do not need any further settings for these git recipes.

Ooops. My mistake on this, I was so busy doing the package uprevs in meta-virt, that I forgot to commit and push my changes to m-c-s.

I'll check mine against this and take care of it shortly.

Bruce

---
 recipes-connectivity/consul/consul-migrate_git.bb<https://urldefense.com/v3/__http:/consul-migrate_git.bb__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriPAMLJxnQ$>          | 1 -
 recipes-connectivity/consul/consul_git.bb<https://urldefense.com/v3/__http:/consul_git.bb__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriP6A7tnvQ$>                  | 1 -
 recipes-connectivity/serf/hashicorp-serf_0.9.4.bb<https://urldefense.com/v3/__http:/hashicorp-serf_0.9.4.bb__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriP_xqUIzQ$>          | 1 -
 recipes-devtools/python/python-ansible.inc<https://urldefense.com/v3/__http:/python-ansible.inc__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriMSLDb2xg$>                 | 1 -
 recipes-support/puppet-vswitch/puppet-vswitch_git.bb<https://urldefense.com/v3/__http:/puppet-vswitch_git.bb__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriO6DzcbAQ$>       | 1 -
 recipes-support/puppetlabs-stdlib/puppetlabs-stdlib_git.bb<https://urldefense.com/v3/__http:/puppetlabs-stdlib_git.bb__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriNo_1HLyg$> | 1 -
 recipes-support/ruby-shadow/ruby-shadow_git.bb<https://urldefense.com/v3/__http:/ruby-shadow_git.bb__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriMLk4jOyg$>             | 1 -
 7 files changed, 7 deletions(-)
recipes-connectivity/consul/consul-migrate_git.bb<https://urldefense.com/v3/__http:/consul-migrate_git.bb__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriPAMLJxnQ$> +0 -1
index 1393c912..3c9518ee 100644
@@ -7,7 +7,6 @@ GO_IMPORT = "github.com/hashicorp/consul-migrate<https://urldefense.com/v3/__http:/github.com/hashicorp/consul-migrate__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriMo0mR98g$>"
 SRC_URI = "https://${GO_IMPORT}.git;branch=master<https://urldefense.com/v3/__https:/$*7BGO_IMPORT*7D.git;branch=master__;JSU!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriN4Z0velA$>"
 SRCREV = "678fb10cdeae25ab309e99e655148f0bf65f9710"
 
-S = "${WORKDIR}/git"
 
 SRCREV_raft = "057b893fd996696719e98b6c44649ea14968c811"
 SRCREV_go-metrics = "f303b03b91d770a11a39677f1d3b55da4002bbcb"
recipes-connectivity/consul/consul_git.bb<https://urldefense.com/v3/__http:/consul_git.bb__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriP6A7tnvQ$> +0 -1
index 0d084b0d..3dceb9d8 100644
@@ -10,7 +10,6 @@ SRC_URI = "git://${GO_IMPORT}.git;branch=main;protocol=https \
            file://consul.service \
           "
 
-S = "${WORKDIR}/git"
 
 RDEPENDS:${PN}-dev:append = " bash"
 
recipes-connectivity/serf/hashicorp-serf_0.9.4.bb<https://urldefense.com/v3/__http:/hashicorp-serf_0.9.4.bb__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriP_xqUIzQ$> +0 -1
index 8318400d..e46acbdc 100644
@@ -22,7 +22,6 @@ SRC_URI = "git://${GO_IMPORT}.git;protocol=https;branch=master"
 PV = "0.8.5+git${SRCPV}"
 SRCREV = "1d3fdf93bbe5002c5023da50402368a817488691"
 
-S = "${WORKDIR}/git"
 
 inherit go
 
recipes-devtools/python/python-ansible.inc<https://urldefense.com/v3/__http:/python-ansible.inc__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriMSLDb2xg$> +0 -1
index 4bb90cb7..737daa9a 100644
@@ -10,7 +10,6 @@ SRC_URI = "git://github.com/ansible/ansible.git;protocol=https;branch=stable-2.1<https://urldefense.com/v3/__http:/github.com/ansible/ansible.git;protocol=https;branch=stable-2.1__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriNm2dFYKQ$>
 
 SRCREV = "dc0e3bd16cc7ded081bc46c88e4e3d1997ca9bb0"
 
-S = "${WORKDIR}/git"
 
 ANSIBLE_WHITELIST_MODULES ?= "commands files system network/ovs __pycache__ service"
 
recipes-support/puppet-vswitch/puppet-vswitch_git.bb<https://urldefense.com/v3/__http:/puppet-vswitch_git.bb__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriO6DzcbAQ$> +0 -1
index b2413283..6b282168 100644
@@ -16,7 +16,6 @@ inherit rubyv2
 GEM_NAME = "puppetlabs-std"
 GEM_SPEC_FILE = "puppet-vswitch.gemspec"
 
-S = "${WORKDIR}/git"
 
 DEPENDS += " \
         ruby \
recipes-support/puppetlabs-stdlib/puppetlabs-stdlib_git.bb<https://urldefense.com/v3/__http:/puppetlabs-stdlib_git.bb__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriNo_1HLyg$> +0 -1
index 8a3c1def..1132f6be 100644
@@ -16,7 +16,6 @@ inherit rubyv2
 GEM_NAME = "puppetlabs-std"
 GEM_SPEC_FILE = "puppetlabs-stdlib.gemspec"
 
-S = "${WORKDIR}/git"
 
 DEPENDS += " \
         ruby \
recipes-support/ruby-shadow/ruby-shadow_git.bb<https://urldefense.com/v3/__http:/ruby-shadow_git.bb__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriMLk4jOyg$> +0 -1
index 9a82a5bd..c9251aa3 100644
@@ -10,7 +10,6 @@ SRC_URI = "git://github.com/apalmblad/ruby-shadow.git;branch=master;protocol=htt<https://urldefense.com/v3/__http:/github.com/apalmblad/ruby-shadow.git;branch=master;protocol=htt__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriPDx077hw$>
            file://extconf.rb"
 
 SRCREV = "f135b3fd52d0a638f2eb9b17a8952a7f0f317688"
-S = "${WORKDIR}/git"
 
 inherit ruby
 

--
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9309): https://lists.yoctoproject.org/g/meta-virtualization/message/9309<https://urldefense.com/v3/__https:/lists.yoctoproject.org/g/meta-virtualization/message/9309__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriMOzCaO9g$>
Mute This Topic: https://lists.yoctoproject.org/mt/114180711/1050810<https://urldefense.com/v3/__https:/lists.yoctoproject.org/mt/114180711/1050810__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriN4qccXwA$>
Group Owner: [email protected]<mailto:meta-virtualization%[email protected]>
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub<https://urldefense.com/v3/__https:/lists.yoctoproject.org/g/meta-virtualization/unsub__;!!AjveYdw8EvQ!eaUNLnJD-Tl3hatT_w6NHi3ChAD67uvm4lKkbeJy6SQGSP5W2Cml3vWQ648dwWc9911j64wqzz4BphUqriNGbUsKKA$> [[email protected]<mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-

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