Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ruby 2.7.0 bug
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pewpewboi
n00b
n00b


Joined: 11 Mar 2021
Posts: 10

PostPosted: Mon Mar 15, 2021 6:39 am    Post subject: Ruby 2.7.0 bug Reply with quote

So I just changed my ACCEPT_KEYWORDS to ~amd64.

When I ran a portage upgrade after this, half of the system upgraded to the testing branch and the rest half is stuck because of some ruby packages failing to install.
I can't even use --keep-going.

Here is the log from emerge.
Code:

Calculating dependencies... done!                                                                                                                                [70/1996]
 * Package:    dev-ruby/power_assert-2.0.0
 * Repository: gentoo
 * Maintainer: ruby@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux ruby_targets_ruby26 ruby_targets_ruby27 ruby_targets_ruby30 userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
 * Running unpack phase for all ...
>>> Unpacking power_assert-2.0.0.tar.gz to /var/tmp/portage/dev-ruby/power_assert-2.0.0/work/all
>>> Source unpacked in /var/tmp/portage/dev-ruby/power_assert-2.0.0/work
>>> Preparing source in /var/tmp/portage/dev-ruby/power_assert-2.0.0/work ...
 * Running prepare phase for all ...
 * Running prepare phase for all ...
 * Running source copy phase for ruby26 ...
 * Running source copy phase for ruby27 ...
 * Running source copy phase for ruby30 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/power_assert-2.0.0/work ...
 * Running configure phase for ruby26 ...
 * Running configure phase for ruby27 ...
 * Running configure phase for ruby30 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ruby/power_assert-2.0.0/work ...
 * Running compile phase for ruby26 ...
 * Running compile phase for ruby27 ...
 * Running compile phase for ruby30 ...
 * Running compile phase for all ...
>>> Source compiled.
 * Skipping make test/check due to ebuild restriction.
>>> Test phase [disabled because of RESTRICT=test]: dev-ruby/power_assert-2.0.0

>>> Install dev-ruby/power_assert-2.0.0 into /var/tmp/portage/dev-ruby/power_assert-2.0.0/image
 * Running install phase for ruby26 ...
 * Running install phase for ruby27 ...
