fix(autopatch): Removed obsolete ReplaceAction for '%ifarch aarch64' / '%define _find_debuginfo_dwz_opts %{nil}' block #1

Open
eabdullin wants to merge 1 commits from agent-fix/a10s-20260410-022153 into a10s
Owner

Automated fix by autopatch agent.

Summary: Removed obsolete ReplaceAction for '%ifarch aarch64' / '%define _find_debuginfo_dwz_opts %{nil}' block

Root cause

The upstream c10s spec file refactored the _find_debuginfo_dwz_opts setting from being architecture-specific (only under '%ifarch aarch64') to being applied unconditionally for all architectures. The config.yaml action was trying to find '%ifarch aarch64\n%define _find_debuginfo_dwz_opts %{nil}' to extend it with riscv64, but that block no longer exists. Since the setting is now global (covering riscv64 too), the action was simply removed. All other actions applied successfully.

Original error

Type: ActionNotAppliedError

Traceback (most recent call last):
  File "/root/autopatch-tool/src/webserv.py", line 77, in debrand_packages
    result = apply_modifications(
  File "/root/autopatch-tool/src/debranding.py", line 111, in apply_modifications
    config.apply_actions(rpms_working_dir + f"/{package}")
  File "/root/autopatch-tool/src/actions_handler.py", line 925, in apply_actions
    action.execute(Path(package_path))
  File "/root/autopatch-tool/src/actions_handler.py", line 472, in execute
    process_lines(
  File "/root/autopatch-tool/src/actions_handler.py", line 233, in process_lines
    raise ActionNotAppliedError(
actions_handler.ActionNotAppliedError: Action 'ReplaceAction' was not applied successfully: No changes made for '['%ifarch aarch64', '%define _find_debuginfo_dwz_opts %{nil}']' in /root/autopatch-tool/src/rpms-namespace/llvm/llvm.spec

Package: llvm | Webhook branch: c10s

Automated fix by autopatch agent. **Summary:** Removed obsolete ReplaceAction for '%ifarch aarch64' / '%define _find_debuginfo_dwz_opts %{nil}' block ### Root cause The upstream c10s spec file refactored the _find_debuginfo_dwz_opts setting from being architecture-specific (only under '%ifarch aarch64') to being applied unconditionally for all architectures. The config.yaml action was trying to find '%ifarch aarch64\n%define _find_debuginfo_dwz_opts %{nil}' to extend it with riscv64, but that block no longer exists. Since the setting is now global (covering riscv64 too), the action was simply removed. All other actions applied successfully. ### Original error **Type:** `ActionNotAppliedError` ``` Traceback (most recent call last): File "/root/autopatch-tool/src/webserv.py", line 77, in debrand_packages result = apply_modifications( File "/root/autopatch-tool/src/debranding.py", line 111, in apply_modifications config.apply_actions(rpms_working_dir + f"/{package}") File "/root/autopatch-tool/src/actions_handler.py", line 925, in apply_actions action.execute(Path(package_path)) File "/root/autopatch-tool/src/actions_handler.py", line 472, in execute process_lines( File "/root/autopatch-tool/src/actions_handler.py", line 233, in process_lines raise ActionNotAppliedError( actions_handler.ActionNotAppliedError: Action 'ReplaceAction' was not applied successfully: No changes made for '['%ifarch aarch64', '%define _find_debuginfo_dwz_opts %{nil}']' in /root/autopatch-tool/src/rpms-namespace/llvm/llvm.spec ``` --- Package: `llvm` | Webhook branch: `c10s`
eabdullin added 1 commit 2026-04-10 02:21:54 +00:00
Removed obsolete ReplaceAction for '%ifarch aarch64' / '%define _find_debuginfo_dwz_opts %{nil}' block
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin agent-fix/a10s-20260410-022153:agent-fix/a10s-20260410-022153
git checkout agent-fix/a10s-20260410-022153
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: autopatch/llvm#1
No description provided.