[Bug 225834] [PATCH] lang/ghc: fails to build with ncurses from ports

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Feb 11 21:25:06 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225834

            Bug ID: 225834
           Summary: [PATCH] lang/ghc: fails to build with ncurses from
                    ports
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: haskell at FreeBSD.org
          Reporter: pawel at FreeBSD.org
             Flags: maintainer-feedback?(haskell at FreeBSD.org)
          Keywords: patch
          Assignee: haskell at FreeBSD.org

Created attachment 190521
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=190521&action=edit
ports ncurses build fix

After switch to clang for build, ghc fails to build with ncurses from ports:

configure: error: in
`/usr/local/ports/lang/ghc/work/ghc-8.0.2/libraries/terminfo':
configure: error: curses headers could not be found, so this package cannot be
built
See `config.log' for more details

NCURSESINC points to NCURSESBASE/include/ncurses while ncurses.h includes files
with path relative to include directory:

In file included from conftest.c:52:
/usr/local/include/ncurses/ncurses.h:60:10: fatal error:
'ncurses/ncurses_dll.h' file not found
#include <ncurses/ncurses_dll.h>
         ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Proposed patch fixes build by altering NCURSESINC. Was tested with ncurses from
base and ports on all supported releases.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-haskell mailing list