Traceback (most recent call last):
        3: from <internal:gem_prelude>:1:in `<internal:gem_prelude>'
        2: from <internal:gem_prelude>:1:in `require'
        1: from /usr/lib64/ruby/2.7.0/rubygems.rb:16:in `<top (required)>'
/usr/lib64/ruby/2.7.0/rubygems.rb:16:in `require': cannot load such file -- rubygems/compatibility (LoadError)
 * ERROR: dev-ruby/power_assert-2.0.0::gentoo failed (install phase):
 *   Unable to generate gemspec file.
 *
 * Call stack:
 *     ebuild.sh, line  125:  Called src_install
 *   environment, line 2154:  Called ruby-ng_src_install
 *   environment, line 1798:  Called _ruby_each_implementation 'each_ruby_install'
 *   environment, line  549:  Called _ruby_invoke_environment 'ruby27' 'each_ruby_install'
 *   environment, line  674:  Called each_ruby_install
 *   environment, line  895:  Called each_fakegem_install
 *   environment, line  848:  Called ruby_fakegem_install_gemspec
 *   environment, line 2050:  Called die
 * The specific snippet of code:
 *       fi ) || die "Unable to generate gemspec file.";
 *
 * If you need support, post the output of `emerge --info '=dev-ruby/power_assert-2.0.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-ruby/power_assert-2.0.0::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-ruby:power_assert-2.0.0:20210315-061556.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-ruby/power_assert-2.0.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/power_assert-2.0.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-ruby/power_assert-2.0.0/work/ruby27/power_assert-2.0.0'
 * S: '/var/tmp/portage/dev-ruby/power_assert-2.0.0/work/ruby27/power_assert-2.0.0'
 * One or more packages are either masked or have missing dependencies:
 *
 *   >=dev-ruby/power_assert-1.1.3[ruby_targets_ruby26] pulled in by:
 *     (dev-lang/ruby-2.6.6-r3:2.6/2.6::gentoo, installed)
 *
 *
 *   >=dev-ruby/power_assert-1.2.0[ruby_targets_ruby30] pulled in by:
 *     (dev-lang/ruby-3.0.0-r2:3.0/3.0::gentoo, installed)
 *
 *   >=dev-ruby/power_assert-1.1.7[ruby_targets_ruby27] pulled in by:
 *     (dev-lang/ruby-2.7.2-r1:2.7/2.7::gentoo, installed)
 *
 * The resume list contains packages that are either masked or have
 * unsatisfied dependencies. Please restart/continue the operation
 * manually, or use --skipfirst to skip the first package in the list and
 * any other packages that may be masked or have missing dependencies.
 *
 * The following package has failed to build, install, or execute postinst:
 *
 *  (dev-ruby/power_assert-2.0.0:0/0::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/log/portage/dev-ruby:power_assert-2.0.0:20210315-061556.log'
 *

 * Regenerating GNU info directory index...
 * Processed 104 info files.

!!! existing preserved libs:
>>> package: dev-lang/mujs-1.1.0
 *  - /usr/lib64/libmujs.so.1.0.9
 *      used by /usr/bin/mupdf-gl (app-text/mupdf-1.18.0-r3)
 *      used by /usr/bin/mutool (app-text/mupdf-1.18.0-r3)
 *      used by /usr/lib64/libmupdf.so.1.18.0 (app-text/mupdf-1.18.0-r3)
Use emerge @preserved-rebuild to rebuild packages using these libraries



And I tried unmerging all of ruby and emerging again which basically throws the same error. (Some errors here were likely because rubygems was lower on the emerge list)

In my make.conf I have..
Code:
RUBY_TARGETS="ruby26 ruby27 ruby30"

which was originally just ruby26 before switching to ~amd64 but then I had to add a bunch of ruby_targets_ruby** to package.use so I just put them here.

Also to further narrow it to ruby packages reporting some rubygems/compatibility file not being found, I ran a find command in /usr/lib64/ruby/site-packages and there seems to be no compatibility.rb in ruby 2.7
Code:
$ find /usr/lib64/ruby/site_ruby/ -iname compatibility.rb

/usr/lib64/ruby/site_ruby/2.6.0/rubygems/compatibility.rb
/usr/lib64/ruby/site_ruby/3.0.0/rubygems/compatibility.rb


This is really just disabling me from updating my system. Is there any way to fix this problem?

Here's my emerge --info btw:
Code:

Portage 3.0.13 (python 3.8.8-final-0, default/linux/amd64/17.1, gcc-9.3.0, glibc-2.32-r8, 5.11.2-gentooO5C1lli4 x86_64)
=================================================================
sh bash 5.1_p4
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p4::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          2.7.18_p7::gentoo, 3.8.8::gentoo, 3.9.2::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.21::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo, 2.71::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            9.3.0-r2::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-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:

ABI="amd64"
ABI_X86="64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
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"
ARCH="amd64"
AUTOCLEAN="yes"
BINPKG_COMPRESS="bzip2"
BOOTSTRAP_USE="unicode internal-glib pkg-config split-usr python_targets_python3_8 multilib"
BROOT=""
CALLIGRA_FEATURES="karbon sheets words"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=sandybridge"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules/*"
COMMON_FLAGS="-O2 -pipe -march=sandybridge"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CPU_FLAGS_X86="mmx mmxext sse sse2"
CXXFLAGS="-O2 -pipe -march=sandybridge"
DEFAULT_ABI="amd64"
DISPLAY=":0"
DISTDIR="/var/cache/distfiles"
EDITOR="/usr/bin/vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=4 --verbose"
EMERGE_WARNING_DELAY="10"
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"
EPREFIX=""
EROOT="/"
ESYSROOT="/"
FCFLAGS="-O2 -pipe -march=sandybridge"
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"
FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -LtvP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; eval \"declare -a ssh_opts=(\${3})\" ; exec sftp \${port:+-P \${port}} \"\${ssh_opts[@]}\" \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FFLAGS="-O2 -pipe -march=sandybridge"
GCC_SPECS=""
GENTOO_MIRRORS="https://mirrors.aliyun.com/gentoo/ http://mirrors.aliyun.com/gentoo/ https://mirrors.163.com/gentoo/ http://mirrors.163.com/gentoo/ https://mirrors.tuna.tsinghua.edu.cn/gentoo http://gentoo.aditsu.net:8000/ https://mirror.rackspace.com/gentoo/ http://mirror.rackspace.com/gentoo/ ftp://mirror.rackspace.com/gentoo/ rsync://mirror.rackspace.com/gentoo/ https://download.nus.edu.sg/mirror/gentoo/ http://download.nus.edu.sg/mirror/gentoo/ rsync://download.nus.edu.sg/gentoo/"
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"
HUSHLOGIN="FALSE"
INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.35.2/info:/usr/share/info"
INPUT_DEVICES="libinput"
IUSE_IMPLICIT="abi_x86_64 prefix prefix-guest prefix-stack"
KERNEL="linux"
LANG="en_US.utf8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_MESSAGES="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_amd64="-m elf_x86_64"
LDFLAGS_x32="-m elf32_x86_64"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe %s"
LIBDIR_amd64="lib64"
LIBDIR_x32="libx32"
LIBDIR_x86="lib"
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
LUA_SINGLE_TARGET="lua5-1"
LUA_TARGETS="lua5-1"
MAIL="/var/mail/MYUSERNAMEHIDDEN"
MAKEOPTS="-j5 -l4"
MANPAGER="manpager"
MANPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.35.2/man:/usr/local/share/man:/usr/share/man:/usr/lib/rust/man:/usr/lib/llvm/11/share/man"
MOTD_SHOWN="pam"
MOZ_GMP_PATH="/usr/lib64/nsbrowser/plugins/gmp-gmpopenh264/system-installed"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec|llvm)"
NOCOLOR="true"
OFFICE_IMPLEMENTATION="libreoffice"
OLDPWD="/home/MYUSERNAMEHIDDEN/.wine/drive_c"
PAGER="/usr/bin/less"
PHP_TARGETS="php7-3 php7-4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_ARCHLIST="alpha amd64 amd64-linux arm arm-linux arm64 arm64-linux arm64-macos hidden hppa ia64 m68k mips ppc ppc-macos ppc64 ppc64-linux riscv s390 sparc sparc-solaris sparc64-solaris x64-cygwin x64-macos x64-solaris x64-winnt x86 x86-linux x86-solaris x86-winnt"
PORTAGE_BIN_PATH="/usr/lib/portage/python3.8"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_INTERNAL_CALLER="1"
PORTAGE_LOGDIR="/var/log/portage"
PORTAGE_LOGDIR_CLEAN="find "${PORTAGE_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete"
PORTAGE_OVERRIDE_EPREFIX=""
PORTAGE_PYM_PATH="/usr/lib/python3.8/site-packages"
PORTAGE_PYTHONPATH="/usr/lib/python3.8/site-packages"
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_RSYNC_RETRIES="-1"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTAGE_XATTR_EXCLUDE="btrfs.* security.evm security.ima    security.selinux system.nfs4_acl user.apache_handler    user.Beagle.* user.dublincore.* user.mime_encoding user.xdg.*"
POSTGRES_TARGETS="postgres10 postgres11"
PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USERLAND USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL USE_EXPAND_VALUES_USERLAND"
PROMPT_COMMAND="eval $WRAP && $LS_CMD && eval $WRAP"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_8"
PYTHON_TARGETS="python3_8"
QT_QPA_PLATFORMTHEME="qt5ct"
RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -LtvP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
ROOT="/"
ROOTPATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/11/bin"
RPMDIR="/var/cache/rpm"
RUBY_TARGETS="ruby26 ruby27 ruby30"
SHELL="/bin/bash"
SHLVL="3"
SYMLINK_LIB="no"
SYSROOT="/"
TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
UNINSTALL_IGNORE="/lib/modules/* /var/run /var/lock"
USE="X acl alsa amd64 bash-completion berkdb bzip2 cli crypt dri elogind fortran gdbm iconv ipv6 libglvnd libtirpc lz4 multilib ncurses nls nptl opencl opengl openmp pam pcre pulseaudio readline seccomp smp sound split-usr ssl tcpd terminal udev unicode usb v4l vaapi vdpau vulkan x264 xattr xft zlib" ABI_X86="64" 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="mmx mmxext sse sse2" 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="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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="ruby26 ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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"
USERLAND="GNU"
USE_EXPAND="ABI_MIPS ABI_PPC ABI_RISCV ABI_S390 ABI_X86 ADA_TARGET ALSA_CARDS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CPU_FLAGS_ARM CPU_FLAGS_PPC CPU_FLAGS_X86 CURL_SSL ELIBC ENLIGHTENMENT_MODULES FFTOOLS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL L10N LCD_DEVICES LIBREOFFICE_EXTENSIONS LIRC_DEVICES LLVM_TARGETS LUA_SINGLE_TARGET LUA_TARGETS MONKEYD_PLUGINS NGINX_MODULES_HTTP NGINX_MODULES_MAIL NGINX_MODULES_STREAM OFED_DRIVERS OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PHP_TARGETS POSTGRES_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS ROS_MESSAGES RUBY_TARGETS SANE_BACKENDS USERLAND UWSGI_PLUGINS VIDEO_CARDS VOICEMAIL_STORAGE XFCE_PLUGINS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="ABI_MIPS ABI_PPC ABI_RISCV ABI_S390 CPU_FLAGS_ARM CPU_FLAGS_PPC ELIBC KERNEL USERLAND"
USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL USERLAND"
USE_EXPAND_UNPREFIXED="ARCH"
USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-fbsd amd64-linux arm arm64 arm64-macos hppa ia64 m68k mips ppc ppc64 ppc64-linux ppc-macos riscv s390 sparc sparc64-solaris sparc-solaris x64-cygwin x64-macos x64-solaris x64-winnt x86 x86-fbsd x86-linux x86-solaris x86-winnt"
USE_EXPAND_VALUES_ELIBC="AIX bionic Cygwin Darwin DragonFly FreeBSD glibc HPUX Interix mingw mintlib musl NetBSD OpenBSD SunOS uclibc Winnt"
USE_EXPAND_VALUES_KERNEL="AIX Darwin FreeBSD freemint HPUX linux NetBSD OpenBSD SunOS Winnt"
USE_EXPAND_VALUES_USERLAND="BSD GNU"
USE_ORDER="env:pkg:conf:defaults:pkginternal:features:repo:env.d"
VBOX_APP_HOME="/usr/lib64/virtualbox"
VIDEO_CARDS="amdgpu radeonsi"
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"


Last edited by pewpewboi on Tue Mar 16, 2021 1:37 pm; edited 3 times in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Mon Mar 15, 2021 6:56 am    Post subject: Reply with quote

What return emerge -pv dev-ruby/rubygems command?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
pewpewboi
n00b
n00b


Joined: 11 Mar 2021
Posts: 10

PostPosted: Mon Mar 15, 2021 7:05 am    Post subject: Reply with quote

fedeliallalinea wrote:
What return emerge -pv dev-ruby/rubygems command?

This is what I get. Most likely you want to know the use flags.

Code:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-ruby/rubygems-3.2.14::gentoo  USE="-server -test" RUBY_TARGETS="ruby26 ruby27 ruby30 -ruby25" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Mon Mar 15, 2021 7:19 am    Post subject: Reply with quote

You tried to rebuild dev-ruby/rubygems?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
pewpewboi
n00b
n00b


Joined: 11 Mar 2021
Posts: 10

PostPosted: Mon Mar 15, 2021 7:27 am    Post subject: Reply with quote

fedeliallalinea wrote:
You tried to rebuild dev-ruby/rubygems?

I tried it and it does the same. This time for xmlrpc.
This is the part from where the error starts.
Code:
>>> Install dev-ruby/xmlrpc-0.3.2 into /var/tmp/portage/dev-ruby/xmlrpc-0.3.2/image
 * Running install phase for ruby26 ...
 * Running install phase for ruby27 ...
Traceback (most recent call last):
        3: from <internal:gem_prelude>:1:in `<internal:gem_prelude>'
        2: from <internal:gem_prelude>:1:in `require'
        1: from /usr/lib64/ruby/2.7.0/rubygems.rb:16:in `<top (required)>'
/usr/lib64/ruby/2.7.0/rubygems.rb:16:in `require': cannot load such file -- rubygems/compatibility (LoadError)
 * ERROR: dev-ruby/xmlrpc-0.3.2::gentoo failed (install phase):
 *   Unable to generate gemspec file.
 *
 * Call stack:
 *     ebuild.sh, line  125:  Called src_install
 *   environment, line 2150:  Called ruby-ng_src_install
 *   environment, line 1794:  Called _ruby_each_implementation 'each_ruby_install'
 *   environment, line  549:  Called _ruby_invoke_environment 'ruby27' 'each_ruby_install'
 *   environment, line  674:  Called each_ruby_install
 *   environment, line  891:  Called each_fakegem_install
 *   environment, line  844:  Called ruby_fakegem_install_gemspec
 *   environment, line 2046:  Called die
 * The specific snippet of code:
 *       fi ) || die "Unable to generate gemspec file.";


From the beginning the error seems to be only for ruby 2.7 missing some compatibility file. And eventually it unable to generate a gemspec file.
This error happens for different packages randomly but the error is exactly identical.

---EDIT---:
So I just digged into the ruby 2.7 directory in /usr/lib64/ruby/site_ruby/
To my surprise there is no rubygems directory in 2.7.0 .
Code:
-$: ls -lA /usr/lib64/ruby/site_ruby/2.7.0/
/usr/lib64/ruby/site_ruby/2.7.0/:
total 4
drwxr-xr-x 2 root root 4096 Mar 15 11:31 x86_64-linux

While there are rubygems directories and a ton of files in the 2.6.0/ and the 3.0.0/ directories
Code:
-$: ls -lA /usr/lib64/ruby/site_ruby/2.6.0/
total 52
-rw-r--r--  1 root root   509 Mar 15 12:52 auto_gem.rb
drwxr-xr-x 14 root root  4096 Mar 15 12:52 rubygems
-rw-r--r--  1 root root 37912 Mar 15 12:52 rubygems.rb
drwxr-xr-x  2 root root  4096 Mar 15 11:40 x86_64-linux

-$: ls -lA /usr/lib64/ruby/site_ruby/3.0.0/
total 52
-rw-r--r--  1 root root   509 Mar 15 12:52 auto_gem.rb
drwxr-xr-x 14 root root  4096 Mar 15 12:52 rubygems
-rw-r--r--  1 root root 37912 Mar 15 12:52 rubygems.rb
drwxr-xr-x  2 root root  4096 Mar 15 11:36 x86_64-linux

Which kinda indicates the fact that rubygems didn't really install for ruby 2.7.0. Super Weird.
I don't really know what to do about that.
Updated the subject from "Ruby packages failing preventing Portage Upgrades" => "Rubygems not installing for ruby 2.7.0"
Back to top
View user's profile Send private message
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Mon Mar 15, 2021 2:08 pm    Post subject: Reply with quote

just hit exactly the same issue, any workaround for this?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Mon Mar 15, 2021 5:23 pm    Post subject: Reply with quote

You can post eselect ruby list?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Mon Mar 15, 2021 5:26 pm    Post subject: Reply with quote

fedeliallalinea wrote:
You can post eselect ruby list?


# eselect ruby list
Available Ruby profiles:
[1] ruby25 (with Rubygems)
[2] ruby26 (with Rubygems)
[3] ruby27 (with Rubygems) *
[4] ruby30 (with Rubygems)

switch to ruby30 - doesn't resolve the problem
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Mon Mar 15, 2021 5:42 pm    Post subject: Reply with quote

leonchik1976 wrote:
switch to ruby30 - doesn't resolve the problem

It's same error or change message from
Code:
Traceback (most recent call last):
        3: from <internal:gem_prelude>:1:in `<internal:gem_prelude>'
        2: from <internal:gem_prelude>:1:in `require'
        1: from /usr/lib64/ruby/2.7.0/rubygems.rb:16:in `<top (required)>'

