Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585528 - dev-libs/sdformat-4.1.0 : /.../rubygems.rb:15:in `require': cannot load such file -- rubygems/compatibility (LoadError)
Summary: dev-libs/sdformat-4.1.0 : /.../rubygems.rb:15:in `require': cannot load such ...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
Depends on:
Reported: 2016-06-10 14:15 UTC by Toralf Förster
Modified: 2017-09-29 16:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

dev-libs:sdformat-4.1.0:20160610-103512.log (dev-libs:sdformat-4.1.0:20160610-103512.log,163.30 KB, text/plain)
2016-06-10 14:15 UTC, Toralf Förster
emerge-history.txt (emerge-history.txt,124.81 KB, text/plain)
2016-06-10 14:15 UTC, Toralf Förster
environment (environment,112.60 KB, text/plain)
2016-06-10 14:15 UTC, Toralf Förster

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2016-06-10 14:15:31 UTC
[ 39%] Running xml schema compiler on actor.sdf
cd /var/tmp/portage/dev-libs/sdformat-4.1.0/work/sdformat-4.1.0_build/sdf/1.5 && /usr/bin/ruby /var/tmp/portage/dev-libs/sdformat-4.1.0/work/sdformat-4.1.0/tools/xmlschema.rb -s /var/tmp/portage/dev-libs/sdformat-4.1.0/work/sdformat-4.1.0/sdf/1.5 -i /var/tmp/portage/dev-libs/sdformat-4.1.0/work/sdformat-4.1.0/sdf/1.5/actor.sdf -o /var/tmp/portage/dev-libs/sdformat-4.1.0/work/sdformat-4.1.0_build/s
/usr/lib64/ruby/2.0.0/rubygems.rb:15:in `require': cannot load such file -- rubygems/compatibility (LoadError)
	from /usr/lib64/ruby/2.0.0/rubygems.rb:15:in `<top (required)>'
	from <internal:gem_prelude>:1:in `require'
	from <internal:gem_prelude>:1:in `<compiled>'

$ cat emerge-info.txt

  This is an unstable amd64 chroot image (named amd64-gnome-unstable_20160608-203042) at a hardened host acting as a tinderbox.


  make.conf: USE="sse2 pax_kernel xtpax -cdinstall -oci8 -bindist aes-ni alisp avformat cddb consolekit curl custom-cflags dbus dnssec extra fortran fpm -freetds gd gles2 graphtft gtkstyle -gui hdf5 icu -inifile ithreads javascript jpeg llvm mad midi modplug mp4 mta nls nscd -obj openssl pcre16 pkcs11 qml rdoc scrypt source sql ssse3 system-cairo -system-ffmpeg system-harfbuzz system-icu system-libs ufed v4l vdpau x265 xetex xslt zip"


Portage 2.3.0_rc1 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/gnome, gcc-5.3.0, glibc-2.23-r2, 4.5.7-hardened x86_64)
System uname: Linux-4.5.7-hardened-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16157888 total,   7474616 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Fri, 10 Jun 2016 10:02:17 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2-r2::gentoo
sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo

    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://
    priority: 1

    location: /usr/local/portage
    masters: gentoo
    priority: 2

ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=native -O2 -pipe"
CONFIG_PROTECT="/etc /usr/lib64/tomoyo/conf /usr/share/config /var/lib/hsqldb /var/lib/otrs/Kernel/ /var/lib/otrs/Kernel/Config/"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
EMERGE_DEFAULT_OPTS="--verbose-conflicts --color=n --nospinner --tree --quiet-build"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox parallel-fetch preserve-libs protect-owned sandbox sfperms strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" rsync:// rsync://"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
USE="X a52 aac acl acpi aes-ni alisp alsa amd64 avformat berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli colord consolekit cracklib crypt cups curl custom-cflags cxx dbus dnssec dri dts dvd dvdr eds emboss encode evo exif extra fam firefox flac fortran fpm gd gdbm gif glamor gles2 gnome gnome-keyring gnome-online-accounts gpm graphtft gstreamer gtk gtkstyle hdf5 iconv icu introspection ipv6 ithreads javascript jpeg lcms ldap libnotify libsecret llvm mad midi mmx mmxext mng modplug modules mp3 mp4 mpeg mta multilib nautilus ncurses nls nptl nscd ogg opengl openmp openssl pam pango pax_kernel pcre pcre16 pdf pkcs11 png policykit ppds pulseaudio qml qt3support qt4 rdoc readline scrypt sdl seccomp session source spell sql sse sse2 ssl ssse3 startup-notification svg system-cairo system-harfbuzz system-icu system-libs tcpd tiff tracker truetype udev udisks ufed unicode upower usb v4l vdpau vorbis wxwidgets x264 x265 xattr xcb xetex xml xslt xtpax xv xvid zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 1 Toralf Förster gentoo-dev 2016-06-10 14:15:34 UTC
Created attachment 437060 [details]
Comment 2 Toralf Förster gentoo-dev 2016-06-10 14:15:36 UTC
Created attachment 437062 [details]
Comment 3 Toralf Förster gentoo-dev 2016-06-10 14:15:39 UTC
Created attachment 437064 [details]
Comment 4 Oleh 2017-09-15 04:24:22 UTC
sdformat missing rubygems build dependency, installing it solves the build failures. that's for sdformat-5.2.0 which is the only version existing in portage tree.
Comment 5 Dennis Schridde 2017-09-20 05:58:42 UTC
(In reply to Oleg from comment #4)
> sdformat missing rubygems build dependency, installing it solves the build
> failures. that's for sdformat-5.2.0 which is the only version existing in
> portage tree.

For bug #631398 this was fixed [1] by trying all available ruby interpreters until one is found that can build the package.

Another option might be to set USE_RUBY="ruby22 ..." and also DEPEND="ruby_targets_ruby22? ( virtual/rubygems[ruby_targets_ruby22] ) ..." (Ruby 2.2 being just an example) and then make the build scripts use a Ruby interpreter which satisfies this.  The Ruby eclass might have a means to figure this out.

[1]: In
Comment 6 Oleh 2017-09-22 05:53:03 UTC
no idea about reference for android-tools, if your point that similar approach could work for sdformat, then,  i cannot tell as i not any kind of ruby user. i can try to mimic the fix in [1].
Comment 7 Oleh 2017-09-29 16:02:12 UTC
android-tools fix is not applicable to sdformat or it needs modification.