Package: binutils-source
Version: 2.37-5
Severity: normal
Tags: patch

Dear Maintainer,

Even though ARC architecture is long supported in upstream Binutils,
we need to exaplicitly set default target configuration which
will match GCC [1] & our expectation in Debian based on discussion here [2].

And while at it let's add Binutils for ARC to available cross-tools.

Both items should be solved with a patch below.

Alexey

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=989453
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980963

------------------------>8------------------------
diff --git a/debian/rules b/debian/rules
index 45187fb..cc6342b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -135,7 +135,7 @@ ifeq ($(DEB_SOURCE),binutils)
   same_source  = yes
   ifneq (,$(filter $(DEB_HOST_ARCH), amd64 i386 x32))
     # DEB_HOST_ARCH is filtered-out later anyway, do not test here.
-    CROSS_ARCHS ?= amd64 i386 x32 \
+    CROSS_ARCHS ?= amd64 arc i386 x32 \
                    s390x ppc64el arm64 armhf armel \
                    alpha hppa m68k \
                    powerpc ppc64 sh4 sparc64 \
@@ -182,6 +182,7 @@ ifneq (,$(ADT_TEST_TRIGGERS))
 endif
 endif

+HOST_ARCHS_arc = amd64 i386 x32 arm64 ppc64el
 HOST_ARCHS_armhf = amd64 i386 x32 arm64 ppc64el
 HOST_ARCHS_armel = amd64 i386 x32 arm64 ppc64el
 HOST_ARCHS_arm64 = amd64 i386 x32 ppc64el
@@ -480,6 +481,8 @@ SET_MULTIARCH_ENV = \
        $(if 
$(DEB_TARGET_MULTIARCHX32_$1),DEB_TARGET_MULTIARCHX32=$(DEB_TARGET_MULTIARCHX32_$1))
 \
        $(if 
$(DEB_TARGET_MULTIARCHN32_$1),DEB_TARGET_MULTIARCHN32=$(DEB_TARGET_MULTIARCHN32_$1))

+CONFARGS_TARGET_arc            = --with-cpu=hs38_linux
+
 CONFARGS_TARGET_sparc          = --enable-targets=sparc64-linux-gnu
 CONFLICTS_TARGET_sparc         = -VextraConflicts="libc6-dev-sparc64 (<< 
2.2.5-7)"
------------------------>8------------------------



-- System Information:
Debian Release: bullseye/sid
  APT prefers focal-updates
  APT policy: (500, 'focal-updates'), (500, 'focal-security'), (500, 
'focal-proposed'), (500, 'focal'), (100, 'focal-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.72-microsoft-standard-WSL2 (SMP w/12 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 
(charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages binutils-source depends on:
ii  make        4.2.1-1.2
ii  python3     3.8.2-0ubuntu2
ii  texinfo     6.7.0.dfsg.2-5
ii  zlib1g-dev  1:1.2.11.dfsg-2ubuntu1.2

binutils-source recommends no packages.

binutils-source suggests no packages.

Reply via email to