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:   maintainer-feedback requested: [Bug 225834] [PATCH] lang/ghc: fails to build with ncurses from ports
Message-ID:  <bug-225834-16154-ByXwiHId7r@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-225834-16154@https.bugs.freebsd.org/bugzilla/>
References:  <bug-225834-16154@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Pawel Pekala <pawel@FreeBSD.org> has reassigned Bugzilla Automation
<bugzilla@FreeBSD.org>'s request for maintainer-feedback to
haskell@FreeBSD.org:
Bug 225834: [PATCH] lang/ghc: fails to build with ncurses from ports
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225834



--- Description ---
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.



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