Using Ruby 2.0.0-preview2 (RubyGems 2.0.0), the gem was failing to install with this error: ... ... installing default termios libraries /usr/bin/install: `./lib/termios.rb' and `/path/to/gems/ruby-termios-0.9.6/lib/termios.rb' are the same file make: *** [/path/to/gems/ruby-termios-0.9.6/lib/termios.rb] Error 1 The solution, as pointed to by Kouhei Sutou, was to move extconf.rb and termios.c to a new ext/ directory. This is in a similar manner to the BigDecimal bug #7344. 1 - rubygems/rubygems#411 (comment) 2 - http://bugs.ruby-lang.org/issues/7344#note-6 Tested-by: Mark Somerville <email@example.com> [F17, MRI 1.9.3/2.0.0-preview2] Signed-off-by: Mark Somerville <firstname.lastname@example.org>
* termios.c: added IOCTL_COMMANDS, IOCTL_COMMAND_NAMES, MODEM_SIGNALS, MODEM_SIGNAL_NAMES, PTY_PACKET_OPTIONS, PTY_PACKET_OPTION_NAMES, LINE_DISCIPLINES and LINE_DISCIPLINE_NAMES. This change is contributed from Chris Hoffman <chrishoffman_cardialife.com>. * termios.c, extconf.rb: included <sys/ioctl.h>.