197455
From 0351a07fe5fe3c82cc8bdc4d85de9ff4624945c6 Mon Sep 17 00:00:00 2001
197455
From: Peter Robinson <pbrobinson@gmail.com>
197455
Date: Wed, 16 Oct 2019 10:06:33 +0100
197455
Subject: [PATCH] Revert "rpmrc: Add architecture compatibility mapping between
197455
 aarch64 and arm64"
197455
197455
This reverts commit 236d6f5a2b924266b1249a82875b595e8758c52b.
197455
197455
This change is fundamentally wrong. arm64 is a catch all that covers the
197455
naming but rpm uses "uname -m" to detect the actual architecture. The aarch64
197455
nonclamenture specifies the ISA (Instruction Set Architecture) for the 64-bit
197455
variant of the Arm architecture which was first supported with ARMv8.
197455
197455
Because all 64-bit variants of ARMv8 use aarch64 the arm64 would never be
197455
used in rpm. If it's useful in some context while using some Debian related
197455
tools those tools should have some translation added there. This just adds
197455
confusion and causes issues and duplication that haven't been necessary in
197455
any of the arch64 work up until now.
197455
197455
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
197455
---
197455
 rpmrc.in | 10 ++--------
197455
 1 file changed, 2 insertions(+), 8 deletions(-)
197455
197455
diff --git a/rpmrc.in b/rpmrc.in
197455
index a3ad17a3a..cc212d4ba 100644
197455
--- a/rpmrc.in
197455
+++ b/rpmrc.in
197455
@@ -103,7 +103,6 @@ optflags: sh4 -O2 -g -mieee
197455
 optflags: sh4a -O2 -g -mieee
197455
 
197455
 optflags: aarch64 -O2 -g
197455
-optflags: arm64 -O2 -g
197455
 
197455
 optflags: riscv64 -O2 -g
197455
 
197455
@@ -252,9 +251,7 @@ arch_canon:	sh3: sh3	17
197455
 arch_canon:	sh4: sh4	17
197455
 arch_canon:	sh4a: sh4a	17
197455
 arch_canon:	xtensa: xtensa	18
197455
-
197455
-arch_canon:	aarch64: aarch64	19
197455
-arch_canon:	arm64: arm64		19
197455
+arch_canon:	aarch64: aarch64 19
197455
 
197455
 arch_canon:	mipsr6: mipsr6	20
197455
 arch_canon:	mipsr6el: mipsr6el	20
197455
@@ -393,7 +390,6 @@ buildarchtranslate: sh4: sh4
197455
 buildarchtranslate: sh4a: sh4
197455
 
197455
 buildarchtranslate: aarch64: aarch64
197455
-buildarchtranslate: arm64: aarch64
197455
 
197455
 buildarchtranslate: riscv: riscv64
197455
 buildarchtranslate: riscv64: riscv64
197455
@@ -507,8 +503,7 @@ arch_compat: sh3: noarch
197455
 arch_compat: sh4: noarch
197455
 arch_compat: sh4a: sh4
197455
 
197455
-arch_compat: aarch64: arm64 noarch
197455
-arch_compat: arm64: aarch64 noarch
197455
+arch_compat: aarch64: noarch
197455
 
197455
 arch_compat: riscv: noarch
197455
 arch_compat: riscv64: noarch
197455
@@ -545,7 +540,6 @@ os_compat: Darwin: MacOSX
197455
 buildarch_compat: ia64: noarch
197455
 
197455
 buildarch_compat: aarch64: noarch
197455
-buildarch_compat: arm64: aarch64
197455
 
197455
 buildarch_compat: riscv: noarch
197455
 buildarch_compat: riscv64: noarch