Bug#893061: guile-2.2: Please add support for new architecture "riscv64" (RISC-V 64 bits little-endian)
Source: guile-2.2
Version: 2.2.3+1-3
Severity: wishlist
Tags: patch upstream
User: debian-riscv@lists.debian.org
Usertags: riscv64
Forwarded: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30832
Hello,
Same as with guile-2.0 and the bug submitted in [1], we need changes in this
package for the riscv64 architecture.
[1] https://bugs.debian.org/893060
Patches attached (same as for 2.0, might need adding the single word by hand
since more arches are present at this moment, in particular sh3, and more might
appear at any time).
Less packages depend on this version, guile-2.0 is much more critical specially
due to GNU make depending on it. But still, this one also needs support for the
architecture at some point.
So please also include it as a patch and release a new version for unstable,
while not included in the upstream source.
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: