Package: ruby Version: 1:2.1.0.4 Followup-For: Bug #761803 Ruby 2.1 actually still does have fiddle extension. It just fails to build on Debian as shown in the ruby build logs.
Following patch fixes the problem: --- ruby2.1-2.1.2.orig/ext/fiddle/extconf.rb +++ ruby2.1-2.1.2/ext/fiddle/extconf.rb @@ -7,7 +7,8 @@ dir_config 'libffi' pkg_config("libffi") if ver = pkg_config("libffi", "modversion") ver = ver.gsub(/-rc\d+/, '') # If ver contains rc version, just ignored. - $defs.push(%{-DRUBY_LIBFFI_MODVERSION=#{ '%d%03d%03d' % ver.split('.') }}) + ver = ver.split('.') + [0] # If ver is two digits append extra 0 + $defs.push(%{-DRUBY_LIBFFI_MODVERSION=#{ '%d%03d%03d' % ver }}) end unless have_header('ffi.h') BTW these build products are NOT creaned by debian/ruels clean causing package rebuild to fail: rm -f \ enc/trans/big5.c \ enc/trans/chinese.c \ enc/trans/emoji.c \ enc/trans/emoji_iso2022_kddi.c \ enc/trans/emoji_sjis_docomo.c \ enc/trans/emoji_sjis_kddi.c \ enc/trans/emoji_sjis_softbank.c \ enc/trans/escape.c \ enc/trans/gb18030.c \ enc/trans/gbk.c \ enc/trans/iso2022.c \ enc/trans/japanese.c \ enc/trans/japanese_euc.c \ enc/trans/japanese_sjis.c \ enc/trans/korean.c \ enc/trans/single_byte.c \ enc/trans/utf8_mac.c \ enc/trans/utf_16_32.c \ ext/rbconfig/sizeof/sizes.c \ id.c \ id.h \ lex.c \ miniprelude.c \ newline.c \ parse.c \ parse.h \ probes.dmyh \ x86_64-linux-gnu-fake.rb -- System Information: Debian Release: 7.6 APT prefers stable APT policy: (990, 'stable'), (171, 'unstable'), (151, 'experimental'), (121, 'precise-updates'), (121, 'precise-security'), (121, 'precise'), (101, 'stable'), (101, 'oldstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.11-trunk-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages ruby depends on: ii ruby2.1 2.1.2-4 ruby recommends no packages. Versions of packages ruby suggests: pn ri <none> ii ruby1.8-dev [ruby-dev] 1.8.7.358-7.1+deb7u1 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org