to
Code:
Traceback (most recent call last):
        3: from <internal:gem_prelude>:1:in `<internal:gem_prelude>'
        2: from <internal:gem_prelude>:1:in `require'
        1: from /usr/lib64/ruby/3.0.0/rubygems.rb:16:in `<top (required)>'

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Mon Mar 15, 2021 5:44 pm    Post subject: Reply with quote

fedeliallalinea wrote:
leonchik1976 wrote:
switch to ruby30 - doesn't resolve the problem

It's same error or change message from
Code:
Traceback (most recent call last):
        3: from <internal:gem_prelude>:1:in `<internal:gem_prelude>'
        2: from <internal:gem_prelude>:1:in `require'
        1: from /usr/lib64/ruby/2.7.0/rubygems.rb:16:in `<top (required)>'

to
Code:
Traceback (most recent call last):
        3: from <internal:gem_prelude>:1:in `<internal:gem_prelude>'
        2: from <internal:gem_prelude>:1:in `require'
        1: from /usr/lib64/ruby/3.0.0/rubygems.rb:16:in `<top (required)>'


Code:
Traceback (most recent call last):
        3: from <internal:gem_prelude>:1:in `<internal:gem_prelude>'
        2: from <internal:gem_prelude>:1:in `require'
        1: from /usr/lib64/ruby/2.7.0/rubygems.rb:16:in `<top (required)>'
