fix(autopatch): Removed obsolete replace action whose fix was already incorporated by upstream. #1

Closed
eabdullin wants to merge 1 commits from agent-fix/a10s-20260722-021857 into a10s
Owner

Automated fix by autopatch agent.

Summary: Removed obsolete replace action whose fix was already incorporated by upstream.

Root cause

The ReplaceAction failed because its find string — the old %build section with an inline %ifarch %{bpf_arches} block controlling --enable-cap-audit — no longer exists in the spec.

Root cause: upstream (c10s, version 0.9.3-2) already applied the exact same fix the action was trying to make:

  • %global cap_audit --enable-cap-audit (guarded by %ifarch %{bpf_arches}) was moved to the top of the spec
  • %configure was updated to use %{?cap_audit} instead of the inline %ifarch block

This is confirmed by the upstream changelog entry "Fix build failure on non-BPF architectures" in the 0.9.3-2 release.

Since the effect (building correctly on non-BPF arches like i686 and riscv64) is already realized in the upstream spec, the replace action is fully obsolete and was removed. The modify_release and changelog_entry actions are retained unchanged.

Original error

Type: ActionNotAppliedError

Traceback (most recent call last):
  File "/root/autopatch-tool/src/webserv.py", line 89, in debrand_packages
    result = apply_modifications(
  File "/root/autopatch-tool/src/debranding.py", line 136, in apply_modifications
    config.apply_actions(rpms_working_dir + f"/{package}")
  File "/root/autopatch-tool/src/actions_handler.py", line 938, in apply_actions
    action.execute(Path(package_path))
  File "/root/autopatch-tool/src/actions_handler.py", line 475, in execute
    process_lines(
  File "/root/autopatch-tool/src/actions_handler.py", line 236, in process_lines
    raise ActionNotAppliedError(
actions_handler.ActionNotAppliedError: Action 'ReplaceAction' was not applied successfully: No changes made for '['%build', '%configure --libdir=%{_libdir} --with-python=no --with-python3 \\', '%ifarch %{bpf_arches}', '    --enable-cap-audit', '%endif', '%make_build CFLAGS="%{optflags}"']' in /root/autopatch-tool/src/autopatch-libcap-ng-wiwee3eb/rpms-namespace/libcap-ng/libcap-ng.spec

Package: libcap-ng | Webhook branch: c10s

Automated fix by autopatch agent. **Summary:** Removed obsolete replace action whose fix was already incorporated by upstream. ### Root cause The `ReplaceAction` failed because its `find` string — the old `%build` section with an inline `%ifarch %{bpf_arches}` block controlling `--enable-cap-audit` — no longer exists in the spec. Root cause: upstream (`c10s`, version 0.9.3-2) already applied the exact same fix the action was trying to make: - `%global cap_audit --enable-cap-audit` (guarded by `%ifarch %{bpf_arches}`) was moved to the top of the spec - `%configure` was updated to use `%{?cap_audit}` instead of the inline `%ifarch` block This is confirmed by the upstream changelog entry *"Fix build failure on non-BPF architectures"* in the `0.9.3-2` release. Since the effect (building correctly on non-BPF arches like i686 and riscv64) is already realized in the upstream spec, the `replace` action is fully obsolete and was removed. The `modify_release` and `changelog_entry` actions are retained unchanged. ### Original error **Type:** `ActionNotAppliedError` ``` Traceback (most recent call last): File "/root/autopatch-tool/src/webserv.py", line 89, in debrand_packages result = apply_modifications( File "/root/autopatch-tool/src/debranding.py", line 136, in apply_modifications config.apply_actions(rpms_working_dir + f"/{package}") File "/root/autopatch-tool/src/actions_handler.py", line 938, in apply_actions action.execute(Path(package_path)) File "/root/autopatch-tool/src/actions_handler.py", line 475, in execute process_lines( File "/root/autopatch-tool/src/actions_handler.py", line 236, in process_lines raise ActionNotAppliedError( actions_handler.ActionNotAppliedError: Action 'ReplaceAction' was not applied successfully: No changes made for '['%build', '%configure --libdir=%{_libdir} --with-python=no --with-python3 \\', '%ifarch %{bpf_arches}', ' --enable-cap-audit', '%endif', '%make_build CFLAGS="%{optflags}"']' in /root/autopatch-tool/src/autopatch-libcap-ng-wiwee3eb/rpms-namespace/libcap-ng/libcap-ng.spec ``` --- Package: `libcap-ng` | Webhook branch: `c10s`
eabdullin added 1 commit 2026-07-22 02:18:58 +00:00
Removed obsolete replace action whose fix was already incorporated by upstream.
eabdullin closed this pull request 2026-07-22 06:53:02 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
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/libcap-ng#1
No description provided.