Bug 15567

Summary: AB-INT: spirv-tools is not reproducible
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Alexandre Belloni <alexandre.belloni>
Component: graphicsAssignee: Yoann Congal <yoann.congal>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, richard.purdie
Version: unspecified   
Target Milestone: 5.1 M3   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alexandre Belloni 2024-07-31 16:34:24 UTC
https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20240729-u3gns8t4/packages/diff-html/

The version is not deterministic:
SPIRV-Tools·v2024.2·v2024.2.rc1-0-gdd4b663e1 vs SPIRV-Tools·v2024.2·v2024.2-0-gdd4b663e1
Comment 2 Yoann Congal 2024-07-31 17:04:48 UTC
It comes down to a "git describe" : https://github.com/KhronosGroup/SPIRV-Tools/blob/dd4b663e13c07fea4fbb3f70c1c91c86731099f7/utils/update_build_version.py#L114

both "v2024.2.rc1" and "v2024.2" tags point to the same commit: dd4b663e=SRC_REV
Comment 3 Yoann Congal 2024-08-01 15:18:37 UTC
Idea:
* Create a patch to allow overriding the version stuff from envvars, a configure option, ...
* Upstream this patch
* Use it to force the Spirv-tools version value from PV
Comment 4 Yoann Congal 2024-08-04 09:44:35 UTC
patch sent https://lists.openembedded.org/g/openembedded-core/message/202929