From: "Yoann Congal" <yoann.congal@smile.fr>
To: <emzei.j@gmail.com>, <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [BUG][scarthgap] SPDX 3.0: NameError when SPDX_CUSTOM_ANNOTATION_VARS is set
Date: Thu, 10 Sep 2026 15:33:20 +0200 [thread overview]
Message-ID: <DLBOAXWM0XB3.I2UNWZWB9X75@smile.fr> (raw)
In-Reply-To: <ED0527D7-E28C-432C-99E2-D8AF19330D85@gmail.com>
On Thu Sep 10, 2026 at 10:39 AM CEST, 전민지 via lists.openembedded.org wrote:
>
>
> Hello,
>
> While investigating SPDX 3.0 annotation generation on the scarthgap
> branch, I noticed a difference between scarthgap and master in how
> SPDX_CUSTOM_ANNOTATION_VARS is handled in spdx30_tasks.py.
>
> In scarthgap (meta/lib/oe/spdx30_tasks.py, around line 520):
>
> new_annotation(
> d,
> build_objset,
> build,
> "%s=%s" % (var, d.getVar(var)),
> oe.spdx30.AnnotationType.other,
> )
>
> In master (meta/lib/oe/spdx30_tasks.py, around line 549):
>
> objset.new_annotation(
> build,
> "%s=%s" % (var, d.getVar(var)),
> oe.spdx30.AnnotationType.other,
> )
>
> When SPDX_CUSTOM_ANNOTATION_VARS is set on scarthgap, do_create_spdx
> fails with:
>
> Exception: NameError: name 'new_annotation' is not defined
>
> The failure occurs at meta/lib/oe/spdx30_tasks.py:520 while processing SPDX_CUSTOM_ANNOTATION_VARS.
>
> I could not determine whether this difference is intentional or whether the corresponding fix was missed when changes were backported to scarthgap.
>
> Would it be appropriate to backport the master implementation to scarthgap?
>
> Thanks,
> Minji Jeon
Hello,
We decided to backport the SPDX3 generation feature from master to
scarthgap, so any fix done on master would be also acceptable on
scarthgap.
So, yes, it would be appropriate (albeit with some care as to not be too
intrusive...)
Thanks!
--
Yoann Congal
Smile ECS
next prev parent reply other threads:[~2026-09-10 13:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 8:39 [BUG][scarthgap] SPDX 3.0: NameError when SPDX_CUSTOM_ANNOTATION_VARS is set 전민지
2026-09-10 13:33 ` Yoann Congal [this message]
2026-09-10 21:44 ` [OE-core] " Joshua Watt
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=DLBOAXWM0XB3.I2UNWZWB9X75@smile.fr \
--to=yoann.congal@smile.fr \
--cc=emzei.j@gmail.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.