Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] ruby-3.1.4 fails on emerge @preserved-rebuild
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
Aitikin
Apprentice
Apprentice


Joined: 14 May 2005
Posts: 227

PostPosted: Tue Apr 04, 2023 3:16 pm    Post subject: [SOLVED] ruby-3.1.4 fails on emerge @preserved-rebuild Reply with quote

So, long time since I've been running a Gentoo box, but just getting a new one up and running. Made some minor changes, did a full world update and got the requirement to emerge @preserved-rebuild. Did so and now ruby won't rebuild with the following error:

Code:
/usr/bin/ruby --disable=gems -C "." \
    -Itool/lib -rfileutils -rbundled_gem -answ \
    -e 'BEGIN {FileUtils.mkdir_p(d = ".bundle/gems")}' \
    -e 'gem, ver, _, rev = *$F' \
    -e 'next if !ver or /^#/=~gem' \
    -e 'g = "#{gem}-#{ver}"' \
    -e 'if File.directory?("#{d}/#{g}")' \
    -e 'elsif rev and File.exist?(gs = "gems/src/#{gem}/#{gem}.gemspec")' \
    -e   'BundledGem.copy(gs, ".bundle")' \
    -e 'else' \
    -e   'BundledGem.unpack("gems/#{g}.gem", ".bundle")' \
    -e 'end' \
    -e 'FileUtils.rm_rf("#{d}/#{g}/.github")' \
    gems/bundled_gems
