From f0da7e664140cb1000d22db5509168b3d82b728b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 15 Jan 2022 06:11:38 +0000 Subject: console: workaround safe warnings in outdated `curses' gem Debian bullseye users are stuck with ruby-curses 1.2.4, which means they'll hit rb_safe_level warnings with Ruby 2.7+. cf. https://bugs.debian.org/958973 --- bin/dtas-console | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/dtas-console b/bin/dtas-console index 7a7ed6c..e02dda4 100755 --- a/bin/dtas-console +++ b/bin/dtas-console @@ -18,6 +18,9 @@ rescue LoadError abort "please install the 'curses' RubyGem to use #$0" end +# workaround https://bugs.debian.org/958973 +$VERBOSE = nil if RUBY_VERSION.to_f < 3.0 + tsec = false se = DTAS::Sigevent.new trap(:WINCH) { se.signal } -- cgit v1.2.3-24-ge0c7