All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Support cargo crate fetcher for externalsrc
       [not found] <CGME20220519082813epcas2p356d33ae7937121d474fcf409d70cbd51@epcas2p3.samsung.com>
@ 2022-05-19  8:28 ` Chanho Park
       [not found]   ` <CGME20220519082813epcas2p367c8f9a368328c9ae6030ee804b91d3e@epcas2p3.samsung.com>
       [not found]   ` <CGME20220519082813epcas2p39cf1b2a4d20c8c7c8c0ae48955a50ac8@epcas2p3.samsung.com>
  0 siblings, 2 replies; 3+ messages in thread
From: Chanho Park @ 2022-05-19  8:28 UTC (permalink / raw)
  To: openembedded-devel, Richard Purdie, Randy MacLeod, openembedded-core
  Cc: Chanho Park

When we use externalsrc.bbclass with devtool, it is not possible to
fetch crates via bb/fetch2/crate.py even though crate:// is defined in
SRC_URI. To be working with externalsrc, we should not remove from
externalsrc and remove "-z ${EXTERNALSRC}" check from
cargo_common.bbclass.

Chanho Park (2):
  externalsrc.bbclass: support crate fetcher on externalsrc
  cargo_common.bbclass: enable bitbake vendoring for externalsrc

 meta/classes/cargo_common.bbclass | 2 +-
 meta/classes/externalsrc.bbclass  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.36.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] externalsrc.bbclass: support crate fetcher on externalsrc
       [not found]   ` <CGME20220519082813epcas2p367c8f9a368328c9ae6030ee804b91d3e@epcas2p3.samsung.com>
@ 2022-05-19  8:29     ` Chanho Park
  0 siblings, 0 replies; 3+ messages in thread
From: Chanho Park @ 2022-05-19  8:29 UTC (permalink / raw)
  To: openembedded-devel, Richard Purdie, Randy MacLeod, openembedded-core
  Cc: Chanho Park

To support crate:// fetcher on externalsrc, we need to make pass-through
the URIs in SRC_URI.

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
---
 meta/classes/externalsrc.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass
index b2f216f361d1..90792a737b1b 100644
--- a/meta/classes/externalsrc.bbclass
+++ b/meta/classes/externalsrc.bbclass
@@ -68,7 +68,7 @@ python () {
             url_data = fetch.ud[url]
             parm = url_data.parm
             if (url_data.type == 'file' or
-                    url_data.type == 'npmsw' or
+                    url_data.type == 'npmsw' or url_data.type == 'crate' or
                     'type' in parm and parm['type'] == 'kmeta'):
                 local_srcuri.append(url)
 
-- 
2.36.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] cargo_common.bbclass: enable bitbake vendoring for externalsrc
       [not found]   ` <CGME20220519082813epcas2p39cf1b2a4d20c8c7c8c0ae48955a50ac8@epcas2p3.samsung.com>
@ 2022-05-19  8:29     ` Chanho Park
  0 siblings, 0 replies; 3+ messages in thread
From: Chanho Park @ 2022-05-19  8:29 UTC (permalink / raw)
  To: openembedded-devel, Richard Purdie, Randy MacLeod, openembedded-core
  Cc: Chanho Park

To support crate:// fetcher on externalsrc, we need to remove "-z
${EXTERNALSRC} check of bitbake vendoring. It is possible to disable
vendoring by CARGO_DISABLE_BITBAKE_VENDORING = "1" if externalsrc-ed
project does not want to enablt it.

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
---
 meta/classes/cargo_common.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/cargo_common.bbclass b/meta/classes/cargo_common.bbclass
index 90fad7541530..39f32829fd44 100644
--- a/meta/classes/cargo_common.bbclass
+++ b/meta/classes/cargo_common.bbclass
@@ -45,7 +45,7 @@ cargo_common_do_configure () {
 	directory = "${CARGO_VENDORING_DIRECTORY}"
 	EOF
 
-	if [ -z "${EXTERNALSRC}" ] && [ ${CARGO_DISABLE_BITBAKE_VENDORING} = "0" ]; then
+	if [ ${CARGO_DISABLE_BITBAKE_VENDORING} = "0" ]; then
 		cat <<- EOF >> ${CARGO_HOME}/config
 
 		[source.crates-io]
-- 
2.36.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-19  8:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20220519082813epcas2p356d33ae7937121d474fcf409d70cbd51@epcas2p3.samsung.com>
2022-05-19  8:28 ` [PATCH 0/2] Support cargo crate fetcher for externalsrc Chanho Park
     [not found]   ` <CGME20220519082813epcas2p367c8f9a368328c9ae6030ee804b91d3e@epcas2p3.samsung.com>
2022-05-19  8:29     ` [PATCH 1/2] externalsrc.bbclass: support crate fetcher on externalsrc Chanho Park
     [not found]   ` <CGME20220519082813epcas2p39cf1b2a4d20c8c7c8c0ae48955a50ac8@epcas2p3.samsung.com>
2022-05-19  8:29     ` [PATCH 2/2] cargo_common.bbclass: enable bitbake vendoring for externalsrc Chanho Park

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.