/usr/lib64/ruby/2.7.0/rubygems.rb:16:in `require': cannot load such file -- rubygems/compatibility (LoadError)



Code:
# eselect ruby list
Available Ruby profiles:
  [1]   ruby25 (with Rubygems)
  [2]   ruby26 (with Rubygems)
  [3]   ruby27 (with Rubygems)
  [4]   ruby30 (with Rubygems) *


same error
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Mon Mar 15, 2021 6:03 pm    Post subject: Reply with quote

You can run
Code:
# ebuild /var/db/repos/gentoo/dev-ruby/rubygems/rubygems-3.2.14.ebuild clean install

and then the output of command
Code:
# ls -l /var/tmp/portage/dev-ruby/rubygems-3.2.14/image/usr/lib64/ruby/site_ruby/*

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Mon Mar 15, 2021 6:05 pm    Post subject: Reply with quote

fedeliallalinea wrote:
You can run
Code:
# ebuild /var/db/repos/gentoo/dev-ruby/rubygems/rubygems-3.2.14.ebuild clean install

and then the output of command
Code:
# ls -l /var/tmp/portage/dev-ruby/rubygems-3.2.14/image/usr/lib64/ruby/site_ruby/*


Code:
# ls -l /var/tmp/portage/dev-ruby/rubygems-3.2.14/image/usr/lib64/ruby/site_ruby/*
/var/tmp/portage/dev-ruby/rubygems-3.2.14/image/usr/lib64/ruby/site_ruby/2.5.0:
total 48
-rw-r--r--  1 root root   509 Mar 15 20:04 auto_gem.rb
drwxr-xr-x 14 root root  4096 Mar 15 20:04 rubygems
-rw-r--r--  1 root root 37912 Mar 15 20:04 rubygems.rb

/var/tmp/portage/dev-ruby/rubygems-3.2.14/image/usr/lib64/ruby/site_ruby/2.6.0:
total 48
-rw-r--r--  1 root root   509 Mar 15 20:04 auto_gem.rb
drwxr-xr-x 14 root root  4096 Mar 15 20:04 rubygems
-rw-r--r--  1 root root 37912 Mar 15 20:04 rubygems.rb

/var/tmp/portage/dev-ruby/rubygems-3.2.14/image/usr/lib64/ruby/site_ruby/3.0.0:
total 48
-rw-r--r--  1 root root   509 Mar 15 20:04 auto_gem.rb
drwxr-xr-x 14 root root  4096 Mar 15 20:04 rubygems
-rw-r--r--  1 root root 37912 Mar 15 20:04 rubygems.rb
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Mon Mar 15, 2021 6:18 pm    Post subject: Reply with quote

And ruby27 is enabled in rubygems package?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Mon Mar 15, 2021 6:20 pm    Post subject: Reply with quote

fedeliallalinea wrote:
And ruby27 is enabled in rubygems package?


# emerge rubygems -pvq
[ebuild R ] dev-ruby/rubygems-3.2.14 USE="-server -test" RUBY_TARGETS="ruby25 ruby26 ruby27 ruby30"
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Mon Mar 15, 2021 6:42 pm    Post subject: Reply with quote

What return ruby27 -rrbconfig -e "puts RbConfig::CONFIG['sitelibdir']" command?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Mon Mar 15, 2021 6:44 pm    Post subject: Reply with quote

fedeliallalinea wrote:
What return ruby27 -rrbconfig -e "puts RbConfig::CONFIG['sitelibdir']" command?



Code:
# ruby27 -rrbconfig -e "puts RbConfig::CONFIG['sitelibdir']"
Traceback (most recent call last):
        3: from <internal:gem_prelude>:1:in `<internal:gem_prelude>'
        2: from <internal:gem_prelude>:1:in `require'
        1: from /usr/lib64/ruby/2.7.0/rubygems.rb:16:in `<top (required)>'
