Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572042 - dev-ruby/json-1.8.2-r1 USE=doc - src_compile(): sh: rdoc: command not found
Summary: dev-ruby/json-1.8.2-r1 USE=doc - src_compile(): sh: rdoc: command not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
: 579796 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-01-16 00:10 UTC by Martin Walch
Modified: 2016-05-16 13:51 UTC (History)
1 user (show)

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


Attachments
/var/tmp/portage/dev-ruby/json-1.8.2-r1/temp/build.log (build.log,5.08 KB, text/plain)
2016-01-16 00:10 UTC, Martin Walch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Walch 2016-01-16 00:10:03 UTC
Created attachment 423012 [details]
/var/tmp/portage/dev-ruby/json-1.8.2-r1/temp/build.log

rdoc -o doc -t 'JSON Implementation for Ruby' -m README.rdoc README.rdoc lib/json.rb lib/json/add/bigdecimal.rb lib/json/add/complex.rb lib/json/add/core.rb lib/json/add/date.rb lib/json/add/date_time.rb lib/json/add/exception.rb lib/json/add/ostruct.rb lib/json/add/range.rb lib/json/add/rational.rb lib/json/add/regexp.rb lib/json/add/struct.rb lib/json/add/symbol.rb lib/json/add/time.rb lib/json/common.rb lib/json/ext.rb lib/json/generic_object.rb lib/json/pure.rb lib/json/pure/generator.rb lib/json/pure/parser.rb lib/json/version.rb ext/json/ext/parser/parser.c ext/json/ext/generator/generator.c
sh: rdoc: command not found
rake aborted!
Command failed with status (127): [rdoc -o doc -t 'JSON Implementation for Ru...]
/var/tmp/portage/dev-ruby/json-1.8.2-r1/work/all/json-1.8.2/Rakefile:346:in `block in <top (required)>'
Tasks: TOP => doc

emerge --info
Portage 2.2.26 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.21-r1, 4.1.12-gentoo x86_64)
=================================================================
System uname: Linux-4.1.12-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q8400_@_2.66GHz-with-gentoo-2.2
KiB Mem:     8049360 total,    262288 free
KiB Swap:    8388052 total,   8231800 free
Timestamp of repository gentoo: Sun, 10 Jan 2016 12:45:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync6.de.gentoo.org/gentoo-portage
    priority: -1000

gamerlay
    location: /var/lib/layman/gamerlay
    masters: gentoo
    priority: 0

java
    location: /var/lib/layman/java
    masters: gentoo
    priority: 1

x11
    location: /var/lib/layman/x11
    masters: gentoo
    priority: 2

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

qt
    location: /var/lib/layman/qt
    masters: gentoo
    priority: 4

worldforge-overlay
    location: /usr/local/portage/worldforge
    masters: gentoo
    priority: 5

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 6

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE dom4j GPL-2-with-MySQL-FLOSS-exception icu JasPer2.0 JDOM wxWinFDL-3 freedist unRAR intel-ucode sun-concurrent-util"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fgcse-after-reload -pipe -fpredictive-commoning -ftree-partial-pre -fgcse-sm -fgcse-las --param=max-gcse-memory=1073741824"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -fgcse-after-reload -pipe -fpredictive-commoning -ftree-partial-pre -fgcse-sm -fgcse-las --param=max-gcse-memory=1073741824"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=native -O2 -fgcse-after-reload -pipe -fpredictive-commoning -ftree-partial-pre -fgcse-sm -fgcse-las --param=max-gcse-memory=1073741824"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -fgcse-after-reload -pipe -fpredictive-commoning -ftree-partial-pre -fgcse-sm -fgcse-las --param=max-gcse-memory=1073741824"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.switch.ch/mirror/gentoo/"
LANG="de_DE.utf-8"
LC_ALL="de_DE.utf-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-6 -e"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="64bit X Xaw3d a52 aac aacs aalib accessibility acl acpi ads agg allegro alsa amd64 amr apache2 attica autoipd bash-completion bazaar bdplus berkdb bindist bittorrent blender blender-game bluray branding bzip2 cairo caps ccache cdda cdr cdrom cegui cjk cli clucene consolekit cracklib crypt cups curl cvs cxx daap dbus deblob declarative default-font designer-plugin desktopglobe devil dga dhcpcd dirac display-manager djvu dlz doc dri dts dvd dvdnav dvdr emacs embedded emboss encode exif extended-solver fam farstream fbcon ffmpeg fftw firefox fits flac floppy fltk fortran g3dvl gbm gcj gdbm gflags ggi gimp git glamor gmm gmp gopher gpg gpm gpu grub gstreamer guile gzip hybrid-auth i18n icons iconv icq icu idn ieee1394 imagemagick import-filter iproute2 ipv6 jabber jack java java6 javascript jingle jpeg jpeg2k kde kdecards kdepim kdm kipi konsole kontact kvm ladspa lastfm latex lcms ldap libcaca libkms libnotify libssh2 libwww lm_sensors lua lzma lzo marble matroska mdnsresponder-compat mercurial minizip mjpeg mmx mmxext mng modemmanager modules mpeg mpfr mpi mplayer mtp mule multilib musepack mysql ncurses networkmanager newnet nls nova nowin nptl nscd nsplugin offensive ogg ogg123 ogre openal opencl openexr opengl openmp openssl opensslcrypt openstreetmap openvg openxml opus osc oscar osmesa otr pae pam pango pcre pdf phonon pkcs11 plasma player plotutils png policykit posix postscript povray ppds ppp prison private-headers python qemu qmi qmimodem qml qt3support qt4 qt5 ramfs rbd readline redland reiser4 reiserfs reviewboard rfc3779 romio rss rtmp samba scanner schroedinger scim sdl sdl-image seccomp semantic-desktop sensord session shm shmvideo smbclient sna sndfile solver songs sound source speex spell spice sse sse2 sse3 sse4.1 sse4_1 ssl ssse3 startup-notification subversion svg systemtap tcpd telepathy test-programs theora threads tidy tiff tk tools truetype udev udisks unicode usb uxa vaapi vc video videos virtfs vorbis vpx wallpapers wav wavpack webm webp webstart widgets wifi wmf x264 xa xattr xcb xcomposite xemacs xerces-c xft xhtml xine xml xorg xosd xprint xrandr xscreensaver xulrunner xv xvid xvmc zeroconf zfs zip zlib" ABI_X86="64" 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="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="author braindump flow karbon kexi krita sheets stage words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev i965 intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

tacticalops neo #
Comment 1 Hans de Graaff gentoo-dev Security 2016-01-16 07:08:18 UTC
Which version of ruby do you have eselected? Does it help to eselect either the same version again, or a new version?
Comment 2 Martin Walch 2016-01-16 10:50:53 UTC
ruby21:

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

But switching to ruby20 does not help.


However, now I recognize that I forgot the actual bug description above: json does not pull in rdoc as dependency and that is probably the reason for the failure. After installing rdoc, json emerges fine.
Comment 3 Hans de Graaff gentoo-dev Security 2016-02-22 18:56:36 UTC
(In reply to Martin Walch from comment #2)

> However, now I recognize that I forgot the actual bug description above:
> json does not pull in rdoc as dependency and that is probably the reason for
> the failure. After installing rdoc, json emerges fine.

Normally this is not needed since rdoc is a mandatory PDEPEND of dev-lang/ruby. But this might still go wrong when dev-lang/ruby is installed for the first time, since the ordering might be off in this case. In fact, that is likely since rdoc itself depends on json.

Can you confirm that this happened on a first install of ruby?

Not really sure what would be the best way to fix this.
Comment 4 Martin Walch 2016-02-26 22:16:12 UTC
> Can you confirm that this happened on a first install of ruby?

Yes, this is exactly what happened. I was installing additional packages starting from a freshly installed stage3 system.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2016-05-04 12:12:31 UTC
*** Bug 579796 has been marked as a duplicate of this bug. ***
Comment 6 Hans de Graaff gentoo-dev Security 2016-05-16 13:51:01 UTC
Fixed in-place for all current dev-ruby/json versions by explicitly depending on dev-ruby/rdoc.