[opensuse-haskell] GHC 7.10.2 and ncurses-6.0
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. @ Peter is possible to have a look at GHC/terminfo? i tried before add to build.mk lines with config valuses for terminfo to use / link against ncurses 5.9 ABI , but terminfo configure it ignore. Best regards Ondrej -- To unsubscribe, e-mail: opensuse-haskell+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-haskell+owner@opensuse.org
Hello again,
I forget :
I try to build.mk add:
libraries/terminfo_CONFIGURE_OPTS =
--configure-option=--with-curses-includes=...
--configure-option=--with-curses-libraries=...
libraries/terminfo_CONFIGURE_OPTS += --configure-option='LDFALGS= ....
--configure-option='CFLAGS= ...'
with correct values from ncurses5-config and ncursesw5-config
Best Regards
Ondrej Sukup
On 2 October 2015 at 16:42, Ondřej Súkup
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.
@ Peter is possible to have a look at GHC/terminfo?
i tried before add to build.mk lines with config valuses for terminfo to use / link against ncurses 5.9 ABI , but terminfo configure it ignore.
Best regards Ondrej -- To unsubscribe, e-mail: opensuse-haskell+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-haskell+owner@opensuse.org
Hi Ondrej, I'll look into it next week. Peter Sent from a touch screen device.
On 02.10.2015, at 16:42, 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.
@ Peter is possible to have a look at GHC/terminfo?
i tried before add to build.mk lines with config valuses for terminfo to use / link against ncurses 5.9 ABI , but terminfo configure it ignore.
Best regards Ondrej -- To unsubscribe, e-mail: opensuse-haskell+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-haskell+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-haskell+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-haskell+owner@opensuse.org
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
hello,
it looks as Scott's patch is working also for older ncurses:) Now I
testing it in my home project.
On 4 October 2015 at 01:18, Scott Bahling
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 -- To unsubscribe, e-mail: opensuse-haskell+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-haskell+owner@opensuse.org
participants (3)
-
Ondřej Súkup
-
Peter Trommler
-
Scott Bahling