Set SOURCE_DATE_EPOCH when building uv to prevent A64FX segfault - #308
Conversation
Add a pre-prepare hook to set SOURCE_DATE_EPOCH for uv builds to ensure a timestamp is available in A64FX builds
SOURCE_DATE_EPOCH when building uv to prevent A64FX segfault
Co-authored-by: Bob Dröge <b.e.droge@rug.nl>
Add pre-prepare hook to set SOURCE_DATE_EPOCH for uv builds.
Update pre_prepare_hook_uv_source_date_epoch to derive SOURCE_DATE_EPOCH from the source archive's timestamp, ensuring deterministic builds for uv.
|
The revised approached works: EESSI/software-layer#1668 (comment), so this is ready for review. |
|
I added a guard to only apply the changes in the hook for A64FX builds. It also seems to work: EESSI/software-layer#1668 (comment) |
| ) | ||
|
|
||
| cpu_target = get_eessi_envvar('EESSI_SOFTWARE_SUBDIR') | ||
| if cpu_target == CPU_TARGET_A64FX: |
There was a problem hiding this comment.
I'd add another guard here that only applies this to a specific version of uv. Hopefully it won't be necessary for future versions, but otherwise we can still extend that list.
|
bot: build repo:eessi.io-2023.06-software instance:eessi-bot-deucalion for:arch=aarch64/a64fx |
|
New job on instance
|
|
New job on instance
|
|
New job on instance
|
Add a pre-prepare hook to set
SOURCE_DATE_EPOCHforuvbuilds to ensure a timestamp is available in A64FX builds. Without this, this fails trying to buildmaturinwhen buildinguv. Note: this first tries if setting the variable works, otherwise we should try to use a proper source date timestamp and not generate it on build, hence I'm first making this a draft.