netbsd-curses
Package
Section titled “Package”- Check if
util-linuxlinks againstlibtinfo.soand if passing-lterminforesolves it - Check if
libedit,pcre2andutil-linuxexplicitly require passing-lterminfotoLIBSandLDFLAGS
netbsd-cursesattempts to runnbperfandticon the build system even when “cross-compiled”- If
CCequalsHOSTCCthennetbsd-cursesassumes we are not cross-compiling and setsCROSSCOMPILING=0 - While this is correct for
gcc, this is wrong forclangas it is a cross-compiler by default given the right set ofCFLAGS CROSSCOMPILING=1preventsCFLAGSfrom leaking intoCFLAGS_HOSTcausingnbperfandticto be natively built withHOSTCCCC="clang $CFLAGS"andHOSTCC=clangalso fixes this but is suboptimal
Package
Section titled “Package”- Do not provide
captoinfoorinfotocapas symlinks toticasnetbsd-curses’sticdoes not support-Ior-C
--as-neededensures that only what is needed is being used fromlibcurses.soandlibterminfo.so- Pass
-lcurses -lterminfoin this order
References
Section titled “References”- https://github.com/oasislinux/netbsd-curses
- https://github.com/sabotage-linux/netbsd-curses/commit/5874f9b1ced9c29d7d590d95e254b252f657a160.patch
- https://github.com/sabotage-linux/netbsd-curses/issues/39
- https://github.com/sabotage-linux/netbsd-curses/wiki/List-of-ncurses-users-in-debian
- https://implementality.blogspot.com/2020/04/thomas-e-dickey-on-netbsd-curses.html
- https://invisible-island.net/ncurses/ncurses-netbsd.html
- https://lists.alpinelinux.org/~alpine/devel/%3Ce12847f2-4cea-c3e8-84c3-e98b92553f8e%40dereferenced.org%3E
- https://lists.sr.ht/~carbslinux/carbslinux-devel/%3CGVXP194MB17585EDB2DCA129AC12A51F7977E9%40GVXP194MB1758.EURP194.PROD.OUTLOOK.COM%3E