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
Created attachment 414302 [details, diff] ncurses-6-include-subdir.patch
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
Created attachment 414408 [details, diff] ncurses-6-include-subdir.patch Thanks Mike. Updated the patch based on your comment.
(In reply to Benda Xu from comment #3) looks fine; feel free to commit
Commited. Thanks, Mike.