From 8caac9f3206c3e7297d6b364d44a88b857dfc7be Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 17 Jun 2026 10:13:51 +0300 Subject: [PATCH] Fix build on non-bpf arches (i686, riscv64) --- config.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 config.yaml diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..a4abd19 --- /dev/null +++ b/config.yaml @@ -0,0 +1,28 @@ +actions: + - replace: + - target: "spec" + find: | + %build + %configure --libdir=%{_libdir} --with-python=no --with-python3 \ + %ifarch %{bpf_arches} + --enable-cap-audit + %endif + %make_build CFLAGS="%{optflags}" + replace: | + %build + %ifarch %{bpf_arches} + %global cap_audit --enable-cap-audit + %endif + %configure --libdir=%{_libdir} --with-python=no --with-python3 %{?cap_audit} + %make_build CFLAGS="%{optflags}" + count: 1 + + - modify_release: + - suffix: ".alma.1" + enabled: true + + - changelog_entry: + - name: "Eduard Abdullin" + email: "eabdullin@almalinux.org" + line: + - "Fix build on non-bpf arches (i686, riscv64)"