* [PATCH] console: workaround safe warnings in outdated `curses' gem
@ 2022-01-15 6:11 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2022-01-15 6:11 UTC (permalink / raw)
To: dtas-all
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 }
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-15 6:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-15 6:11 [PATCH] console: workaround safe warnings in outdated `curses' gem Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/dtas.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).