0001-convert-varargs-to-stdarg.patch
GCC no longer implements <varargs.h>; the variadic functions now use
<stdarg.h> with prototypes.
Generated with all-ruby’s converter.
██████╗ █████╗ ███████╗ ██╔═████╗ ██╔══██╗██╔════╝ ██║██╔██║ ╚██████║███████╗ ████╔╝██║ ╚═══██║╚════██║ ╚██████╔╝██╗█████╔╝███████║ ╚═════╝ ╚═╝╚════╝ ╚══════╝
ruby-0.95ruby-0.95 -e 'print "hello\n"'~/samples/0.95/Not patched: sys_errlist only appears in missing/strerror.c, which
isn’t built because configure finds strerror, and nothing in ext/ is
enabled in 0.95’s ext/Setup (bar tkutil, which is skipped without Tk),
so there are no shared libraries to link.
One case in sample/test.rb fails, and is expected to: array 2, because
[0, 1, 2, 3, 4][1..3] returns []. That’s a bug in 0.95 itself
(beg_len() in array.c tests beg < end where it means beg > end), so
it is left alone and listed under knownTestFailures; the test fails if
anything else fails, or if that case starts passing.
GCC no longer implements <varargs.h>; the variadic functions now use
<stdarg.h> with prototypes.
Generated with all-ruby’s converter.
extern int errno; doesn’t link against glibc’s thread-local errno;
ruby.h now includes <errno.h>.
glob.c declared alloca() as an external function under GCC, and glibc
has none; it now includes <alloca.h>.
io.c didn’t recognise modern glibc’s stdio and fell back to an undefined
ReadDataPending(); it now reads glibc’s buffer pointers.
Assigning to a local evaluates the value and stores it in
the_scope->local_vars in one C expression, but evaluating it can move that
array (the first gets adds $_ to it, and eval can add locals). C
doesn’t say which comes first, and modern GCC reads the pointer first, so
the value went into the freed array: with two locals already set,
l = eval("q = 5; r = 6; s = 7; q + 1") left l as nil. The value is now
evaluated first, as in 1.2.