Bug 15567 - AB-INT: spirv-tools is not reproducible
Summary: AB-INT: spirv-tools is not reproducible
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: graphics (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 5.1 M3
Assignee: Yoann Congal
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2024-07-31 16:34 UTC by Alexandre Belloni
Modified: 2024-08-06 07:03 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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