Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 776322 - dev-ruby/did_you_mean-1.5.0 rubygems.rb:16:in `require': cannot load such file -- rubygems/compatibility (LoadError)
Summary: dev-ruby/did_you_mean-1.5.0 rubygems.rb:16:in `require': cannot load such fil...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-15 09:59 UTC by Leonid Kopylov
Modified: 2021-05-01 05:21 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,4.13 KB, text/plain)
2021-03-15 09:59 UTC, Leonid Kopylov
Details
build.log (build.log,4.29 KB, text/plain)
2021-03-20 12:53 UTC, Leonid Kopylov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Kopylov 2021-03-15 09:59:08 UTC
# emerge -pqv '=dev-ruby/did_you_mean-1.5.0::gentoo'
[ebuild  N    ] dev-ruby/did_you_mean-1.5.0  USE="-test" RUBY_TARGETS="ruby25 ruby26 ruby27 ruby30"

# emerge --info '=dev-ruby/did_you_mean-1.5.0::gentoo'
Portage 3.0.17 (python 3.8.8-final-0, default/linux/amd64/17.1/desktop/systemd, gcc-10.2.0, glibc-2.32-r8, 5.11.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.11.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-10710U_CPU_@_1.10GHz-with-glibc2.2.5
KiB Mem:     8149636 total,   4595528 free
KiB Swap:    8388604 total,   8384216 free
Timestamp of repository gentoo: Sun, 14 Mar 2021 04:30:01 +0000
Head commit of repository gentoo: 4f5d54f3de545c323257b7caabd65065d5a42dd7
sh bash 5.1_p4
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p4::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          2.7.18_p7::gentoo, 3.8.8::gentoo, 3.9.2::gentoo, 3.10.0_alpha6-r2::gentoo
dev-util/cmake:           3.19.6::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/sandbox:         2.21::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA google-chrome OPERA-2018 PUEL AnyDesk-TOS geekbench TeamViewer microsoft-edge"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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 -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://mirror.isoc.org.il/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aacs aalib accessibility acl acpi addc addns ads afp afs alsa amd64 apidoc apng archive aspell audio audit authdaemond autoipd avif bdplus berkdb bidi bluetooth bluray bookmarks branding brotli bzip2 cacert cairo ccache cdda cddb cdio cdr cgroup-hybrid chromaprint chromium cli clockdiff codec2 colord conch conntrack contrib cookie_check corefonts creds cron crypt cryptsetup cscope cups curl dbus declarative designer device-mapper djvu dnd dns dns-over-tls doc dot doxysearch dri dts dvb dvd dvdr dynamic-loading emacs emboss encode eolconv equalizer examples exif experimental extra extras fam fbcon fdk ffmpeg firmware flac flite fontconfig fontforge fortran fribidi fuse games gconf gd gdbm geoclue geolocation gfile gif git gles2 gme gmp go google gopher gpg gphoto2 gpm graph graphviz gsettings gsm gssapi gstreamer gtk gtk-doc gui guile harfbuzz hdri heif help highlight howl-compat hpn html http http2 iconv icu idn imagemagick imlib importd inputlirc ios ipod ipv6 iscsi jadetex java jpeg json justify kerberos kvazaar ladspa latex lcms ldap ldap-bind ldap-sasl ldapdb leaps-timezone libass libcaca libde265 libdrm libglvnd libnotify librtmp libsoxr libtesseract libtirpc libv4l libzfs lirc lm-sensors lmdb localstorage location lua lzma mad magic mailutils man math mdadm mdnsresponder-compat mediawiki mediawiki-experimental metalink metric minizip mng modplug mongo mongodb mount mp3 mp4 mpeg mpfr mpx mtp mule multilib mysql nas nat natspec ncurses netgroups nethack netlink networkauth networkmanager nfs nftables nis nls nptl nscd nsplugin ntlm odbc odbcmanual offensive ogg openexr opengl openh264 openldap openmp openntpd opus orientation overlay overlays ovs pam pango parse-clocks pcap pci pcre pdf perl plugins png policykit pop positioning postfix postgres ppds pulseaudio pwhich python qml qrcode qt5 quota radius raw readline realtime remote repart rpc rtmp rubberband ruby samba sample sasl savedconfig sctp sdl sdl-image seccomp security-key sensord sensors slp smbkrb5passwd snapper snappy sndfile sndio snmp sound source source-highlight sox speex spell spidermonkey split-usr spoof-source spotlight sql sqlite srp srt ssh ssl startup-notification stunnel svg symlink sync-plugin-portage syslog systemd tcl tcpd teamd telnet terminal theora threads tiff tk tls-heartbeat tools trashquota truetype tty-helpers twolame udev udisks unicode upower usb user-session utils v4l vala valadoc vamp vidstab vim vim-pager vim-syntax vnc voices vorbis wayland webchannel webkit webp websockets widgets wifi winbind wininst wks-server wmf wps wxwidgets x11extras x264 x265 xattr xcb xemacs xetex xface xft xindy xinerama xinetd xkb xml xmlpatterns xmss xpm xscreensaver xv xvid xxhash yaml z3 zeroconf zeromq zimg zip zlib zmq zsh-completion zstd" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell wiki-publisher scripting-javascript" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby25 ruby26 ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="intel i965 iris vmware vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Leonid Kopylov 2021-03-15 09:59:32 UTC
Created attachment 691554 [details]
build.log
Comment 2 Leonid Kopylov 2021-03-15 14:30:13 UTC
# eselect ruby list
Available Ruby profiles:
  [1]   ruby25 (with Rubygems)
  [2]   ruby26 (with Rubygems)
  [3]   ruby27 (with Rubygems) *
  [4]   ruby30 (with Rubygems)

# eselect ruby set 4
Successfully switched to profile:
  ruby30


switching to ruby30 - didn't help
Comment 3 Mateusz Matejuk 2021-03-16 23:49:28 UTC
It seems that there are a lot of different issues around ruby. I have the same problem, i prevents me to perform proper fresh installation.
I am using systemd profile.
Technically, it is possible to downgrade but i am failing to emerge 1.4.0.
Comment 4 Ionen Wolkens gentoo-dev 2021-03-18 09:17:29 UTC
From a quick look may be widespread ruby issues affecting many packages.

I can reproduce if I add ruby27 to my RUBY_TARGETS, but no issues (for me) if just ruby26.
Comment 5 Leonid Kopylov 2021-03-18 09:18:54 UTC
i also have similar issue if i set only ruby26
Comment 6 Mateusz Matejuk 2021-03-18 10:52:30 UTC
Some of the packages in ~amd64 are pulling ruby30 either way. I tried ruby27 without any proper results. Currently, i am bypassing it by just adding --keep-going and leaving it did not fully update, but this is not a proper way.

Also i tried to mask some packages that are causing problems, but at some point i was just left with ruby installed directly to /
with error "can not create gemspec file".
Comment 7 Ionen Wolkens gentoo-dev 2021-03-18 11:03:20 UTC
(In reply to Mateusz Matejuk from comment #6)
> Some of the packages in ~amd64 are pulling ruby30 either way.
That's a long standing bug where ruby-single packages (ruby-fakegem is fine) try to get the latest supported ruby even if it's not needed nor in your TARGETS.

If you had "dev-lang/ruby -~amd64" in package.accept_keywords, then those packages will stop asking for it unless they genuinely don't have stable ruby support.
Comment 8 Ionen Wolkens gentoo-dev 2021-03-18 19:25:37 UTC
(In reply to Leonid Kopylov from comment #5)
> i also have similar issue if i set only ruby26
I assume your current ruby26 may be broken as well at this point and it's causing other things to fail. Emerging only-26 from scratch would probably work (does for me anyway).

With a broken ruby27 I'm getting this when installing rubygems (any version):
 * The ebuild is installing to one or more unexpected paths:
 * 
 *   /auto_gem.rb
 *   /rubygems
 *   /rubygems.rb
 *   /ubygems.rb

Likely because:
    local sld=$(ruby_rbconfig_value 'sitelibdir')
which is:
    ruby -rrbconfig -e "puts RbConfig::CONFIG['sitelibdir']"

Is failing and there's no error check causing quite a mess.
Comment 9 Leonid Kopylov 2021-03-20 12:35:56 UTC
even with ruby26 only installed, i have a lot of ruby-related packages unable to install
Comment 10 Leonid Kopylov 2021-03-20 12:52:03 UTC
dev-ruby/rdoc-6.1.2 failed with ruby26 error
Comment 11 Leonid Kopylov 2021-03-20 12:53:00 UTC
Created attachment 692589 [details]
build.log
Comment 12 Mateusz Matejuk 2021-04-25 14:21:33 UTC
Does anyone had any luck with this?
It blocks pretty large chunk of updates for ~amd64, including security ones.
Comment 13 Naohiro Aota gentoo-dev 2021-04-26 01:58:09 UTC
As I wrote in the comment below, we can workaround the problem by adding "--disable=did_you_mean" to ruby_rbconfig_value() in ruby-ng.eclass and ruby_fakegem_metadata_gemspec() in ruby-fakegem.eclass.

https://bugs.gentoo.org/705346#c5
Comment 14 Mateusz Matejuk 2021-04-26 17:37:14 UTC
Okay, sure, thank you very much. I will test it tonight.
I am not really familiar with Ruby that much, so I am unable to tell if that will mess something up down the line (for whatever is dependent on this) but i will try it, nonetheless, and report what happened. This is blocking the updates for more than 2 months now.
Comment 15 Mateusz Matejuk 2021-04-27 12:07:32 UTC
it works great as a bypass, but update still hangs on dev-ruby/minitest-5.14.4
https://bugs.gentoo.org/780900
Comment 16 Larry the Git Cow gentoo-dev 2021-05-01 05:21:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=922cd9af2eedc7e9dc5b8cae7dff419b53beefb5

commit 922cd9af2eedc7e9dc5b8cae7dff419b53beefb5
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2021-05-01 05:08:07 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2021-05-01 05:11:22 +0000

    ruby-ng.eclass: die on errors in ruby_rbconfig_value
    
    Die on errors in ruby_rbconfig_value, so that any issues with it cause
    an immediate stop, rather than returning a nil value which may
    propagate into installed ebuilds and cause hard-to-diagnose issues.
    
    Closes: https://bugs.gentoo.org/776322
    
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 eclass/ruby-ng.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)