fix(autopatch): Updated the find and replace strings in the rustc_target_cpus replace action to match the new upstream S390X CPU c #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent-fix/a10s-20260915-042622"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Automated fix by autopatch agent.
Summary: Updated the
findandreplacestrings in therustc_target_cpusreplace action to match the new upstream S390X CPU condition that adds z15 support for RHEL 11+/Fedora 45+.Root cause
The upstream
rust.specextended theRUSTC_TARGET_CPU_S390Xlogic inside the%global rustc_target_cpusLua block:((rhel >= 9) and "z14" or (rhel == 8 or fedora >= 38) and "z13" or ...)((rhel >= 11 or fedora >= 45) and "z15" or (rhel >= 9) and "z14" or (rhel == 8 or fedora >= 38) and "z13" or ...)This added
z15as the highest-tier S390X micro-architecture target for RHEL 11+ and Fedora 45+. TheReplaceAction'sfindstring no longer matched because it contained the old 2-line S390X condition.Fix applied:
findstring to include the new 3-line S390X condition with thez15clause.replacestring to likewise include the newz15clause, so the original content is faithfully reproduced before the%ifarch x86_64_v2override block is appended.%ifarch x86_64_v2override block's S390X condition was left unchanged — it overridesRUSTC_TARGET_CPU_X86_64only; S390X is not built on x86_64_v2, so no change is needed there.Original error
Type:
ActionNotAppliedErrorPackage:
rust| Webhook branch:c10s