Description: Restore Fixnum alias for Ruby >= 3.2 compatibility
 Ruby 3.2 removed the Fixnum constant (it had been an alias of Integer
 since Ruby 2.4).  The Dobjects library shipped with ruby-tioga still
 opens `class Fixnum` in Dvector_extras.rb and Dtable_extras.rb to add
 arithmetic operators, which crashes with a NameError when Tioga is
 loaded on modern Ruby.  Define `Fixnum = Integer` before requiring
 Tioga/FigureMaker so that the pre-3.2 behaviour is preserved and the
 man page generation step (and the ctioga2 program itself) works again
 under Ruby 3.2+.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-10-13

--- ctioga2-0.14.1.orig/lib/ctioga2/plotmaker.rb
+++ ctioga2-0.14.1/lib/ctioga2/plotmaker.rb
@@ -100,6 +100,13 @@
 # backend unless another range was explicitly specified.
 
 # Maybe, maybe, maybe... We need tioga ?
+#
+# Ruby >= 3.2 removed the Fixnum constant (it was an alias of Integer
+# since Ruby 2.4).  The Dobjects library shipped with ruby-tioga still
+# opens `class Fixnum` in Dvector_extras.rb / Dtable_extras.rb to add
+# arithmetic operators, which crashes with a NameError on modern Ruby.
+# Keep the pre-3.2 alias so that Tioga loads fine.
+Fixnum = Integer unless defined?(Fixnum)
 require 'Tioga/FigureMaker'
 
 require 'ctioga2/utils'
