dtas-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] console: workaround safe warnings in outdated `curses' gem


From: Eric Wong
Subject: [PATCH] console: workaround safe warnings in outdated `curses' gem
Date: Sat, 15 Jan 2022 06:11:38 +0000

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 @@
   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 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]