/usr/lib64/ruby/2.7.0/rubygems.rb:16:in `require': cannot load such file -- rubygems/compatibility (LoadError)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Mon Mar 15, 2021 7:45 pm    Post subject: Reply with quote

This seems the problem because this command is called by ruby-ng.eclass for find correct sites dir, but it seems depend on compatibility.rb that is installed by rubygems package.
Probably I'm wrong and there is another explanation but more than that I could not tell you.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
pewpewboi
n00b
n00b


Joined: 11 Mar 2021
Posts: 10

PostPosted: Tue Mar 16, 2021 4:04 am    Post subject: Reply with quote

fedeliallalinea wrote:
You can run
Code:
# ebuild /var/db/repos/gentoo/dev-ruby/rubygems/rubygems-3.2.14.ebuild clean install

For me this fails to install.
Code:
>>> Install dev-ruby/rubygems-3.2.14 into /var/tmp/portage/dev-ruby/rubygems-3.2.14/image
 * Running install phase for ruby27 ...
Traceback (most recent call last):
        2: from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
        1: from /var/tmp/portage/dev-ruby/rubygems-3.2.14/work/ruby27/rubygems-3.2.14/lib/rubygems/core_ext/kernel_require.rb:85:in `require'
/var/tmp/portage/dev-ruby/rubygems-3.2.14/work/ruby27/rubygems-3.2.14/lib/rubygems/core_ext/kernel_require.rb:85:in `require': cannot load such file -- did_you_mean (LoadError)
Traceback (most recent call last):
        2: from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
        1: from /var/tmp/portage/dev-ruby/rubygems-3.2.14/work/ruby27/rubygems-3.2.14/lib/rubygems/core_ext/kernel_require.rb:85:in `require'
