Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562786 - sys-libs/ncurses-6: default include directory on Prefix
Summary: sys-libs/ncurses-6: default include directory on Prefix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-11 03:47 UTC by Benda Xu
Modified: 2015-10-14 05:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ncurses-6-include-subdir.patch (ncurses-6.patch,724 bytes, patch)
2015-10-11 03:48 UTC, Benda Xu
Details | Diff
ncurses-6-include-subdir.patch (ncurses-6-prefix.patch,856 bytes, patch)
2015-10-12 05:38 UTC, Benda Xu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benda Xu gentoo-dev 2015-10-11 03:47:55 UTC
The configure script of ncurses-6 tests ${prefix} against "/usr" to determine whether the include files should go directly into /usr/include or into a subdirectory /usr/include/ncurses.

The "/usr" test fails with "${EPREFIX}/usr" on Prefix.  This behavior can be overriden by --enable-overwrite, which let headers always go into ${prefix}/include.

Patch attached.  Please review.

Reproducible: Always
Comment 1 Benda Xu gentoo-dev 2015-10-11 03:48:29 UTC
Created attachment 414302 [details, diff]
ncurses-6-include-subdir.patch
Comment 2 SpanKY gentoo-dev 2015-10-11 06:13:15 UTC
Comment on attachment 414302 [details, diff]
ncurses-6-include-subdir.patch

>+	# "ncurses" variant goes into "${EPREFIX}"/usr/include
>+	if [[ ${target} == "ncurses" ]] ; then
>+		conf+=( --enable-overwrite )

move the comment inside the if statement and note that it's needed because the ncurses configure script will mess with the default otherwise
Comment 3 Benda Xu gentoo-dev 2015-10-12 05:38:21 UTC
Created attachment 414408 [details, diff]
ncurses-6-include-subdir.patch

Thanks Mike. Updated the patch based on your comment.
Comment 4 SpanKY gentoo-dev 2015-10-12 13:13:07 UTC
(In reply to Benda Xu from comment #3)

looks fine; feel free to commit
Comment 5 Benda Xu gentoo-dev 2015-10-14 05:42:08 UTC
Commited.  Thanks, Mike.