Page MenuHomeFreeBSD

Fixup devel/hs-c2hs and devel/hs-gtk2hs-buildtools to pass -std=c99 to the preprocessor

Authored by tcberner on Mar 21 2017, 6:53 PM.



The ports using c2hs and gtk2hs fail to build with modern compilers as the c11 features of the FreeBSD system headers are not hidden, yet the tools only understand c99.

  • revert change to devel/hs-ncurses from r436451
  • patch devel/hs-c2hs to pass -std=c99.
  • patch devel/hs-gtk2-buildtools to pass -std=c99.

This should fix compilation of

  • devel/hs-ncurses
  • dns/hs-gnuidn
  • graphics/hs-cairo
  • x11-toolkits/hs-vte
  • devel/hs-gconf

Diff Detail

rP FreeBSD ports repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

More of a "I trust you know all this Haskell black magic" than an actual review :-)

This revision is now accepted and ready to land.Mar 21 2017, 7:01 PM
antoine added a reviewer: gerald.

Please add to the commit log:
PR: 216707
Approved by: portmgr (antoine)

This revision was automatically updated to reflect the committed changes.