/var/tmp/portage/dev-ruby/rubygems-3.2.14/work/ruby27/rubygems-3.2.14/lib/rubygems/core_ext/kernel_require.rb:85:in `require': cannot load such file -- did_you_mean (LoadError)
 * Running install phase for ruby30 ...
 * ERROR: dev-ruby/rubygems-3.2.14::gentoo failed (install phase):
 *   $RUBY is not set
 *
 * Call stack:
 *     ebuild.sh, line  125:  Called src_install
 *   environment, line 1917:  Called ruby-ng_src_install
 *   environment, line 1674:  Called _ruby_each_implementation 'each_ruby_install'
 *   environment, line  458:  Called _ruby_invoke_environment 'ruby30' 'each_ruby_install'
 *   environment, line  583:  Called each_ruby_install
 *   environment, line  680:  Called doruby '-r' 'rubygems' 'rubygems.rb'
 *   environment, line  665:  Called die
 * The specific snippet of code:
 *       [[ -z ${RUBY} ]] && die "\$RUBY is not set";


Aand I somehow seem to have to managed to get rid of ruby26 completely.
Like it doesn't even force me to have ruby26 when merging ruby.
What I did is :

  • Unmerged any and all ruby packages(dev-ruby/* all dev-lang/ruby versions) down to ruby-ssl - DON'T FORGET THIS ONE(This one is the key).
  • Set RUBY_TARGETS="ruby27" in make.conf, try an emerge -uDU @world, the entire ruby structure now should show ruby27 and no other version, but this emerge will never succeed because rubygems is required to install any of these packages(dev-ruby/* packages), Personally I let it fail halfway so it atleast installs ruby27.
  • Get rubygems after the emerge fails. It will also install with newer ruby support.
  • Now when you try to emerge -uDU @world again it will prompt you for ruby30 use flags.
  • Change RUBY_TARGETS="ruby27 ruby30" - don't write those use flags manually, this will do the same thing.
  • Now emerge again and you will atleast see that most ruby stuff has moved up to the newer versions -the emerge failed for me tho :( .


I know this doesn't really solve the problem but its how I reduced the number of ruby versions to narrow down problems - and be on an updated ruby version.
Setting to ruby30 directly in the 2nd step seems to just produce the same mess as before so I just toned it down to ruby27.

For now I am trying out stuff mentioned in this topic : stubborn ruby

Specifically about uninstalling all of ruby and installing only stable ruby packages.

If something works out I'll post back.
Back to top
View user's profile Send private message
pewpewboi
n00b
n00b


Joined: 11 Mar 2021
Posts: 10

PostPosted: Tue Mar 16, 2021 4:31 am    Post subject: Reply with quote

fedeliallalinea wrote:
You can run
Code:
# ebuild /var/db/repos/gentoo/dev-ruby/rubygems/rubygems-3.2.14.ebuild clean install


I just realized I didn't have ruby30 emerged so I emerged that and I ran this again, aand...
Code:
>>> Install dev-ruby/rubygems-3.2.14 into /var/tmp/portage/dev-ruby/rubygems-3.2.14/image
 * Running install phase for ruby27 ...
Traceback (most recent call last):
        2: from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
        1: from /var/tmp/portage/dev-ruby/rubygems-3.2.14/work/ruby27/rubygems-3.2.14/lib/rubygems/core_ext/kernel_require.rb:85:in `require'
/var/tmp/portage/dev-ruby/rubygems-3.2.14/work/ruby27/rubygems-3.2.14/lib/rubygems/core_ext/kernel_require.rb:85:in `require': cannot load such file -- did_you_mean (Load
Error)
Traceback (most recent call last):
        2: from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
        1: from /var/tmp/portage/dev-ruby/rubygems-3.2.14/work/ruby27/rubygems-3.2.14/lib/rubygems/core_ext/kernel_require.rb:85:in `require'
/var/tmp/portage/dev-ruby/rubygems-3.2.14/work/ruby27/rubygems-3.2.14/lib/rubygems/core_ext/kernel_require.rb:85:in `require': cannot load such file -- did_you_mean (Load
Error)
 * Running install phase for ruby30 ...
`did_you_mean' was not loaded.
`did_you_mean' was not loaded.
 * Running install phase for all ...
 * Running check install phase for ruby27 ...
Traceback (most recent call last):
        2: from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
        1: from /var/tmp/portage/dev-ruby/rubygems-3.2.14/work/ruby30/rubygems-3.2.14/lib/rubygems/core_ext/kernel_require.rb:85:in `require'
/var/tmp/portage/dev-ruby/rubygems-3.2.14/work/ruby30/rubygems-3.2.14/lib/rubygems/core_ext/kernel_require.rb:85:in `require': cannot load such file -- did_you_mean (Load
Error)
Traceback (most recent call last):
        2: from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
        1: from /var/tmp/portage/dev-ruby/rubygems-3.2.14/work/ruby30/rubygems-3.2.14/lib/rubygems/core_ext/kernel_require.rb:85:in `require'
/var/tmp/portage/dev-ruby/rubygems-3.2.14/work/ruby30/rubygems-3.2.14/lib/rubygems/core_ext/kernel_require.rb:85:in `require': cannot load such file -- did_you_mean (Load
Error)
Traceback (most recent call last):
        2: from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
        1: from /var/tmp/portage/dev-ruby/rubygems-3.2.14/work/ruby30/rubygems-3.2.14/lib/rubygems/core_ext/kernel_require.rb:85:in `require'
