Hello,

For some time the the do_create_spdx is broken for xserver-xorg if
PACKAGECONFIG includes xvfb. I failed to find a proper way to fix it,
and now I'm open for suggestions.

ERROR: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:do_create_spdx(d)
     0003:
File: 
'<PATH>/build/conf/../../layers/openembedded-core/meta/classes/create-spdx-3.0.bbclass',
 lineno: 135, function: do_create_spdx
     0131:    "
     0132:
     0133:python do_create_spdx() {
     0134:    import oe.spdx30_tasks
 *** 0135:    oe.spdx30_tasks.create_spdx(d)
     0136:}
     0137:do_create_spdx[vardepsexclude] += "BB_NUMBER_THREADS SPDX_BUILD_HOST"
     0138:do_create_spdx[vardeps] += "\
     0139:    SPDX_INCLUDE_BITBAKE_PARENT_BUILD \
File: 
'<PATH>/build/conf/../../layers/openembedded-core/meta/lib/oe/spdx30_tasks.py', 
lineno: 751, function: create_spdx
     0747:                debug_source_ids |= set(
     0748:                    oe.sbom30.get_element_link_id(d) for d in 
debug_sources
     0749:                )
     0750:
 *** 0751:            oe.sbom30.write_recipe_jsonld_doc(
     0752:                d, pkg_objset, "packages-staging", deploydir, 
create_spdx_id_links=False
     0753:            )
     0754:
     0755:    if include_sources:
File: '<PATH>/build/conf/../../layers/openembedded-core/meta/lib/oe/sbom30.py', 
lineno: 1004, function: write_recipe_jsonld_doc
     1000:
     1001:    finally:
     1002:        # It is really helpful for debugging if the JSON document is 
written
     1003:        # out, so always do that even if there is an error making the 
links
 *** 1004:        write_jsonld_doc(d, objset, dest)
     1005:
     1006:
     1007:def find_root_obj_in_jsonld(d, subdir, fn_name, obj_type, 
**attr_filter):
     1008:    objset, fn = find_jsonld(d, subdir, fn_name, required=True)
File: '<PATH>/build/conf/../../layers/openembedded-core/meta/lib/oe/sbom30.py', 
lineno: 956, function: write_jsonld_doc
     0952:        serializer = oe.spdx30.JSONLDInlineSerializer()
     0953:
     0954:    objset.objects.add(objset.doc)
     0955:    with dest.open("wb") as f:
 *** 0956:        serializer.write(objset, f, force_at_graph=True)
     0957:    objset.objects.remove(objset.doc)
     0958:
     0959:
     0960:def write_recipe_jsonld_doc(
File: '<PATH>/build/conf/../../layers/openembedded-core/meta/lib/oe/spdx30.py', 
lineno: 1938, function: write
     1934:        h.write(",")
     1935:
     1936:        h.write('"@graph":')
     1937:
 *** 1938:        objectset.encode(h, True)
     1939:        h.write("}")
     1940:        return sha1.hexdigest()
     1941:
     1942:
File: '<PATH>/build/conf/../../layers/openembedded-core/meta/lib/oe/spdx30.py', 
lineno: 1278, function: encode
     1274:                for o in objects:
     1275:                    # Allow this specific object to be written now
     1276:                    state.written_objects.remove(o)
     1277:                    with list_s.write_list_item() as item_s:
 *** 1278:                        o.encode(item_s, state)
     1279:
     1280:        elif objects:
     1281:            objects[0].encode(encoder, state)
     1282:
File: '<PATH>/build/conf/../../layers/openembedded-core/meta/lib/oe/spdx30.py', 
lineno: 758, function: encode
     0754:            self,
     0755:            state.get_object_id(self),
     0756:            bool(self._id) or state.is_refed(self),
     0757:        ) as obj_s:
 *** 0758:            self._encode_properties(obj_s, state)
     0759:
     0760:    def _encode_properties(self, encoder, state):
     0761:        for iri, prop, min_count, max_count, pyname, compact in 
self.__iter_props():
     0762:            value = self.__dict__["_obj_data"][iri]
File: '<PATH>/build/conf/../../layers/openembedded-core/meta/lib/oe/spdx30.py', 
lineno: 765, function: _encode_properties
     0761:        for iri, prop, min_count, max_count, pyname, compact in 
self.__iter_props():
     0762:            value = self.__dict__["_obj_data"][iri]
     0763:            if prop.elide(value):
     0764:                if min_count:
 *** 0765:                    raise ValueError(
     0766:                        f"Property '{pyname}' in 
{self.__class__.__name__} ({id(self)}) is required (currently {value!r})"
     0767:                    )
     0768:                continue
     0769:
Exception: ValueError: Property 'security_actionStatement' in 
security_VexAffectedVulnAssessmentRelationship (139779141101712) is required 
(currently None)


-- 
With best wishes
Dmitry
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#211200): 
https://lists.openembedded.org/g/openembedded-core/message/211200
Mute This Topic: https://lists.openembedded.org/mt/111135884/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to