On Fri, 2015-10-02 at 16:42 +0200, Ondřej Súkup wrote:
Hello all,
We have serious problem with ncurses-6.0 in Tumbleweed/Factory. Our workaround 'ncurses6.patch" allow us build GHC but causes segfaults in 'ghci" or any other terminal interaction with terminfo library.
Yeah, the _nc_cur_term symbol is a private function related to, but not substitutable for the cur_term struct itself. I had a look at the Haskell and ncurses code today, and took a stab at a patch to remove the direct access to the cur_term global and stick to the low level functions - which are available with the openSUSE ncurses6 build. The package compiles, and I quickly tested ghci which seems to work. I'm not sure how to fully test this patch though. Would be good to have someone with more Haskell background review the code. There might be a better way to do this. Patch: https://build.opensuse.org/package/view_file/home:sbahling:branches:devel:la... -Scott