/usr/lib64/ruby/3.1.0/rubygems.rb:15:in `require_relative': cannot load such file -- /usr/lib64/ruby/3.1.0/rubygems/compatibility (LoadError)
        from /usr/lib64/ruby/3.1.0/rubygems.rb:15:in `<top (required)>'
        from /var/tmp/portage/dev-lang/ruby-3.1.4/work/ruby-3.1.4/tool/lib/bundled_gem.rb:2:in `require'
        from /var/tmp/portage/dev-lang/ruby-3.1.4/work/ruby-3.1.4/tool/lib/bundled_gem.rb:2:in `<top (required)>'
        from -e:in `require'
make: *** [uncommon.mk:1370: extract-gems-sequential] Error 1
make: *** Waiting for unfinished jobs....
mv -f ruby.tmp.pc ruby-3.1.pc
/usr/bin/ruby --disable=gems ./tool/file2lastrev.rb -q --revision.h --srcdir="." > revision.tmp



which, to my eyes, appears to be looking for a directory, "rubygems" in /usr/lib64/ruby/3.1.0 when there's no such directory there and no directory anywhere on my system with that name other than in /var/db/repos/gentoo/*.

emerge --info '=dev-lang/ruby-3.1.4::gentoo':
Code:
Portage 3.0.45.3 (python 3.10.10-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-12, glibc-2.37-r1, 6.1.19-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.1.19-gentoo-x86_64-x86_64-AMD_Ryzen_5_7600X_6-Core_Processor-with-glibc2.37
KiB Mem:    31986372 total,  22076124 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 04 Apr 2023 13:30:01 +0000
Head commit of repository gentoo: ba110b6e1513f3843bba6bdf36b307050a39d4a0
Timestamp of repository steam-overlay: Sun, 02 Apr 2023 01:01:55 +0000
Head commit of repository steam-overlay: d24ddd3db84f894a52a2fdfd55a26ca822420081

sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           3.10.10_p3::gentoo, 3.11.2_p2::gentoo
dev-lang/rust:             1.68.1::gentoo
dev-util/cmake:            3.26.2::gentoo
dev-util/meson:            1.0.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.46::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.39-r4::gentoo, 2.40-r4::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             12.2.1_p20230304::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            15.0.7::gentoo, 16.0.0::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.2::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r1::gentoo
Repositories:

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

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

gamerlay
    location: /var/lib/layman/gamerlay
    masters: gentoo
    priority: 50
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=znver2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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"
CXXFLAGS="-O2 -march=znver2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -march=znver2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live 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="-O2 -march=znver2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
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"
SHELL="/bin/bash"
USE="(cpuid2cpuflags) X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt dbus declarative dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kwallet lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf plasma png policykit ppds proton qml qt5 readline sdl seccomp semantic-desktop sound spell split-usr ssl stack-realign startup-notification svg symlink test-rust tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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" 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-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

dev-lang/ruby-3.1.4::gentoo was built with the following:
USE="gdbm ipv6 rdoc ssl -berkdb -debug -doc -examples -jemalloc -jit -socks5 -static-libs -systemtap -tk -xemacs" ABI_X86="(64)"
CFLAGS="-O2 -march=znver2 -pipe -fno-strict-aliasing"
CXXFLAGS="-O2 -march=znver2 -pipe -fno-strict-aliasing"


emerge -pqv '=dev-lang/ruby-3.1.4::gentoo':
Code:
[ebuild   R   ] dev-lang/ruby-3.1.4  USE="gdbm ipv6 rdoc ssl -berkdb -debug -doc -examples -jemalloc -jit -socks5 -static-libs -systemtap -tk -xemacs"
[ebuild  N    ] dev-ruby/rubygems-3.4.6  USE="-server -test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"
[ebuild  N    ] virtual/rubygems-18  RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"
[ebuild  N    ] dev-ruby/bundler-2.4.6  USE="-doc -test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"
[ebuild  N    ] dev-ruby/minitest-5.18.0  USE="-doc -test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"
[ebuild  N    ] dev-ruby/rake-13.0.6-r1  USE="-doc -test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"
[ebuild  N    ] dev-ruby/power_assert-2.0.3  USE="-doc -test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"
[ebuild  N    ] dev-ruby/test-unit-3.5.7  USE="-doc -test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"
[ebuild  N    ] dev-ruby/json-2.6.3  USE="-doc -test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"
[ebuild  N    ] dev-ruby/rexml-3.2.5-r1  USE="-test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"
[ebuild  N    ] dev-ruby/rss-0.2.9-r1  USE="-doc -test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"
[ebuild  N    ] dev-ruby/did_you_mean-1.6.3  USE="-test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"
[ebuild  N    ] dev-ruby/rbs-3.0.4  USE="-doc -test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"
[ebuild  N    ] dev-ruby/typeprof-0.21.7  USE="-test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"
[ebuild  N    ] dev-ruby/kpeg-1.3.3  USE="-doc -test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"
[ebuild  N    ] dev-ruby/racc-1.6.2  USE="-doc -test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"
[ebuild  N    ] dev-ruby/stringio-3.0.5  USE="-doc -test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"
[ebuild  N    ] dev-ruby/psych-5.1.0  USE="-doc -test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"
[ebuild  N    ] dev-ruby/rdoc-6.5.0  USE="-doc -test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32"

_________________
"it's like sex, except over ssh" ~Valkura

"I should go to bitch, I get up at 6:20" ~Valkura


Last edited by Aitikin on Tue Apr 04, 2023 7:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1566
Location: switzerland

PostPosted: Tue Apr 04, 2023 3:58 pm    Post subject: Reply with quote

what's the output of

Code:
#eselect ruby list


?

maybe you have to set the 30 version
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
Aitikin
Apprentice
Apprentice


Joined: 14 May 2005
Posts: 227

PostPosted: Tue Apr 04, 2023 4:30 pm    Post subject: Reply with quote

Code:
Available Ruby profiles:
  [1]   ruby31 *


Looks like no. But I can't imagine why that would prohibit 3.1.4 from compiling.
_________________
"it's like sex, except over ssh" ~Valkura

"I should go to bitch, I get up at 6:20" ~Valkura
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31599
Location: here

PostPosted: Tue Apr 04, 2023 4:47 pm    Post subject: Reply with quote

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


Joined: 14 May 2005
Posts: 227

PostPosted: Tue Apr 04, 2023 4:49 pm    Post subject: Reply with quote

Code:
emerge -pv dev-ruby/rubygems virtual/rubygems

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

Calculating dependencies... done!
Dependency resolution took 0.79 s.

[ebuild  N     ] dev-ruby/rubygems-3.4.6::gentoo  USE="-server -test" RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32" 0 KiB
[ebuild  N     ] virtual/rubygems-18::gentoo  RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32" 0 KiB

Total: 2 packages (2 new), Size of downloads: 0 KiB


Did I somehow end up with a missing dependency?
_________________
"it's like sex, except over ssh" ~Valkura

"I should go to bitch, I get up at 6:20" ~Valkura
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31599
Location: here

PostPosted: Tue Apr 04, 2023 4:53 pm    Post subject: Reply with quote

Or a partial update, what return emerge -uUDp @world command?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Aitikin
Apprentice
Apprentice


Joined: 14 May 2005
Posts: 227

PostPosted: Tue Apr 04, 2023 4:54 pm    Post subject: Reply with quote

Code:
emerge -uUDp @world

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

Calculating dependencies... done!
Dependency resolution took 6.98 s.

[ebuild   R    ] sys-kernel/gentoo-sources-6.2.9  USE="symlink*"

_________________
"it's like sex, except over ssh" ~Valkura

"I should go to bitch, I get up at 6:20" ~Valkura
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1227
Location: Massachusetts USA

PostPosted: Tue Apr 04, 2023 4:57 pm    Post subject: Reply with quote

emerge --info has RUBY_TARGETS="ruby30", eselect ruby list shows only ruby31, and dev-ruby/rubygems etc. have RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32".
Back to top
View user's profile Send private message
Aitikin
Apprentice
Apprentice


Joined: 14 May 2005
Posts: 227

PostPosted: Tue Apr 04, 2023 5:00 pm    Post subject: Reply with quote

jburns wrote:
emerge --info has RUBY_TARGETS="ruby30", eselect ruby list shows only ruby31, and dev-ruby/rubygems etc. have RUBY_TARGETS="ruby30 ruby31 -ruby27 -ruby32".


So, should I emerge =dev-lang/ruby-3.0.6 as a solution?
_________________
"it's like sex, except over ssh" ~Valkura

"I should go to bitch, I get up at 6:20" ~Valkura
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31599
Location: here

PostPosted: Tue Apr 04, 2023 5:26 pm    Post subject: Reply with quote

As workaround try emerge -1a dev-ruby/rubygems virtual/rubygems .
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Aitikin
Apprentice
Apprentice


Joined: 14 May 2005
Posts: 227

PostPosted: Tue Apr 04, 2023 5:29 pm    Post subject: Reply with quote

fedeliallalinea wrote:
As workaround try emerge -1a dev-ruby/rubygems virtual/rubygems .


That yielded an interesting failure:

Code:
 * Running prepare phase for all
 * Running prepare phase for all
 * Adjusting to prefix /
 *   operating_system.rb ...                                                                             [ ok ]
 * Running source copy phase for ruby30
 * Running source copy phase for ruby31
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/rubygems-3.4.6/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ruby/rubygems-3.4.6/work ...
 * Running compile phase for ruby30
 * Running compile phase for ruby31
>>> Source compiled.
 * Skipping make test/check due to ebuild restriction.
>>> Test phase [disabled because of RESTRICT=test]: dev-ruby/rubygems-3.4.6

>>> Install dev-ruby/rubygems-3.4.6 into /var/tmp/portage/dev-ruby/rubygems-3.4.6/image
 * Running install phase for ruby30
 * ERROR: dev-ruby/rubygems-3.4.6::gentoo failed (install phase):
 *   $RUBY is not set
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_install
 *   environment, line 1982:  Called ruby-ng_src_install
 *   environment, line 1711:  Called _ruby_each_implementation 'each_ruby_install'
 *   environment, line  419:  Called _ruby_invoke_environment 'ruby30' 'each_ruby_install'
 *   environment, line  556:  Called each_ruby_install
 *   environment, line  677:  Called doruby '-r' 'rubygems' 'rubygems.rb'
 *   environment, line  662:  Called die
 * The specific snippet of code:
 *       [[ -z ${RUBY} ]] && die "\$RUBY is not set";
 *
 * If you need support, post the output of `emerge --info '=dev-ruby/rubygems-3.4.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-ruby/rubygems-3.4.6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-ruby/rubygems-3.4.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/rubygems-3.4.6/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-ruby/rubygems-3.4.6/work/ruby30/rubygems-3.4.6/lib'
 * S: '/var/tmp/portage/dev-ruby/rubygems-3.4.6/work/ruby30/rubygems-3.4.6'

