[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#888793: glibc: Please add support for new architecture "riscv64" (RISC-V 64 bits little-endian)



On 2018-01-30 00:46, Manuel A. Fernandez Montecelo wrote:
> Source: glibc
> Severity: wishlist
> Control: user debian-riscv@lists.debian.org
> Control: usertag -1 + riscv64
> 
> Hello,
> 
> This bug is to track the progress on the support for riscv64 in the Debian
> package.
> 
> The upcoming release 2.27 will ship with support for "riscv64", RISC-V 64 bits
> little-endian, and we'd like to have it enabled as soon as possible/feasible.

glibc 2.27 is now available in experimental.

> dpkg 1.19.0.5, released a few days ago, contains support for this arch, and the
> current plans is to ship this in the next stable update.

Indeed, we can't support riscv64 in glibc before the support for this
architecture is available in dpkg/stable. Otherwise the package will
just be rejected on ftpmaster with an unknown architecture issue.

That said it should be relatively straightforward to add riscv64
support with the following patch, followed with a  "debian/rules
debian/control" run.

diff --git a/debian/rules.d/control.mk b/debian/rules.d/control.mk
index e3f61ace..8c4cb20b 100644
--- a/debian/rules.d/control.mk
+++ b/debian/rules.d/control.mk
@@ -2,7 +2,7 @@ libc_packages := libc6 libc6.1 libc0.1 libc0.3
 libc0_1_archs := kfreebsd-amd64 kfreebsd-i386
 libc0_3_archs := hurd-i386
 libc6_archs   := amd64 arm64 armel armhf hppa i386 m68k mips mipsel mipsn32 mipsn32el mips64 mips64el mipsr6 mipsr6el \
-                 mipsn32r6 mipsn32r6el mips64r6 mips64r6el nios2 powerpc powerpcspe ppc64 ppc64el sparc sparc64 s390x sh3 sh4 x32
+                 mipsn32r6 mipsn32r6el mips64r6 mips64r6el nios2 powerpc powerpcspe ppc64 ppc64el riscv64 sparc sparc64 s390x sh3 sh4 x32
 libc6_1_archs := alpha ia64
 
 control_deps := $(wildcard debian/control.in/*) $(addprefix debian/control.in/, $(libc_packages))

riscv64 should not require any architecture specific option to be passed
to configure. If it is the case, a debian/sysdeps/riscv64.mk should be
added for that. We can already merge that part in the package, even
without dpkg/stable support.

Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net


Reply to: