[Pkg-haskell-maintainers] Bug#751479: NMU debdiff for ghc_7.8.20140710-2.1

Aníbal Monsalve Salazar anibal at debian.org
Thu Jul 17 06:09:50 UTC 2014


Hello Joachim,

At Imagination Technologies (http://imgtec.com/) Dejan Latinovic has
found a solution to Debian bug #751479.

https://bugs.debian.org/751479

My NMU debdiff for ghc_7.8.20140710-2.1 is below, at the end of this
message.

With the changes in the NMU debdiff, ghc builds successfully on mips,
mipsel and amd64.

Regards,

Aníbal
--
Aníbal Monsalve Salazar <Anibal.MonsalveSalazar at imgtec.com>

debdiff ghc_7.8.20140710-2.dsc ghc_7.8.20140710-2.1.dsc
diff -Nru ghc-7.8.20140710/debian/changelog ghc-7.8.20140710/debian/changelog
--- ghc-7.8.20140710/debian/changelog	2014-07-13 16:49:18.000000000 +0100
+++ ghc-7.8.20140710/debian/changelog	2014-07-15 09:49:36.000000000 +0100
@@ -1,3 +1,13 @@
+ghc (7.8.20140710-2.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Add support for mips and mipsel. 
+    Add mips-support.patch.
+    Patch by Dejan Latinovic <Dejan.Latinovic at imgtec.com>.
+    Closes:  #751479.
+
+ -- Anibal Monsalve Salazar <anibal at debian.org>  Tue, 15 Jul 2014 09:49:29 +0100
+
 ghc (7.8.20140710-2) experimental; urgency=medium
 
   * Also ship terminfo, haskeline, and xhtml. Thanks to David Fox for the
diff -Nru ghc-7.8.20140710/debian/patches/mips-support.patch ghc-7.8.20140710/debian/patches/mips-support.patch
--- ghc-7.8.20140710/debian/patches/mips-support.patch	1970-01-01 01:00:00.000000000 +0100
+++ ghc-7.8.20140710/debian/patches/mips-support.patch	2014-07-15 09:40:09.000000000 +0100
@@ -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.20140710/mk/config.mk.in
+===================================================================
+--- ghc-7.8.20140710.orig/mk/config.mk.in
++++ ghc-7.8.20140710/mk/config.mk.in
+@@ -99,7 +99,9 @@ NoSharedLibsPlatformList = powerpc-unkno
+ 	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 -Nru ghc-7.8.20140710/debian/patches/series ghc-7.8.20140710/debian/patches/series
--- ghc-7.8.20140710/debian/patches/series	2014-07-10 09:17:17.000000000 +0100
+++ ghc-7.8.20140710/debian/patches/series	2014-07-15 09:32:43.000000000 +0100
@@ -4,3 +4,4 @@
 haddock-hardcode-ghc-paths
 Fix-documentation-build-failure-without-GHCi.patch
 arm64.patch
+mips-support.patch
diff -Nru ghc-7.8.20140710/debian/rules ghc-7.8.20140710/debian/rules
--- ghc-7.8.20140710/debian/rules	2014-06-10 09:45:58.000000000 +0100
+++ ghc-7.8.20140710/debian/rules	2014-07-15 09:29:55.000000000 +0100
@@ -85,7 +85,7 @@
 	# 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
 	echo "GhcWithInterpreter = NO" >> mk/build.mk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20140717/5e80003d/attachment-0001.sig>


More information about the Pkg-haskell-maintainers mailing list