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

Bug#807108: ghc: Please add platform detection support for sh4 (patch supplied)

Package: ghc
Version: 7.10.3-2
Severity: normal
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4


I am currently preparing a ghc package for Debian's sh4 port.

I have successfully bootstrapped ghc via cross-compilation [1] and I
am now building the actual Debian package which I will upload to the
'unreleased' suite later.

In order for ghc to actually build on sh4, I had to add sh4 to the
list of known architectures in aclocal.m4. Please add the attached
patch to the package's Debian patches so the official Debian ghc
package supports sh4 as well.


> [1] https://lists.debian.org/debian-superh/2015/12/msg00000.html

 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
Description: Add platform detection support for Renesas SH4
 This patch adds platform detection support for Renesas
 SH4 (SuperH) which is called "sh4" in Debian.

--- ghc-7.10.3.orig/aclocal.m4
+++ ghc-7.10.3/aclocal.m4
             test -z "[$]2" || eval "[$]2=ArchMipsel"
-        hppa|hppa1_1|ia64|m68k|powerpc64le|rs6000|s390|s390x|sparc64|vax)
+        hppa|hppa1_1|ia64|m68k|powerpc64le|rs6000|s390|s390x|sh4|sparc64|vax)
             test -z "[$]2" || eval "[$]2=ArchUnknown"
@@ -1979,6 +1979,9 @@ case "$1" in
+  sh4)
+    $2="sh4"
+    ;;

Reply to: