Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-ruby/mustache fails in install phase; psych.so empty
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
gorgotron
n00b
n00b


Joined: 02 Sep 2024
Posts: 3

PostPosted: Mon Sep 02, 2024 6:59 pm    Post subject: dev-ruby/mustache fails in install phase; psych.so empty Reply with quote

Hello,
I tried to install dev-ruby/mustache as part of an @world update. However it fails in the install phase. I am posting the output of emerge --info; emerge -pqv and the build log below:

Code:

# emerge --info '=dev-ruby/mustache-1.1.1-r1::gentoo'
Portage 3.0.65 (python 3.12.3-final-0, default/linux/amd64/23.0/split-usr/desktop/plasma, gcc-13, glibc-2.39-r6, 6.7.5-gentoo-custrom-UMA x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.7.5-gentoo-custrom-UMA-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.39
KiB Mem:    65737212 total,  29157704 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 02 Sep 2024 08:00:00 +0000
Head commit of repository gentoo: 37b0d114fe764ab8ed117a01a339c242eb980358
Head commit of repository farmboy0: 2df3b12838fafc77468edff1ca308734f73e2f2a

Head commit of repository guru: a403b408827ea6a7d01c30d5d589185ca6940592

Head commit of repository librewolf: ad8bd23b0fad08885620d6cc08a92d7ac0e68e61

Head commit of repository retroarch: c773836734b5da6454f29b5c6167e439d92d2c9a

sh bash 5.2_p26-r6
ld GNU ld (Gentoo 2.42 p3) 2.42.0
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.2::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.5.1::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.11.9_p2::gentoo, 3.12.3-r1::gentoo
dev-lang/rust:             1.80.1::gentoo
dev-lang/rust-bin:         1.79.0::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54.2::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo, 18.1.8::gentoo
sys-devel/gcc:             13.3.1_p20240614::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             18.1.8::gentoo
sys-devel/llvm:            17.0.6-r3::gentoo, 18.1.8-r4::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r6::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-verify-max-age: 3
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:

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

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://gitweb.gentoo.org/repo/proj/guru.git
    masters: gentoo
    volatile: False

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://codeberg.org/librewolf/gentoo.git
    masters: gentoo
    volatile: False

retroarch
    location: /var/db/repos/retroarch
    sync-type: git
    sync-uri: https://gitlab.com/jason.oliveira/retroarch.git
    masters: gentoo
    volatile: False

Binary Repositories:

binhost
    priority: 0
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver3 -O2 -pipe -fomit-frame-pointer --param l1-cache-size=32 --param l2-cache-size=512"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=znver3 -O2 -pipe -fomit-frame-pointer --param l1-cache-size=32 --param l2-cache-size=512"
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="-march=znver3 -O2 -pipe -fomit-frame-pointer --param l1-cache-size=32 --param l2-cache-size=512"
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 merge-wait multilib-strict network-sandbox news noinfo parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync xattr"
FFLAGS="-march=znver3 -O2 -pipe -fomit-frame-pointer --param l1-cache-size=32 --param l2-cache-size=512"
GENTOO_MIRRORS="https://mirror.dkm.cz/gentoo/     rsync://mirror.dkm.cz/gentoo/     ftp://ftp.free.fr/mirrors/ftp.gentoo.org/     http://ftp.free.fr/mirrors/ftp.gentoo.org/     http://gentoo.mirrors.ovh.net/gentoo-distfiles/     https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/     http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/     rsync://mirror.eu.oneandone.net/gentoo/     https://mirror.dogado.de/gentoo     http://ftp.agdsn.de/gentoo     https://ftp.agdsn.de/gentoo     rsync://ftp.agdsn.de/gentoo     https://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/     http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/     rsync://ftp.spline.inf.fu-berlin.de/gentoo-distfiles/     https://ftp.gwdg.de/pub/linux/gentoo/     http://ftp.gwdg.de/pub/linux/gentoo/     ftp://ftp.gwdg.de/pub/linux/gentoo/     rsync://ftp.gwdg.de/gentoo/     https://ftp.uni-hannover.de/gentoo/     http://ftp.uni-hannover.de/gentoo/     ftp://ftp.uni-hannover.de/gentoo/     ftp://mirror.netcologne.de/gentoo/     https://mirror.netcologne.de/gentoo/     http://mirror.netcologne.de/gentoo/     rsync://mirror.netcologne.de/gentoo/     https://mirror.netzwerge.de/gentoo/     http://mirror.netzwerge.de/gentoo/     rsync://mirror.netzwerge.de/gentoo     https://packages.hs-regensburg.de/gentoo-distfiles/     https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/     http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/     ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/     rsync://linux.rz.ruhr-uni-bochum.de/gentoo     https://ftp.halifax.rwth-aachen.de/gentoo/     http://ftp.halifax.rwth-aachen.de/gentoo/     ftp://ftp.halifax.rwth-aachen.de/gentoo/     rsync://ftp.halifax.rwth-aachen.de/gentoo/     https://ftp.tu-ilmenau.de/mirror/gentoo/     http://ftp.tu-ilmenau.de/mirror/gentoo/     rsync://ftp.tu-ilmenau.de/gentoo/     https://ftp.fau.de/gentoo     http://ftp.fau.de/gentoo     ftp://ftp.fau.de/gentoo     rsync://ftp.fau.de/gentoo     https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/     http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/     ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/     rsync://ftp-stud.hs-esslingen.de/gentoo/     https://ftp.uni-stuttgart.de/gentoo-distfiles/     http://ftp.uni-stuttgart.de/gentoo-distfiles/     ftp://ftp.uni-stuttgart.de/gentoo-distfiles/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j30"
PKGDIR="/var/cache/binpkgs"
PORTAGE_BINHOST=""
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"
RUSTFLAGS="-C debuginfo=0 -C codegen-units=1 -C target-cpu=native -C opt-level=3"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 asm bash-completion bluetooth branding brotli btrfs bzip2 cairo cdda cdr cet cjk clang compress-zstd crypt cups dbus declarative deduplicate dhcpcd dolphin dracut dri dts dvd dvdr elogind encode exif ffmpeg fftw flac flatpak gdbm gif gles2 gpm gtk gui heif hugepage hwaccel ibus iconv icu initramfs ipv6 jemalloc jit jpeg kde kf6compat kms kwallet lcms libnotify libtirpc lm-sensors lspclient lv2 mad man matroska mng mp3 mp4 mpeg multilib native-symlinks ncurses networkmanager nftables nls nvme ogg openal opencl openexr opengl openmp openvdb opus pam pango pcre pdf pgo pipewire pipewire-alsa plasma png policykit postscript ppds qemu qml qt5 qt6 readline samba screencast sdl seccomp semantic-desktop sftp smp sound spell spice split-usr ssl startup-notification svg system-av1 system-boost system-bootstrap system-ffmpeg system-harfbuzz system-icu system-jpeg system-libevent system-librnp system-libvpx system-libyaml system-llvm system-lua system-lz4 system-png system-python-libs system-sqlite system-ssl system-webp system-zlib test-rust theora threads tiff truetype ttf udev udisks unicode upower usb usbredir vdpau vim-syntax vorbis vpx vulkan wayland webp widgets wmf wxwidgets x264 xattr xcb xft xml xs xv xvid xxhash zlib zsh-completion zstd" ABI_X86="64" ADA_TARGET="gcc_12" ALSA_CARDS="sb16" AMDGPU_TARGETS="gfx906" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12 python3_11" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, NM, OBJCOPY, OBJDUMP, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS


Code:

# emerge -pqv '=dev-ruby/mustache-1.1.1-r1::gentoo'
[ebuild  N    ] dev-ruby/mustache-1.1.1-r1  USE="-doc -test" RUBY_TARGETS="ruby31 ruby32 (-ruby33)"


Code:

# cat /var/tmp/portage/dev-ruby/mustache-1.1.1-r1/temp/build.log
 * Package:    dev-ruby/mustache-1.1.1-r1:0
 * Repository: gentoo
 * Maintainer: ruby@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux ruby_targets_ruby31 ruby_targets_ruby32
 * FEATURES:   network-sandbox preserve-libs sandbox usersandbox
>>> Unpacking source...
 * Running unpack phase for all
 * Unpacking .gem file...
 * Uncompressing metadata
 * Unpacking data.tar.gz
>>> Source unpacked in /var/tmp/portage/dev-ruby/mustache-1.1.1-r1/work
>>> Preparing source in /var/tmp/portage/dev-ruby/mustache-1.1.1-r1/work ...
 * Running prepare phase for all
 * Applying mustache-1.1.1-test-ordering.patch ...                                                [ ok ]
 * Running prepare phase for all
 * Running source copy phase for ruby31
 * Running source copy phase for ruby32
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/mustache-1.1.1-r1/work ...
 * Running configure phase for ruby31
 * Running configure phase for ruby32
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ruby/mustache-1.1.1-r1/work ...
 * Running compile phase for ruby31
 * Running compile phase for ruby32
 * Running compile phase for all
>>> Source compiled.
 * Skipping make test/check due to ebuild restriction.
>>> Test phase [disabled because of RESTRICT=test]: dev-ruby/mustache-1.1.1-r1

>>> Install dev-ruby/mustache-1.1.1-r1 into /var/tmp/portage/dev-ruby/mustache-1.1.1-r1/image
 * Running install phase for ruby31
/usr/lib64/ruby/3.1.0/yaml.rb:3: warning: It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
<internal:/usr/lib64/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:97:in `require': /usr/lib64/ruby/gems/3.1.0/gems/psych-5.1.0/lib/psych.so: invalid ELF header - /usr/lib64/ruby/gems/3.1.0/gems/psych-5.1.0/lib/psych.so (LoadError)
   from <internal:/usr/lib64/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:97:in `require'
   from /usr/lib64/ruby/gems/3.1.0/gems/psych-5.1.0/lib/psych.rb:13:in `<top (required)>'
   from <internal:/usr/lib64/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:97:in `require'
   from <internal:/usr/lib64/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:97:in `require'
   from /usr/lib64/ruby/3.1.0/yaml.rb:4:in `<top (required)>'
   from <internal:/usr/lib64/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:86:in `require'
   from <internal:/usr/lib64/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:86:in `require'
 * ERROR: dev-ruby/mustache-1.1.1-r1::gentoo failed (install phase):
 *   Unable to generate gemspec file.
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_install
 *   environment, line 2089:  Called ruby-ng_src_install
 *   environment, line 1687:  Called _ruby_each_implementation 'each_ruby_install'
 *   environment, line  481:  Called _ruby_invoke_environment 'ruby31' 'each_ruby_install'
 *   environment, line  588:  Called each_ruby_install
 *   environment, line  854:  Called each_fakegem_install
 *   environment, line  801:  Called ruby_fakegem_install_gemspec
 *   environment, line 1976:  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/mustache-1.1.1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-ruby/mustache-1.1.1-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-ruby/mustache-1.1.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/mustache-1.1.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-ruby/mustache-1.1.1-r1/work/ruby31/mustache-1.1.1'
 * S: '/var/tmp/portage/dev-ruby/mustache-1.1.1-r1/work/ruby31/mustache-1.1.1'


I read this warning/error message:
Code:

/usr/lib64/ruby/3.1.0/yaml.rb:3: warning: It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
<internal:/usr/lib64/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:97:in `require': /usr/lib64/ruby/gems/3.1.0/gems/psych-5.1.0/lib/psych.so: invalid ELF header - /usr/lib64/ruby/gems/3.1.0/gems/psych-5.1.0/lib/psych.so (LoadError)


And reinstalled dev-libs/libyaml dev-lang/ruby dev-ruby/psych with
Code:
# emerge -1a dev-libs/libyaml dev-lang/ruby psych


libyaml and ruby work fine, but it does not build psych and returns the same error as when building/installing dev-ruby/mustache.

Next I looked up the path of the psych.so: "/usr/lib64/ruby/gems/3.1.0/gems/psych-5.1.0/lib/psych.so"
The file command says it is "data". Running hexdump shows that this is an empty file.
Code:

# hexdump --canonical /usr/lib64/ruby/gems/3.1.0/extensions/x86_64-linux/3.1.0/psych-5.1.0/psych.so
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00009770


According to
Code:
equery b psych.so
this file is owned by the dev-ruby/psych package. I tried reinstalling dev-ruby/psych via BINPKG. It went through without a hinch, but the file is still empty.

However the psych.so provided by ruby ifself (/usr/lib64/ruby/3.1.0/x86_64-linux/psych.so) is completely fine:
Code:

# file /usr/lib64/ruby/3.1.0/x86_64-linux/psych.so
/usr/lib64/ruby/3.1.0/x86_64-linux/psych.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped

Please note that this is also the case for the ruby 3.2 installation. psych.so provided by dev-lang/ruby is fine, psych.so provided by psych ifself is empty.


I would copy/softlink that psych.so from dev-lang/ruby to the location where dev-ruby/psych's psych.so is located. But I find this solution rather bad.

Can you give me a hint what I can try to resolve this issure?
Any advice would be helpful. Thank you for reading.

Edit: Spelling
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 446

PostPosted: Tue Sep 03, 2024 3:10 pm    Post subject: Reply with quote

What shows
Code:
eselect ruby list
?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22404

PostPosted: Tue Sep 03, 2024 3:13 pm    Post subject: Reply with quote

I find it rather suspicious that the file is a long run of null bytes. I remember reading within the last year about some buggy configuration that was causing file contents to get lost like this, but I do not recall the details. On what filesystem did you build the bad psych.so? On what filesystem is /usr stored?
Back to top
View user's profile Send private message
gorgotron
n00b
n00b


Joined: 02 Sep 2024
Posts: 3

PostPosted: Tue Sep 03, 2024 3:40 pm    Post subject: Reply with quote

Hello, thanks for your replies.

sMueggli wrote:
What shows
Code:
eselect ruby list
?

Code:

# eselect ruby list
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems) *

I have both ruby31 and ruby32 set as ruby_targets_rubyXX. It also fails if i try to use ruby 3.1/3.2 only.

Hu wrote:

I find it rather suspicious that the file is a long run of null bytes. I remember reading within the last year about some buggy configuration that was causing file contents to get lost like this, but I do not recall the details. On what filesystem did you build the bad psych.so? On what filesystem is /usr stored?

I am using btrfs as rootfs, single drive. I build everything in 16GB zram which is mounted at /var/tmp/portage. As far as I can remember I did the profile update a few months back and then some of the ruby packages did complain.
At the time I did run emerge with --emptytree as written in the update instructions. First time my drive filled up. I cleared space and started again. Everything went well, except some ruby packages did not emerge. But I did not mind it back then. I heard about "bugs" when the btrfs drive is full and I do believe that this is what caused this issue (https://wiki.gentoo.org/wiki/Btrfs#Caveats). This is however the first time I encountered any oddity when using btrfs.

I am also surprised that a reinstall of dev-ruby/psych does not replace the empty file; even when using a BINPKG. What do you suggest I should do to solve this issue?
Back to top
View user's profile Send private message
gorgotron
n00b
n00b


Joined: 02 Sep 2024
Posts: 3

PostPosted: Wed Sep 04, 2024 7:29 am    Post subject: Reply with quote

Hello,
I found a fix myself. If one is installing BINPKGs, maybe one should check if maybe they contain something bad :) . Deleted the .xpak file, so it gets re-downloaded. After the installation, it worked as expected. I did emerge both dev-ruby/psych and dev-ruby/mustache successfully.


Still I do wonder why psych does need a valid dev-ruby/psych's psych.so to be emerged anyway? I read somewhere that psych is considered quite essential and thus the psych.so is also provided by ruby itself.


I will see if my @world update runs fine now. Thank you very much for your time and troubleshooting.



Edit: Yes the @world update went fine.

I do believe the file was corrupted on the "just filled up" btrfs. Then it was packed as binpkg due to portages FEATURES="unmerge-backup", when I tried to reinstall it initially. Since the version did not change, no new version from the binpkg server was requested and the local binpkg was used.
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