Package: ghc Version: 7.10.3-2 Severity: normal Tags: patch User: debian-...@superh.org Usertags: sh4
Hello! 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. Thanks, Adrian > [1] https://lists.debian.org/debian-superh/2015/12/msg00000.html -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@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 @@ -209,7 +209,7 @@ AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_V mipsel) 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 s390*) $2="s390" ;; + sh4) + $2="sh4" + ;; sparc64*) $2="sparc64" ;;