Hi, Am Montag, den 23.02.2009, 17:59 +0000 schrieb Chris Lamb: > However, I went to upload haskell-utf8-string yesterday but could not > build the documentation due to (what appears to be) a bug in haddock: > > ****************************************** > BUILDING libghc6-utf8-string-doc FOR haddock > ****************************************** > > Preprocessing library utf8-string-0.3.4... > Running Haddock for utf8-string-0.3.4... > Warning: The documentation for the following packages are not > installed. > Np links will be generated to these packages: rts-1.0 > Preprocessing library utf8-string-0.3.4... > haddock: out of memory (requested 6579890946048 bytes) > dh_haskell_build: command returned error code 256 > make: *** [install] Error 1 > dpkg-buildpackage: failure: fakeroot debian/rules binary gave error > exit status 2 > debuild: fatal error at line 1319: > dpkg-buildpackage -rfakeroot -D -us -uc failed > > Note the rather silly amount of requested memory. I would have reported > this yesterday but I knew there were some amd64 issues with 6.10, so I > was going to wait it out a few days to see if it just fixed itself. > > Do you have any insight on this?
Yes, I have hit this as well. The problem is that .haddock files are now
arch dependent (maybe by mistake, but by upstream’s). This means that
they are put in the -dev package now, you just need the very latest
version of ghc6 and ghc6-doc.
> > Note that you should consider using this chance to switch to the
> > hlibrary.mk approach advocated by kaol and others
>
> *nod* I was going to look into this; thank-you for the pointer and
> reminder. If you can easily provide a patch, please file it as a
> seperate bug and I will be sure to include it, otherwise I will
> investigate for myself.
I guess you should do it, otherwise your own package becomes strange to
you. But it’s simple:
$ cat debian/rules
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/hlibrary.mk
Then adjust debian/control, to have (adjust package names to your
liking):
Build-Depends: debhelper (>= 7), haskell-devscripts (>= 0.6.15+nmu1),
cdbs, haddock (>= 2.4.1), hscolour, ghc6 (>= 6.10.1), ghc6-prof,
ghc6-doc
And then for the binary packages these dependencies:
Package: libghc6-x11-dev
Depends: ${haskell:Depends}, ${shlibs:Depends}, ${misc:Depends},
libx11-dev, libxt-dev, libxinerama-dev
Package: libghc6-x11-prof
Depends: ${haskell:Depends}, ${misc:Depends}, libghc6-x11-dev (=
${binary:Version})
Package: libghc6-x11-doc
Depends: ${haskell:Depends}, ${misc:Depends}
Greetings,
Joachim
--
Joachim "nomeata" Breitner
Debian Developer
[email protected] | ICQ# 74513189 | GPG-Keyid: 4743206C
JID: [email protected] | http://people.debian.org/~nomeata
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

