[前][次][番号順一覧][スレッド一覧]

ruby-changes:71947

From: nicholas <ko1@a...>
Date: Wed, 25 May 2022 06:34:44 +0900 (JST)
Subject: [ruby-changes:71947] d020334e9e (master): [ruby/reline] Workaround libncurses.so as a linker script

https://git.ruby-lang.org/ruby.git/commit/?id=d020334e9e

From d020334e9ee6d978bbed09ce96a03a6d6d2490a6 Mon Sep 17 00:00:00 2001
From: "nicholas a. evans" <nicholas.evans@g...>
Date: Wed, 6 Apr 2022 18:31:48 -0400
Subject: [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 https://github.com/ruby/ruby/blob/trunk/lib/reline/terminfo.rb#L24
     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
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]