Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Feb 2018 21:25:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        haskell@FreeBSD.org
Subject:   [Bug 225834] [PATCH] lang/ghc: fails to build with ncurses from ports
Message-ID:  <bug-225834-16154@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225834

            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@FreeBSD.org
          Reporter: pawel@FreeBSD.org
             Flags: maintainer-feedback?(haskell@FreeBSD.org)
          Keywords: patch
          Assignee: haskell@FreeBSD.org

Created attachment 190521
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D190521&action=
=3Dedit
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 f=
iles
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225834-16154>