0001-convert-varargs-to-stdarg.patch
The same as 0.95's.
██████╗ ██╗ ██╗ █████╗ ██╔═████╗██║ ██║██╔══██╗ ██║██╔██║███████║╚██████║ ████╔╝██║╚════██║ ╚═══██║ ╚██████╔╝██╗ ██║ █████╔╝ ╚═════╝ ╚═╝ ╚═╝ ╚════╝
ruby-0.49ruby-0.49 -e 'print("Hello from Ruby ", $VERSION, "\n")'~/samples/0.49/The oldest Ruby in all-ruby, from 18 July 1994, 17 months before the first
public release. It’s Ruby before most of what makes it look like Ruby:
constants are spelt %name and true is %TRUE, the arguments are
$ARGV, the version is $VERSION, exceptions are caught with
protect ... resque ... end. There is no ext/ or lib/: sockets are
built into the interpreter (as dbm would be, given <ndbm.h>), so the
install is just bin/ruby.
Unlike the bugs left alone in 0.95 and 1.0, 0009 is patched because it
takes down the interpreter on the most common mistake there is, a misspelt
method name, including any method 0.49 doesn’t have yet (File.open,
Integer()).
sample/test.rb only prints its arguments, so testSuite is false, and
the samples are the only checks of the interpreter beyond -e. One bug
matters for checks.http: TCPsocket.open stores a numeric port without
htons(), so TCPsocket.open(host, 80) connects to port 20480 and hangs.
A service name goes through getservbyname(), which returns it in network
order, so the check opens "http" (which needs /etc/services, from the
guest’s netbase). Ctrl-C kills it with SIGINT, as for 0.95.
The same as 0.95's.
The same as 0.95's.
In all-ruby: ruby-errno3.
yyerror() calls Error() before its definition, which the conversion
made variadic, so the implicit declaration no longer matches. It’s now
declared first, as int.
In all-ruby: error-error2.
It declares Error() void, which still conflicts.
struct_new() calls va_end(vargs) on a variable that doesn’t exist,
which <varargs.h> ignored.
In all-ruby: struct-va_end2.
time.c uses localtime(), gmtime() and strftime() without
<time.h>. Harmless on i386, and GCC 12 only warns, but GCC 14 rejects it.
In all-ruby: time-time2.
io.c reads Linux libc 5’s _gptr and _egptr, which glibc calls
_IO_read_ptr and _IO_read_end.
all-ruby renames them in its Rakefile.
There’s no <ndbm.h>, so the dbm class is left out.
In all-ruby: defines-nodbm.
crypt() is in libcrypt, which this configure doesn’t look for.
all-ruby sets LIBS=-lcrypt for 0.49 to 0.60.
rb_undefined() converts the method’s ID with NUM2INT() as if it were a
Fixnum, which dereferences most IDs as object pointers, so every call to
an undefined method crashed with a segfault instead of raising an error. It
now uses the ID as it is.