Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 849695 - dev-ruby/bundler-2.1.4 fails to emerge: rdoc: command not found
Summary: dev-ruby/bundler-2.1.4 fails to emerge: rdoc: command not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
: 850139 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-06-04 17:07 UTC by Guido Winkelmann
Modified: 2022-07-18 13:32 UTC (History)
7 users (show)

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


Attachments
Build log (bundler-2.1.4-build.log,2.83 KB, text/x-log)
2022-06-04 17:07 UTC, Guido Winkelmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guido Winkelmann 2022-06-04 17:07:40 UTC
Created attachment 782777 [details]
Build log

dev-ruby/bundler-2.1.4 fails to emerge with following output:

===================================
# emerge -v1 dev-ruby/bundler

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

Calculating dependencies... done!
[ebuild   R    ] dev-ruby/bundler-2.1.4:2::gentoo  USE="doc -test" RUBY_TARGETS="ruby27 -ruby26*" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-ruby/bundler-2.1.4::gentoo
Warning: ccache requested but no masquerade dir can be found in /usr/lib*/ccache/bin
 * bundler-2.1.4.gem BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                   [ ok ]
>>> Unpacking source...
 * Running unpack phase for all ...
 * Unpacking .gem file...
 * Uncompressing metadata
 * Unpacking data.tar.gz                                                                                                                                                                                                                           [ ok ]
>>> Source unpacked in /var/tmp/portage/dev-ruby/bundler-2.1.4/work
>>> Preparing source in /var/tmp/portage/dev-ruby/bundler-2.1.4/work ...
 * Running prepare phase for all ...                                                                                                                                                                                                               [ ok ]
 * Running prepare phase for all ...                                                                                                                                                                                                               [ !! ]
 * Running source copy phase for ruby27 ...                                                                                                                                                                                                        [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/bundler-2.1.4/work ...
 * Running configure phase for ruby27 ...                                                                                                                                                                                                          [ ok ]
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ruby/bundler-2.1.4/work ...
 * Running compile phase for ruby27 ...                                                                                                                                                                                                            [ ok ]
 * Running compile phase for all ...
/var/tmp/portage/dev-ruby/bundler-2.1.4/temp/environment: line 684: rdoc: command not found
 * ERROR: dev-ruby/bundler-2.1.4::gentoo failed (compile phase):
 *   failed to (re)build documentation
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 2174:  Called ruby-ng_src_compile
 *   environment, line 1774:  Called _ruby_invoke_environment 'all' 'all_ruby_compile'
 *   environment, line  614:  Called all_ruby_compile
 *   environment, line  723:  Called all_fakegem_compile
 *   environment, line  684:  Called die
 * The specific snippet of code:
 *                   rdoc ${RUBY_FAKEGEM_DOC_SOURCES} || die "failed to (re)build documentation";
 * 
 * If you need support, post the output of `emerge --info '=dev-ruby/bundler-2.1.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-ruby/bundler-2.1.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-ruby/bundler-2.1.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/bundler-2.1.4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-ruby/bundler-2.1.4/work/all/bundler-2.1.4'
 * S: '/var/tmp/portage/dev-ruby/bundler-2.1.4/work/all/bundler-2.1.4'

>>> Failed to emerge dev-ruby/bundler-2.1.4, Log file:

>>>  '/var/tmp/portage/dev-ruby/bundler-2.1.4/temp/build.log'

 * Messages for package dev-ruby/bundler-2.1.4:

 * ERROR: dev-ruby/bundler-2.1.4::gentoo failed (compile phase):
 *   failed to (re)build documentation
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 2174:  Called ruby-ng_src_compile
 *   environment, line 1774:  Called _ruby_invoke_environment 'all' 'all_ruby_compile'
 *   environment, line  614:  Called all_ruby_compile
 *   environment, line  723:  Called all_fakegem_compile
 *   environment, line  684:  Called die
 * The specific snippet of code:
 *                   rdoc ${RUBY_FAKEGEM_DOC_SOURCES} || die "failed to (re)build documentation";
 * 
 * If you need support, post the output of `emerge --info '=dev-ruby/bundler-2.1.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-ruby/bundler-2.1.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-ruby/bundler-2.1.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/bundler-2.1.4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-ruby/bundler-2.1.4/work/all/bundler-2.1.4'
 * S: '/var/tmp/portage/dev-ruby/bundler-2.1.4/work/all/bundler-2.1.4'
===================================

emerge --info '=dev-ruby/bundler-2.1.4::gentoo' output:
===================================
Portage 3.0.30 (python 3.9.12-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.2.1, glibc-2.34-r13, 5.15.43 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.43-x86_64-AMD_Ryzen_9_3950X_16-Core_Processor-with-glibc2.34
KiB Mem:    65810784 total,  49394916 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Sat, 04 Jun 2022 16:00:01 +0000
Head commit of repository gentoo: 6a9a0a045d3bd4e6d32e7dec9f63178fad5faa51
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r9::gentoo
dev-lang/python:           3.9.12::gentoo, 3.10.4::gentoo
dev-lang/rust:             1.59.0::gentoo
dev-util/cmake:            3.22.4::gentoo
dev-util/meson:            0.61.4-r2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           13.0.1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.1::gentoo
sys-devel/llvm:            13.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r13::gentoo
Repositories:

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

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

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver2 -O2 -pipe -g -ggdb"
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=znver2 -O2 -pipe -g -ggdb"
DISTDIR="/usr/portage/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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://gentoo.supp.name/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16"
PKGDIR="/usr/portage/packages"
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="X a52 aac aacs acl acpi activities alsa amd64 android avif avx bdplus bittorrent bluetooth bluray branding brotli bzip2 cacert cairo cdda cdr clang clangcodemodel clangstaticanalyzer cli cmake cppcheck crypt cups cxx dav1d dbus ddate declarative designer dri drm dts dvd dvdr elogind encode epub exif ffmpeg flac fontforge fortran gbm gdbm geoip gif git gles gles2 gold gpg gpm gstreamer gtk gui harfbuzz hex hwaccel iconv icu idn imagemagick ipv6 ithreads jbig joystick jpeg jpeg2k kate kde kwallet latex lcms libaom libass libglvnd libnotify libtirpc lm-sensors lm_sensors lzma mad mmx mng modeling mp3 mp4 mpeg mtp multilib multimedia musicbrainz ncurses nls nptl offensive ogg openexr opengl openmp openssl opus otr pam pango pcre pdf plasma png policykit postproc ppds pulseaudio python qml qrcode qt5 rav1e rdesktop readline samba sasl scanner screencast sdl seccomp secure-delete semantic-desktop speech speex spell spice split-usr sqlite sse sse2 sse3 ssh ssl ssse3 startup-notification subversion svg taglib theora thumbnail tiff tk truetype udev udf udisks unicode upower usb usbredir v4l vaapi vdpau virgl virt-network vnc vorbis vpx wavpack wayland webkit widgets wxwidgets x264 x265 xattr xcb xetex xml xpm xv xvid zeroconf zip zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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 sha sse sse2 sse3 sse4_1 sse4_2 sse4a 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" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF" 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_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="sparc sparc64 x86_64" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="radeon nouveau fbdev vesa radeonsi amdgpu" 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, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, 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-ruby/bundler-2.1.4::gentoo was built with the following:
USE="doc -test" ABI_X86="(64)" RUBY_TARGETS="ruby26 ruby27"
FEATURES="unmerge-orphans assume-digests binpkg-dostrip merge-sync news unmerge-logs usersync parallel-fetch network-sandbox sandbox binpkg-docompress qa-unresolved-soname-deps xattr protect-owned unknown-features-warn preserve-libs userpriv strict binpkg-logs userfetch distlocks multilib-strict sfperms fixlafiles splitdebug usersandbox installsources config-protect-if-modified ebuild-locks pid-sandbox ipc-sandbox"
===================================

emerge -pqv '=dev-ruby/bundler-2.1.4::gentoo' output:
===================================
[ebuild   R   ] dev-ruby/bundler-2.1.4  USE="doc -test" RUBY_TARGETS="ruby27 -ruby26*"
===================================

As a temporary workaround, disabling the "doc" use flag on this package works.
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-06-04 20:01:38 UTC
Well, maybe a dupe of bug 704164.
Comment 2 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-06-06 19:26:59 UTC
*** Bug 850139 has been marked as a duplicate of this bug. ***
Comment 3 Benny Lønstrup Ammitzbøll 2022-06-09 11:51:39 UTC
In my case, the 'rdoc' was a broken symlink in /usr/bin pointing to rdoc26, which did not exist (any longer?), only rdoc27 and rdoc-2 existed. Updated the link to point to rdoc27 and the emerge update worked.

Note that my eselect ruby was ruby26. The rdoc27 and rdoc-2 are both ruby27 scripts, so it seems the rdoc26 got removed too early.

After --depclean I notice that the ruby26 gets removed and eselect ruby updates to ruby27. So something in that update is removing the rdoc26 too early.
Comment 4 kavol 2022-06-09 13:13:48 UTC
just hit this too

updating ruby profile to 27 then re-running world updates solved the problem
Comment 5 Markus Giese 2022-06-11 12:45:03 UTC
same here
Comment 6 Markus Giese 2022-06-11 12:47:15 UTC
eselect ruby list, set to 27, recompile works here too

thank you
Comment 7 Larry the Git Cow gentoo-dev 2022-07-18 13:32:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81a7a20fb3c4d6262f0ff6c9f5e47e3c1ac41ebb

commit 81a7a20fb3c4d6262f0ff6c9f5e47e3c1ac41ebb
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2022-07-18 13:28:56 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2022-07-18 13:32:22 +0000

    dev-ruby/bundler: drop default for doc USE flag
    
    Starting with bundler 2.2.0 the internal help pages are now bundled and
    don't require the doc USE flag to create. This removes the need to make
    it a default USE flag. This should make upgrading with standard USE
    flags much easier.
    
    Closes: https://bugs.gentoo.org/704164
    Closes: https://bugs.gentoo.org/849695
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/bundler/bundler-2.2.33-r1.ebuild | 30 ++++++++++++++++++++++++++++++
 dev-ruby/bundler/bundler-2.3.8-r1.ebuild  | 30 ++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)