Bug#893060: guile-2.0: Please add support for new architecture "riscv64" (RISC-V 64 bits little-endian)
Source: guile-2.0
Version: 2.0.13+1-5
Severity: normal
Tags: patch upstream
User: debian-riscv@lists.debian.org
Usertags: riscv64
Hello,
We need support in this package to bootstrap the riscv64 architecture.
I plan to submit this simple patch upstream in the near future (if somebody
wants to beat me to it, feel free :) ).
It would be great if you could include it as a patch and release a new version
for unstable.
If you think that we can help in any way to make it happen, please let me/us
know.
Thanks and cheers.
--
Manuel A. Fernandez Montecelo <mafm@debian.org>
diff -Nru guile-2.0-2.0.13+1/debian/changelog guile-2.0-2.0.13+1/debian/changelog
--- guile-2.0-2.0.13+1/debian/changelog 2017-12-05 07:41:29.000000000 +0000
+++ guile-2.0-2.0.13+1/debian/changelog 2018-03-15 02:09:58.000000000 +0000
@@ -1,3 +1,10 @@
+guile-2.0 (2.0.13+1-5.0~riscv64.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Add riscv64 support (Closes: #-1)
+
+ -- Manuel A. Fernandez Montecelo <mafm@debian.org> Thu, 15 Mar 2018 02:09:58 +0000
+
guile-2.0 (2.0.13+1-5) unstable; urgency=medium
* Add upstream 0004-ia64-Fix-crash-in-thread-context-switch.patch to
diff -Nru guile-2.0-2.0.13+1/debian/patches/riscv64.patch guile-2.0-2.0.13+1/debian/patches/riscv64.patch
--- guile-2.0-2.0.13+1/debian/patches/riscv64.patch 1970-01-01 00:00:00.000000000 +0000
+++ guile-2.0-2.0.13+1/debian/patches/riscv64.patch 2018-03-15 02:09:19.000000000 +0000
@@ -0,0 +1,13 @@
+Index: guile-2.0-2.0.13+1/module/system/base/target.scm
+===================================================================
+--- guile-2.0-2.0.13+1.orig/module/system/base/target.scm
++++ guile-2.0-2.0.13+1/module/system/base/target.scm
+@@ -65,7 +65,7 @@
+ (cond ((string-match "^i[0-9]86$" cpu)
+ (endianness little))
+ ((member cpu '("x86_64" "ia64"
+- "powerpcle" "powerpc64le" "mipsel" "mips64el" "nios2" "sh4" "alpha"))
++ "powerpcle" "powerpc64le" "mipsel" "mips64el" "nios2" "sh4" "alpha" "riscv64"))
+ (endianness little))
+ ((member cpu '("sparc" "sparc64" "powerpc" "powerpc64" "spu"
+ "mips" "mips64" "m68k" "s390x"))
diff -Nru guile-2.0-2.0.13+1/debian/patches/series guile-2.0-2.0.13+1/debian/patches/series
--- guile-2.0-2.0.13+1/debian/patches/series 2017-12-05 07:30:59.000000000 +0000
+++ guile-2.0-2.0.13+1/debian/patches/series 2018-03-15 02:08:19.000000000 +0000
@@ -2,3 +2,4 @@
0002-Look-for-guile-procedures.txt-in-pkglibdir.patch
0003-tests-Avoid-race-condition-in-REPL-server-test.patch
0004-ia64-Fix-crash-in-thread-context-switch.patch
+riscv64.patch
Index: guile-2.0-2.0.13+1/module/system/base/target.scm
===================================================================
--- guile-2.0-2.0.13+1.orig/module/system/base/target.scm
+++ guile-2.0-2.0.13+1/module/system/base/target.scm
@@ -65,7 +65,7 @@
(cond ((string-match "^i[0-9]86$" cpu)
(endianness little))
((member cpu '("x86_64" "ia64"
- "powerpcle" "powerpc64le" "mipsel" "mips64el" "nios2" "sh4" "alpha"))
+ "powerpcle" "powerpc64le" "mipsel" "mips64el" "nios2" "sh4" "alpha" "riscv64"))
(endianness little))
((member cpu '("sparc" "sparc64" "powerpc" "powerpc64" "spu"
"mips" "mips64" "m68k" "s390x"))
Reply to: