Hi, Am Samstag, den 06.10.2012, 23:32 +0000 schrieb kiwamu@debian.or.jp: > diff -rN -u old-ghc//rules new-ghc//rules > --- old-ghc//rules 2012-10-06 23:32:07.319718666 +0000 > +++ new-ghc//rules 2012-10-06 23:32:07.363718799 +0000 > @@ -30,6 +30,7 @@ > GHC=$(firstword $(shell bash -c "type -p ghc")) > EXTRA_CONFIGURE_FLAGS=--with-ghc="$(GHC)" > BUILD_HADDOCK_DOCS=YES > +DEB_HOOGLE_TXT_DIR = /usr/lib/ghc-doc/hoogle/ > > ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) > NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) > @@ -236,6 +237,10 @@ > find debian/tmp/usr/share/haddock-* $(FILES) >> debian/ghc-haddock.install > # ghc-doc > ifeq (YES,$(BUILD_HADDOCK_DOCS)) > + mkdir -p debian/tmp/$(DEB_HOOGLE_TXT_DIR) > + find debian/tmp/usr/share/doc/ghc-doc/html/libraries/*/ -name "*.txt" | \ > + runghc debian/haddock-collect \ > + debian/tmp debian/tmp/$(DEB_HOOGLE_TXT_DIR) > find debian/tmp/usr/share/doc/ghc-doc $(FILES) > debian/ghc-doc.install > find debian/tmp/usr/lib/ghc-doc $(FILES) >> debian/ghc-doc.install > endif Please, again, do not use runghc in packaging scripts. There are architectures in Debian that do not support that. Always compile first and then run it. Also, I guess after running haddock-collect the .txt file in /usr/share/doc/ghc-doc/html/libraries/*/ can be deleted, can’t it? Greetings, Joachim PS: You don’t need to reply to me directly, just reply to the d-haskell list. -- Joachim "nomeata" Breitner Debian Developer nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata
Attachment:
signature.asc
Description: This is a digitally signed message part