From d020334e9ee6d978bbed09ce96a03a6d6d2490a6 Mon Sep 17 00:00:00 2001 From: "nicholas a. evans" Date: Wed, 6 Apr 2022 18:31:48 -0400 Subject: [PATCH] [ruby/reline] Workaround libncurses.so as a linker script This maybe isn't probably isn't the best approach, but it will allow `Fiddle::Terminfo.curses_dl` to work. I documented more details about this in an issue on fiddle: https://github.com/ruby/fiddle/issues/107 It is probably better to deal with it there. But this is workaround is simpler. FYI: `reline` itself seems to be working just fine for me _without_ loading ncurses. But I wanted to be able to use `Reline::Terminfo` for my own projects. :) https://github.com/ruby/reline/commit/fd4bdb35e2 --- lib/reline/terminfo.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/reline/terminfo.rb b/lib/reline/terminfo.rb index f53642b919..6cd78f5660 100644 --- a/lib/reline/terminfo.rb +++ b/lib/reline/terminfo.rb @@ -24,7 +24,8 @@ module Reline::Terminfo when /darwin/ %w[libncursesw.dylib libcursesw.dylib libncurses.dylib libcurses.dylib] else - %w[libncursesw.so libcursesw.so libncurses.so libcurses.so] + %w[libncursesw.so libcursesw.so libncurses.so libcurses.so + libncursesw.so.6 libncurses.so.6] end end