All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christos Gavros" <gavrosc@yahoo.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] sanity: check variable GO_IMPORT
Date: Thu, 27 Feb 2025 05:15:16 -0800	[thread overview]
Message-ID: <31891.1740662116747258381@lists.openembedded.org> (raw)
In-Reply-To: <30396.1740564040195102040@lists.openembedded.org>

[-- Attachment #1: Type: text/plain, Size: 1323 bytes --]

hi Richard

I have added the code as you suggested in go.bbclass and then i created meta-mylayer and try to build there " go-helloworld_0.1.bb". It builds fine.

When i commented GO_IMPORT in the recipe the error i am getting is:

ERROR: ExpansionError during parsing /home/cg/CG/Programming/Yocto/poky/meta-mylayer/recipes-go/go-helloworld/go-helloworld.bb             | ETA:  --:--:--
bb.data_smart.ExpansionError: Failure expanding variable GO_SRCURI_DESTSUFFIX, expression was ${@os.path.join(os.path.basename(d.getVar('S')), 'src', d.getVar('GO_IMPORT')) + '/'} which triggered exception TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType'
The variable dependency chain for the failure is: GO_SRCURI_DESTSUFFIX -> SRC_URI

This is caused from this line in the recipe: SRC_URI = " git://go.googlesource.com/example;branch=master;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX} ( git://go.googlesource.com/example;branch=master;protocol=https;destsuffix=$%7BGO_SRCURI_DESTSUFFIX%7D ) "

So it looks that expanding GO_SRCURI_DESTSUFFIX variable is executed before anonymous python function and the error "GO_IMPORT is not set" will not be generated.

If you don't have anything to comment , I will try to dive deeper and see how I can adapt it...

Br
Christos

[-- Attachment #2: Type: text/html, Size: 11061 bytes --]

  reply	other threads:[~2025-02-27 13:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20250225180939.21341-1-gavrosc.ref@yahoo.com>
2025-02-25 18:09 ` [PATCH] sanity: check variable GO_IMPORT Christos Gavros
2025-02-25 20:33   ` Randy MacLeod
2025-02-25 20:37     ` Christos Gavros
2025-02-25 22:43     ` [OE-core] " Richard Purdie
2025-02-26 10:00       ` Christos Gavros
2025-02-27 13:15         ` Christos Gavros [this message]
2025-02-27 13:20           ` [OE-core] " Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=31891.1740662116747258381@lists.openembedded.org \
    --to=gavrosc@yahoo.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.