Page MenuHomeFreeBSD

textproc/hs-pandoc: Fix build and remove run-time dependency on ghc
ClosedPublic

Authored by jrm on Jan 18 2019, 10:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 25 2024, 1:38 PM
Unknown Object (File)
Oct 9 2024, 5:41 PM
Unknown Object (File)
Sep 22 2024, 8:09 PM
Unknown Object (File)
Sep 8 2024, 4:15 PM
Unknown Object (File)
Sep 8 2024, 2:08 PM
Unknown Object (File)
Sep 8 2024, 12:40 PM
Unknown Object (File)
Sep 3 2024, 6:07 AM
Unknown Object (File)
Sep 3 2024, 6:03 AM
Subscribers

Details

Summary

Also:

  • simplify options
  • binary is linked to libffi.so, so add LIB_DEPENDS on devel/libffi
  • pacify portlint

TODO: Add revision before committing

PR:
Submitted by:
Reported by:

Test Plan

poudriere testport for 12amd64 with different option combinations passes. I will test 11 i386/amd64 and 12i386 over night.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

It installs the package in 4 seconds. This is all I ever wanted in this world.

This needs more work. A bunch of .hi are being installed under /usr/local/lib/cabal/ghc-8.6.3/. Something like the Debian pandoc package, which has minimal dependencies and essentially just installs a 70 MB binary, would be nice. Although, their package is for quite an old version of pandoc. The Arch package also seems reasonable. The binary is small and the package only depends on the shared libraries, but not ghc.

Tried this out on rel12x86, works nice.

You can easily prevent *.hi files from being installed by adding post-install rule that runs something like find ${STAGEDIR} -name '*.hi' -delete.

This revision is now accepted and ready to land.Jan 20 2019, 7:45 AM

On closer inspection, it might be reasonable to have these .hi files installed. They are not large and if my guess is correct, they are for other applications linking with libHSpandoc-2.5-???.a. Thoughts?

Are you going to commit this, or want me to do that?

This revision was automatically updated to reflect the committed changes.