netbsd-curses
netbsd-cursesattempts to run cross-compilednbperfandticon the build system:- unset
HOSTCC; does not work if hostclangis being used with--targetand--sysrootto cross-compile the rest ofnetbsd-curses - or set
HOSTCC=gccif you are usingclangand the host is usinggcc; easiest as hostgccis not a cross-compiler by default - or remove
--targetand--sysrootfromCFLAGSif using hostclang
- unset
- If
CCdoes not equalHOSTCCthennetbsd-cursesassumes we are cross-compiling and setsCROSSCOMPILING=1 CROSSCOMPILING=1does not allowCFLAGSto be inCFLAGS_HOSTwhich are used for buildingnbperfandticwithHOSTCC
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 libedit,pcre2andutil-linuxrequire explicitly passing-lterminfotoLIBSandLDFLAGSutil-linuxandyashlink againstlibtinfo.so; check if passing-lterminforemoves this need?
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