>>> Failed to emerge dev-ruby/rubygems-3.4.6, Log file:

>>>  '/var/tmp/portage/dev-ruby/rubygems-3.4.6/temp/build.log'

 * Messages for package dev-ruby/rubygems-3.4.6:

 * ERROR: dev-ruby/rubygems-3.4.6::gentoo failed (install phase):
 *   $RUBY is not set
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_install
 *   environment, line 1982:  Called ruby-ng_src_install
 *   environment, line 1711:  Called _ruby_each_implementation 'each_ruby_install'
 *   environment, line  419:  Called _ruby_invoke_environment 'ruby30' 'each_ruby_install'
 *   environment, line  556:  Called each_ruby_install
 *   environment, line  677:  Called doruby '-r' 'rubygems' 'rubygems.rb'
 *   environment, line  662:  Called die
 * The specific snippet of code:
 *       [[ -z ${RUBY} ]] && die "\$RUBY is not set";
 *
 * If you need support, post the output of `emerge --info '=dev-ruby/rubygems-3.4.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-ruby/rubygems-3.4.6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-ruby/rubygems-3.4.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/rubygems-3.4.6/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-ruby/rubygems-3.4.6/work/ruby30/rubygems-3.4.6/lib'
 * S: '/var/tmp/portage/dev-ruby/rubygems-3.4.6/work/ruby30/rubygems-3.4.6'


Maybe I should emerge =dev-lang/ruby-3.0.6 then try that?
_________________
"it's like sex, except over ssh" ~Valkura

"I should go to bitch, I get up at 6:20" ~Valkura
Back to top
View user's profile Send private message
Aitikin
Apprentice
Apprentice


Joined: 14 May 2005
Posts: 227

PostPosted: Tue Apr 04, 2023 5:40 pm    Post subject: Reply with quote

Or to build things with a change to USE flags of "-ruby30"?
_________________
"it's like sex, except over ssh" ~Valkura

"I should go to bitch, I get up at 6:20" ~Valkura
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31599
Location: here

PostPosted: Tue Apr 04, 2023 6:18 pm    Post subject: Reply with quote

Try with RUBY_TARGETS="ruby31 -ruby30" emerge -1a dev-ruby/rubygems virtual/rubygem.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Aitikin
Apprentice
Apprentice


Joined: 14 May 2005
Posts: 227

PostPosted: Tue Apr 04, 2023 7:00 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Try with RUBY_TARGETS="ruby31 -ruby30" emerge -1a dev-ruby/rubygems virtual/rubygem.


Looks like this resolved it, thanks. Curious how this came to pass in the first place.
_________________
"it's like sex, except over ssh" ~Valkura

"I should go to bitch, I get up at 6:20" ~Valkura
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1227
Location: Massachusetts USA

PostPosted: Tue Apr 04, 2023 10:24 pm    Post subject: Reply with quote

Check the contents of /etc/portage/package.use/ since it can override whats in /etc/portage/package.use/

It could also be something in one of the overlays.
Back to top
View user's profile Send private message
Aitikin
Apprentice
Apprentice


Joined: 14 May 2005
Posts: 227

PostPosted: Wed Apr 05, 2023 12:16 am    Post subject: Reply with quote

There were a bunch of added USE flags of ruby31, but still doesn't explain how ruby-3.0.6 was ignored when there was a ton of ruby30 as well, at least to me.
_________________
"it's like sex, except over ssh" ~Valkura

"I should go to bitch, I get up at 6:20" ~Valkura
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2943

PostPosted: Wed Apr 05, 2023 9:54 am    Post subject: Reply with quote

Aitikin wrote:
There were a bunch of added USE flags of ruby31, but still doesn't explain how ruby-3.0.6 was ignored when there was a ton of ruby30 as well, at least to me.


I don't know what has happened, but:

Aitikin wrote:
Code:
Available Ruby profiles:
  [1]   ruby31 *


Looks like no. But I can't imagine why that would prohibit 3.1.4 from compiling.


eselect doesn't influence dependency resolution in any way. It just reads what packages are available and updates a symlink, period. Portage doesn't care about symlinks. Actually those are outside of portage, they don't belong to any package. The only way I can see that influences the compilation is because of buggy ebuild, which might be the case, since 3.1 is still testing and as we see from your emerge --info, you're running full testing.

Best Regards,
Georgi
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