[Pkg-haskell-commits] darcs: ghc: Add support for mips and mipsel. Add mips-support.patch. Patch by Dejan Latinovic <Dejan.Latinovic at imgtec.com>. Closes: #751479.

Joachim Breitner mail at joachim-breitner.de
Fri Jul 18 21:38:49 UTC 2014


Fri Jul 18 20:47:39 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Add support for mips and mipsel. Add mips-support.patch. Patch by Dejan Latinovic <Dejan.Latinovic at imgtec.com>. Closes:  #751479.

    M ./changelog +9
    A ./patches/mips-support.patch
    M ./patches/series +1
    M ./rules -1 +2

Fri Jul 18 20:47:39 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Add support for mips and mipsel. Add mips-support.patch. Patch by Dejan Latinovic <Dejan.Latinovic at imgtec.com>. Closes:  #751479.
diff -rN -u old-ghc/changelog new-ghc/changelog
--- old-ghc/changelog	2014-07-18 21:38:49.711999430 +0000
+++ new-ghc/changelog	2014-07-18 21:38:49.735999428 +0000
@@ -1,3 +1,12 @@
+ghc (7.8.20140710-4) UNRELEASED; urgency=medium
+
+   * Add support for mips and mipsel.
+     Add mips-support.patch.
+     Patch by Dejan Latinovic <Dejan.Latinovic at imgtec.com>.
+     Closes:  #751479.
+
+ -- Joachim Breitner <nomeata at debian.org>  Fri, 18 Jul 2014 22:47:16 +0200
+
 ghc (7.8.20140710-3) experimental; urgency=medium
 
   * Depend on libncurses5-dev, since we ship terminfo in ghc now. Thanks to
diff -rN -u old-ghc/patches/mips-support.patch new-ghc/patches/mips-support.patch
--- old-ghc/patches/mips-support.patch	1970-01-01 00:00:00.000000000 +0000
+++ new-ghc/patches/mips-support.patch	2014-07-18 21:38:49.731999429 +0000
@@ -0,0 +1,27 @@
+From: Dejan Latinovic <Dejan.Latinovic at imgtec.com>
+Subject: ghc 7.8.2 FTBFS for mips/mipsel
+Date: Fri, 13 Jun 2014 11:42:27 +0000
+
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751479
+
+A patch that adds mips and mipsel into NoSharedLibsPlatformList 
+is attached.
+
+After applying this patch,
+I was able to successfully build ghc 7.8.2 for mips nad mipsel.
+
+Index: ghc-7.8.3/mk/config.mk.in
+===================================================================
+--- ghc-7.8.3.orig/mk/config.mk.in	2014-07-18 22:46:32.190912601 +0200
++++ ghc-7.8.3/mk/config.mk.in	2014-07-18 22:46:44.622912143 +0200
+@@ -99,7 +99,9 @@
+ 	x86_64-unknown-mingw32 \
+ 	i386-unknown-mingw32 \
+ 	sparc-sun-solaris2 \
+-	sparc-unknown-linux
++	sparc-unknown-linux \
++	mips-unknown-linux \
++	mipsel-unknown-linux
+ 
+ ifeq "$(SOLARIS_BROKEN_SHLD)" "YES"
+ NoSharedLibsPlatformList += i386-unknown-solaris2
diff -rN -u old-ghc/patches/series new-ghc/patches/series
--- old-ghc/patches/series	2014-07-18 21:38:49.711999430 +0000
+++ new-ghc/patches/series	2014-07-18 21:38:49.731999429 +0000
@@ -4,3 +4,4 @@
 haddock-hardcode-ghc-paths
 Fix-documentation-build-failure-without-GHCi.patch
 arm64.patch
+mips-support.patch
diff -rN -u old-ghc/rules new-ghc/rules
--- old-ghc/rules	2014-07-18 21:38:49.711999430 +0000
+++ new-ghc/rules	2014-07-18 21:38:49.731999429 +0000
@@ -85,9 +85,10 @@
 	# We also want to build the threaded profiling-enabled debug runtime,
 	# because it does no harm
 	echo 'GhcRTSWays += $$(if $$(findstring p, $$(GhcLibWays)),thr_debug_p,)' >> mk/build.mk
-ifneq (,$(findstring $(DEB_HOST_ARCH),armel armhf))
+ifneq (,$(findstring $(DEB_HOST_ARCH),armel armhf mips mipsel))
 	# GHCi is too badly broken on ARM; see
 	# http://hackage.haskell.org/trac/ghc/ticket/7794
+	# also on arm: https://bugs.debian.org/751479
 	echo "GhcWithInterpreter = NO" >> mk/build.mk
 endif
 	




More information about the Pkg-haskell-commits mailing list