/var/tmp/portage/dev-ruby/rubygems-3.2.14/work/ruby30/rubygems-3.2.14/lib/rubygems/core_ext/kernel_require.rb:85:in `require': cannot load such file -- did_you_mean (Load
Error)
 * Running check install phase for ruby30 ...
`did_you_mean' was not loaded.
`did_you_mean' was not loaded.
`did_you_mean' was not loaded.
>>> Completed installing dev-ruby/rubygems-3.2.14 into /var/tmp/portage/dev-ruby/rubygems-3.2.14/image

 * Final size of build directory: 6744 KiB (6.5 MiB)
 * Final size of installed tree:  3204 KiB (3.1 MiB)

 * The ebuild is installing to one or more unexpected paths:
 *
 *   /auto_gem.rb
 *   /rubygems
 *   /rubygems.rb
 *
 * Please fix the ebuild to use correct FHS/Gentoo policy paths.


Seems like it does install but with errors.
And now I don't get the compatibility.rb error anywhere, now everywhere the error is just
Code:
kernel_require.rb:85:in `require': cannot load such file -- did_you_mean (LoadError)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Tue Mar 16, 2021 6:41 am    Post subject: Reply with quote

This seems different the problem, and is the did_you_mean package missing. Try to rebuild this package if is possible
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
pewpewboi
n00b
n00b


Joined: 11 Mar 2021
Posts: 10

PostPosted: Tue Mar 16, 2021 7:52 am    Post subject: Reply with quote

fedeliallalinea wrote:
This seems different the problem, and is the did_you_mean package missing. Try to rebuild this package if is possible

That is the problem. None of the packages except the main dev-lang/ruby and rubygems are installing.
The package did_you_mean also throws the same Cannot Load file : did_you_mean (LoadError)
This is pretty hilarious if you ask me :lol: .
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4601
Location: Germany

PostPosted: Tue Mar 16, 2021 9:14 am    Post subject: Reply with quote

Hm, I think it is probably a dev-ruby/rubygems[ruby_targets_ruby27] or a eclass bug,
for example see Bug 776316
Back to top
View user's profile Send private message
pewpewboi
n00b
n00b


Joined: 11 Mar 2021
Posts: 10

PostPosted: Tue Mar 16, 2021 1:25 pm    Post subject: Reply with quote

Josef.95 wrote:
Hm, I think it is probably a dev-ruby/rubygems[ruby_targets_ruby27] or a eclass bug,
for example see Bug 776316

Yeah, I guess you're right. Cause its only and only ruby27. None of them also seem to support ruby30 at all.

When you say eclass bug, do you mean to say that some ebuild file on my machine is broken?
Would I be able to fix it by deleting the specific ebuild files and running an emerge sync? or is it like dangerous to do that 8O

Also I found a temporary fix for now. I just put all of the ruby packages into stable branch - not a fix imo, this is like my first time I have to force a package to stable.
For those who may not know who may stumble upon this in the near future, This is how you do it:

  • Comment any RUBY_TARGETS=".. in your make.conf, portage will handle that.
  • Uninstall every version of ruby(dev-lang/ruby-*) and its packages(dev-ruby/*).
  • Add these lines to your package.accept_keywords.
    Code:
    dev-lang/ruby -~amd64
    dev-ruby/bundler -~amd64
    dev-ruby/minitest -~amd64
    dev-ruby/power_assert -~amd64
    dev-ruby/rexml -~amd64
    dev-ruby/rss -~amd64
    dev-ruby/test-unit -~amd64
    dev-ruby/did_you_mean -~amd64
    dev-ruby/rake -~amd64
    dev-ruby/json -~amd64
    dev-ruby/rbs -~amd64
    dev-ruby/typeprof -~amd64

  • sudo emerge -av ruby
  • Profit $$.

Thank You Everyone for Helping out! :D
Still have a lot to learn about Gentoo.
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 998
Location: Somewhere in Denmark

PostPosted: Tue Mar 16, 2021 6:16 pm    Post subject: Reply with quote

Quote:
Thank You Everyone for Helping out! :D
Still have a lot to learn about Gentoo.
Running system-wide ~amd64, I'm sure you'll have more opportunities to learn your way around ;)
Back to top
View user's profile Send private message
Carel
n00b
n00b


Joined: 26 Jun 2010
Posts: 18

PostPosted: Thu Apr 08, 2021 8:28 am    Post subject: Ruby 2.7.3 on AMD64 Reply with quote

I struck upon the same issue. I had a dated system and enabled Ruby 25, 26, 27 and 30 upon it. Portage installed Ruby 2.7.3 accordingly but not the associated Gems. Using the method described above by PewPewBoi I could target the installation of specific versions of Ruby. I found I had to revert to Ruby 2.7.2 to get a working Ruby27. I filed a bug, Ruby 2.7 on AMD64, and linked it back to here accordingly.

A quick tell if this is ones issue is through eselect ruby list. If (with rubygems) is omitted from the ruby profile in the resulting list there is a chance that they are missing; when selecting such a ruby version(s) eselect will emit a warning warning/error message stating that the gems for that version are missing. Otherwise the previous messages describe how to check if the gems are indeed missing.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum