All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG][scarthgap] SPDX 3.0: NameError when SPDX_CUSTOM_ANNOTATION_VARS is set
@ 2026-09-10  8:39 전민지
  2026-09-10 13:33 ` [OE-core] " Yoann Congal
  2026-09-10 21:44 ` Joshua Watt
  0 siblings, 2 replies; 3+ messages in thread
From: 전민지 @ 2026-09-10  8:39 UTC (permalink / raw)
  To: openembedded-core



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

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

* Re: [OE-core] [BUG][scarthgap] SPDX 3.0: NameError when SPDX_CUSTOM_ANNOTATION_VARS is set
  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
  2026-09-10 21:44 ` Joshua Watt
  1 sibling, 0 replies; 3+ messages in thread
From: Yoann Congal @ 2026-09-10 13:33 UTC (permalink / raw)
  To: emzei.j, openembedded-core

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


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

* Re: [OE-core] [BUG][scarthgap] SPDX 3.0: NameError when SPDX_CUSTOM_ANNOTATION_VARS is set
  2026-09-10  8:39 [BUG][scarthgap] SPDX 3.0: NameError when SPDX_CUSTOM_ANNOTATION_VARS is set 전민지
  2026-09-10 13:33 ` [OE-core] " Yoann Congal
@ 2026-09-10 21:44 ` Joshua Watt
  1 sibling, 0 replies; 3+ messages in thread
From: Joshua Watt @ 2026-09-10 21:44 UTC (permalink / raw)
  To: emzei.j; +Cc: openembedded-core

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

On Thu, Sep 10, 2026 at 7:07 AM 전민지 via lists.openembedded.org <emzei.j=
gmail.com@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.
>

It was unintentional. The correct fix is to backport:

 52ab3b640c ("spdx30_tasks: Fix SPDX_CUSTOM_ANNOTATION_VARS implementation")

to scarthgap. It probably happened because the ordering of the backport to
scarthgap and the bug fix caused it to be missed, but I did not verify that.



>
> Would it be appropriate to backport the master implementation to scarthgap?
>
> Thanks,
> Minji Jeon
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#245564):
> https://lists.openembedded.org/g/openembedded-core/message/245564
> Mute This Topic: https://lists.openembedded.org/mt/121179868/3616693
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> JPEWhacker@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

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

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

end of thread, other threads:[~2026-09-10 21:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-10  8:39 [BUG][scarthgap] SPDX 3.0: NameError when SPDX_CUSTOM_ANNOTATION_VARS is set 전민지
2026-09-10 13:33 ` [OE-core] " Yoann Congal
2026-09-10 21:44 ` Joshua Watt

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.