Hi,

On Sat, Sep 05, 2020 at 11:14:47PM -0700, Greg Steuck wrote:
> Looks like we can't easily generate haddock on i386 with ghc 8.10.2. It
> simply wants more RAM than the platform permits. The highest ulimit -d
> is 3145728. Even then I get:
> 
> haddock: out of memory (requested 1048576 bytes)
> gmake[1]: *** [compiler/ghc.mk:310: compiler/stage2/doc/html/ghc/ghc.haddock] 
> Error 251
> 
> Should I split the port into multi-package and limit -haddock to amd64?

Would it be an option to just don't generate the GHC docs on i386
but still build a single package (including the haddock binary)?
That would keep things simpler (no multi packages), and we should
still be able to generate haddock-docs for other hs-packages on
i386. It could be done with a pkg/PFRAG.no_i386 listing all the
haddock-generated files and adding a

        %%no_i386%%

in main pkg/PLIST.

The build time distinction in the Makefile could than be done with

HADDOCK_DOCS-amd64 =    YES
HADDOCK_DOCS-i386 =     NO

...

        echo HADDOCK_DOCS=${HADDOCK_DOCS-${ARCH}} >> ${WRKSRC}/mk/build.mk

in post-patch.

> Maybe we can forgo haddock generation entirely? We package up 3500+
> files that I doubt anybody ever uses.

I'm not sure. IIRC, a couple of years ago, someone mentioed to
prefer looking up documentation locally.

Ciao,
        Kili

Reply via email to