From e175221405aa58d6a5b790d3d10c1f4d7eedd867 Mon Sep 17 00:00:00 2001 From: Andrew Lukoshko Date: Thu, 8 Aug 2024 23:37:42 +0200 Subject: [PATCH] pesign-rpmbuild-helper: add support for versioned x86_64 arches Recently Red Hat introduced versioned x86_64 arches support in RPM: x86_64_v2 x86_64_v3 x86_64_v4. This trivial change allows to correctly recognize them as x64. Signed-off-by: Andrew Lukoshko --- src/pesign-rpmbuild-helper.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pesign-rpmbuild-helper.in b/src/pesign-rpmbuild-helper.in index 30d5441..5078ee4 100644 --- a/src/pesign-rpmbuild-helper.in +++ b/src/pesign-rpmbuild-helper.in @@ -144,7 +144,7 @@ main() { fi target_cpu="${target_cpu/i?86/ia32}" - target_cpu="${target_cpu/x86_64/x64}" + target_cpu="${target_cpu/x86_64*/x64}" target_cpu="${target_cpu/aarch64/aa64}" target_cpu="${target_cpu/arm*/arm/}"