On Sun, Sep 13, 2009 at 08:48:43AM +0000, Joachim Breitner wrote: >>>>> Linking dist/build/darcs/darcs ... >>>>> /usr/bin/ld: cannot find -lHSrts_thr > > [...] > DEB_SETUP_GHC6_CONFIGURE_ARGS := $(shell test -e > /usr/lib/ghc-$(GHC6_VERSION)/libHSrts_thr.a || echo --flags=-threaded)
Future Haskell packagers, You can simulate this problem (and trigger Joachim's fix) on a system that *does* support -threaded by simply doing this: sudo dpkg-divert --rename /usr/lib/ghc*/libHSrts_thr.a To reverse this, run again with --remove before --rename. This is handy for testing because my AMD64 outperforms my ARM one ;-) Joachim, FYI, I have adopted your approach, with the minor change of using the gmakism $(wildcard ...). Untested: ifeq (,$(wildcard /usr/lib/ghc-$(GHC6_VERSION)/libHSrts_thr.a)) DEB_SETUP_GHC6_CONFIGURE_ARGS += -f-threaded endif -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org