Package: dpkg Version: 1.19.7ubuntu3-1~202101232134~ubuntu20.04.1 Severity: wishlist Tags: patch
Dear Maintainer, ARC architecture seem to match requirements for being added to the dpkg (https://wiki.debian.org/Teams/Dpkg/FAQ#Q._Can_we_add_support_for_new_dpkg_architectures.3F): * GNU triplet is there since 2013, see: https://git.savannah.gnu.org/cgit/config.git/commit/?id=986360de6e412cbed27dbe2dbfb64ddbd18e7370 * Binutils, GCC & uClibc support ARC for many years now, glibc 2.32 finally gained ARC support, see https://lists.gnu.org/archive/html/info-gnu/2020-08/msg00002.html Please see attached patch which implements reqested change. -Alexey
>From 96523e18473b56743bf2f7d308c2d786f337e52e Mon Sep 17 00:00:00 2001 From: Alexey Brodkin <abrod...@synopsys.com> Date: Sun, 24 Jan 2021 00:34:52 +0300 Subject: [PATCH] Add ARC architecture --- data/cputable | 2 ++ scripts/t/Dpkg_Arch.t | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/data/cputable b/data/cputable index 9f2a8e0e4..114a66ecb 100644 --- a/data/cputable +++ b/data/cputable @@ -20,6 +20,8 @@ i386 i686 (i[34567]86|pentium) 32 little ia64 ia64 ia64 64 little alpha alpha alpha.* 64 little amd64 x86_64 (amd64|x86_64) 64 little +arc arc arc.* 32 little +arceb arc arceb.* 32 big armeb armeb arm.*b 32 big arm arm arm.* 32 little arm64 aarch64 aarch64 64 little diff --git a/scripts/t/Dpkg_Arch.t b/scripts/t/Dpkg_Arch.t index a3a9e6fee..aa0d97a21 100644 --- a/scripts/t/Dpkg_Arch.t +++ b/scripts/t/Dpkg_Arch.t @@ -16,7 +16,7 @@ use strict; use warnings; -use Test::More tests => 16836; +use Test::More tests => 17762; use_ok('Dpkg::Arch', qw(debarch_to_debtuple debarch_to_multiarch debarch_eq debarch_is debarch_is_wildcard @@ -174,7 +174,7 @@ is(gnutriplet_to_debarch(undef), undef, 'undef gnutriplet'); is(gnutriplet_to_debarch('unknown-unknown-unknown'), undef, 'unknown gnutriplet'); is(gnutriplet_to_debarch('x86_64-linux-gnu'), 'amd64', 'known gnutriplet'); -is(scalar get_valid_arches(), 539, 'expected amount of known architectures'); +is(scalar get_valid_arches(), 569, 'expected amount of known architectures'); { local $ENV{CC} = 'false'; -- 2.25.1