fix(autopatch): Removed two obsolete replace actions from config-portable.yaml and config.yaml whose find strings no longer match the up #2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "agent-fix/a10-20260723-001345"
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: Removed two obsolete replace actions from config-portable.yaml and config.yaml whose find strings no longer match the upstream c10 spec.
Root cause
Two separate replace actions had become obsolete because the upstream c10 spec already includes the changes they were trying to apply:
config-portable.yaml: The fourreplaceactions were adding RPM 4.19 workaround macros (jreportablearchiveForFiles,jdkportablearchiveForFiles,staticlibsportablearchiveForFiles) and updating%filessections to use them. However,java-25-openjdk-portable.specfilein c10 already defines these macros natively (asjreportablearchive_for_files(), etc.) and already uses them in the%filessections — so thefindstrings no longer matched. The entirereplaceblock was removed; thechangelog_entryline"Fix portable archive macros for RPM 4.19"was also removed since that fix is now upstream.config.yaml: A secondreplaceaction withfind: "# %patch"andcount: -1was trying to escape%patchin commented-out lines. The c10 spec no longer contains any# %patchpattern, so this action also failed at runtime. It was removed as the a10s reference branch already does not include it.Both fixes were confirmed by comparing against the a10s reference config at
/workspace/autopatch_ref/java-25-openjdk/, which had already applied the same changes. The remaining actions in both configs (portablebuilddirreplace,run_script,modify_release,changelog_entry) were validated and confirmed to apply successfully.Original error
Type:
ActionNotAppliedErrorPackage:
java-25-openjdk| Webhook branch:c10