0001-io-glibc-read-data-pending.patch
The same as 1.0's.
In all-ruby: glibc-stdio.
██╗ ██████╗ ██████╗ ███║ ╚════██╗ ██╔════╝ ╚██║ █████╔╝ ███████╗ ██║ ██╔═══╝ ██╔═══██╗ ██║██╗███████╗██╗╚██████╔╝ ╚═╝╚═╝╚══════╝╚═╝ ╚═════╝
ruby-1.2.6ruby-1.2.6 -e 'print "Hello from Ruby ", VERSION, "\n"'~/samples/1.2.6/Not patched: 1.1b9_19 and later use <stdarg.h> themselves, so there’s no
varargs conversion, and glob.c includes <alloca.h> when configure
finds it, so all-ruby’s glob-alloca stops before 1.2.
make install puts seven extensions in lib/ruby/i686-linux/: curses, etc,
fcntl, kconv, md5, socket and tkutil (marshal moved into the
interpreter in 1.1), and 61 libraries in lib/ruby/.
1.2’s sample/test.rb runs ./miniruby, the interpreter make builds
before the extensions, where 1.0’s ran ./ruby, so scripts/test-ruby.mjs
links both names. Every case passes with -fwrapv in CC (bignum 8
failed without it; see Shared build settings)
and 0003, so knownTestFailures is empty. Ctrl-C raises Interrupt, as
in 1.0, so checks.interruptStatus is 1, and 1.0’s uninterruptible empty
loop do end is still there.
0003 only matters where the heap is above 2 GiB: in the guest, whose
3 GiB user address space puts it at 0xb7…, and on CI, where the 32-bit
container runs natively on an x86_64 kernel. Under emulation, as on Apple
silicon, qemu-user maps the program low, so pnpm test:ruby passes there
without it; CI’s run is the one that catches this kind of bug.
(test.rb’s marshal case crashed at line 922.)
sample/rbc.rb, installed as rbc-1.2.6, is irb’s forerunner, by the same
author. It tries to use readline, which 1.2 doesn’t have yet (it came with
1.3), so there’s no line editing, and Ctrl-C quits it.
The same as 1.0's.
In all-ruby: glibc-stdio.
The same as 1.0's.
error.c still sizes its Errno table with sys_nerr.
In all-ruby: error-sysnerr2.
FreeBSD only.
The same as 1.0's.
Marshal is in the interpreter in 1.2, rather than the marshal extension.