Bug#763078: confirmed llvm change broke ghc

Joey Hess joeyh at debian.org
Sun Sep 28 18:08:03 UTC 2014


Here's some debian/rules hacks to fix this.
This forces use of llvm-3.4 for building ghc, as well as
modifying the wrapper scripts to force use of that version at runtime.

The control file also needs to be changed to depend on llvm-3.4, rather
than llvm.

Note that just uploading ghc with this patch should suffice; there's no
need for manual building on arm.

Since this bug could be resuting in bad builds of haskell libraries/binaries
on arm, I am going to try to make a ghc release as soon as I can figure out
enough darcs to do so.

ifneq (,$(findstring $(DEB_HOST_ARCH), armel armhf))
# Force use of a specific llvm package, the same version that ghc
# depends (and build-depends) on.
LLVM_PATH=/usr/lib/llvm-3.4/bin
export PATH:=$(LLVM_PATH):$(PATH)
endif

ifneq (,$(findstring $(DEB_HOST_ARCH), armel armhf))
	# Ensure that the same llvm used to build ghc is used at runtime.
	sed -i "s,exec ,PATH=\"$(LLVM_PATH):\$$PATH\"\nexport PATH\nexec ," debian/tmp/usr/lib/ghc/bin/ghc-$(ProjectVersion) debian/tmp/usr/lib/ghc/bin/ghc-pkg-$(ProjectVersion) debian/tmp/usr/lib/ghc/bin/ghci-$(ProjectVersion) debian/tmp/usr/lib/ghc/bin/runghc-$(ProjectVersion) debian/tmp/usr/lib/ghc/bin/hsc2hs debian/tmp/usr/lib/ghc/bin/haddock-ghc-$(ProjectVersion)
endif

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20140928/4745890f/attachment.sig>


More information about the Pkg-llvm-team mailing list