Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 628368 - dev-ruby/rdoc-4.2.0 USE Flag 'ruby_targets_ruby21' not in IUSE
Summary: dev-ruby/rdoc-4.2.0 USE Flag 'ruby_targets_ruby21' not in IUSE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
: 628472 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-08-20 10:06 UTC by Frank Krömmelbein
Modified: 2017-08-21 16:01 UTC (History)
17 users (show)

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


Attachments
dev-ruby/rdoc-5.1.0.ebuild (rdoc-5.1.0.ebuild,2.51 KB, patch)
2017-08-20 16:35 UTC, Harold Anderson
Details | Diff
Patch - target only ruby22 (rdoc-4.2.0.ebuild,2.72 KB, patch)
2017-08-20 18:32 UTC, elprawn
Details | Diff
Fix rdoc compilation with ruby21 (file_628368.txt,2.82 KB, text/plain)
2017-08-20 18:55 UTC, Matthieu Mota
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Krömmelbein 2017-08-20 10:06:26 UTC
After the drop of ruby21, rdoc fails to install. All other reinstall ran through without problems.

>>> Source compiled.
>>> Test phase [not enabled]: dev-ruby/rdoc-4.2.0

>>> Install rdoc-4.2.0 into /var/tmp/portage/dev-ruby/rdoc-4.2.0/image/ category dev-ruby
 * Running install phase for ruby22 ...
 * Running install phase for all ...
 * ERROR: dev-ruby/rdoc-4.2.0::gentoo failed (install phase):
 *   USE Flag 'ruby_targets_ruby21' not in IUSE for dev-ruby/rdoc-4.2.0
 * 
 * Call stack:
 *          ebuild.sh, line  115:  Called src_install
 *        environment, line 4413:  Called ruby-ng_src_install
 *        environment, line 4113:  Called _ruby_invoke_environment 'all' 'all_ruby_install'
 *        environment, line  552:  Called all_ruby_install
 *        environment, line  648:  Called use 'ruby_targets_ruby21'
 *   phase-helpers.sh, line  200:  Called die
 * The specific snippet of code:
 *                              die "USE Flag '${u}' not in IUSE for ${CATEGORY}/${PF}"
 * 

emerge --info rdoc
Portage 2.3.6 (python 2.7.12-final-0, hardened/linux/amd64, gcc-5.4.0, glibc-2.23-r4, 4.8.17-hardened-r2 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.8.17-hardened-r2-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.3
KiB Mem:    20536848 total,   4320048 free
KiB Swap:          0 total,         0 free
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /mnt/sda7/portage
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/gentoo.git
    priority: -1000

mylocal
    location: /usr/local/portage
    masters: gentoo
    priority: 0

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/mnt/sdb1/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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"
USE="X a52 aac aacs acl acpi activities alsa amd64 amr berkdb bluetooth bluray btrfs bzip2 cdda cddb cec chipcard clamav cli color-management consolekit cracklib crypt cryptsetup css cups cxx dbus declarative device-mapper djvu dmraid dri dts dvb dvd ebook encode epub exif ext4 f2fs faac fat ffmpeg flac fuse gdbm geoip gif gimp glamor google googledrive gpg gphoto2 gpm hardened hbci http2 iconv id3tag infinality ipv6 jfs joystick jpeg justify kde kipi kwallet ladspa lame lcms lensfun libsamplerate lirc lm_sensors lvm lz4 lzma mad matroska mdadm mjpeg mmx mng mobi modemmanager modules mp3 mpeg mtp multilib mysql ncurses networkmanager nfs nls nptl ntfs nvenc office ogg opencl opengl openmp opus pam pax_kernel pcre pdf phonon pie plasma pm-utils png policykit postscript ppp pvr qml qt3support qt5 qtmedia rar raw rdesktop rdp readline reiser4 reiserfs s3tc samba scanner seccomp semantic-desktop session sftp share smartcard smp sndfile sox squashfs sse sse2 ssl ssp svg taglib tcpd tiff truetype twolame udev unicode upnp urandom usb v4l vaapi vcd vdpau vnc vorbis vpx vulkan webp widgets wifi wps x264 x265 xattr xcb xcomposite xfs xinerama xkb xscreensaver xtpax xv xvid xvmc yubikey zeroconf zlib" ABI_X86="64 32" 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_EXPERIMENTAL_FEATURES="braindump stage" CALLIGRA_FEATURES="karbon plan sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard joystick mouse synaptics" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel i965 fbdev vesa nouveau nvidia radeon radeonsi amdgpu dummy" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

dev-ruby/rdoc-4.2.0::gentoo was built with the following:
USE="-doc -test" ABI_X86="(64)" RUBY_TARGETS="ruby22 -ruby21"
Comment 1 David Williams 2017-08-20 11:10:19 UTC
I can confirm this. I tried rdocs-4.2.2 and rdocs-4.3.0 without success. I tried unmerging rdocs first also no joy.


emerge --info 
Portage 2.3.6 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r4, 4.9.34-gentoo x86_64)                                                                                      
=================================================================                                                                                                                                                  
System uname: Linux-4.9.34-gentoo-x86_64-Intel-R-_Core-TM-_i5-3570K_CPU_@_3.40GHz-with-gentoo-2.3                                                                                                                  
KiB Mem:    32807020 total,  29558940 free                                                                                                                                                                         
KiB Swap:     524284 total,    524284 free                                                                                                                                                                         
Timestamp of repository gentoo: Sun, 20 Aug 2017 10:00:01 +0000                                                                                                                                                    
sh bash 4.3_p48-r1                                                                                                                                                                                                 
ld GNU ld (Gentoo 2.28 p1.2) 2.28                                                                                                                                                                                  
app-shells/bash:          4.3_p48-r1::gentoo                                                                                                                                                                       
dev-java/java-config:     2.2.0-r3::gentoo                                                                                                                                                                         
dev-lang/perl:            5.24.1-r2::gentoo                                                                                                                                                                        
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo                                                                                                                                                            
dev-util/cmake:           3.7.2::gentoo                                                                                                                                                                            
dev-util/pkgconfig:       0.28-r2::gentoo                                                                                                                                                                          
sys-apps/baselayout:      2.3::gentoo                                                                                                                                                                              
sys-apps/openrc:          0.28::gentoo                                                                                                                                                                             
sys-apps/sandbox:         2.10-r3::gentoo                                                                                                                                                                          
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo                                                                                                                                                               
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.15-r2::gentoo                                                                                                                                       
sys-devel/binutils:       2.28-r2::gentoo                                                                                                                                                                          
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

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

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

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
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/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/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 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ rsync://mirror.bytemark.co.uk/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ rsync://rsync.mirrorservice.org/www.ibiblio.org/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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"
USE="X a52 aac acl acpi activities alsa amd64 berkdb branding bzip2 cairo caps cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm iconv ipv6 jpeg kde kipi kwallet lcms ldap libnotify lock mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt4 qt5 qtmedia readline scanner sdl seccomp session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vlc vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64 32" 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 proxy proxy_ajp proxy_http" CALLIGRA_FEATURES="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 isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en en-GB en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB en_US en_GB en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby21 ruby22" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Luigi 'Comio' Mantellini 2017-08-20 11:17:51 UTC
same here with 5.1.0
Comment 3 Luigi 'Comio' Mantellini 2017-08-20 12:56:52 UTC
Ruby 2.1 is deprecated. See https://bugs.gentoo.org/show_bug.cgi?id=615822

Ciao
Comment 4 azarus 2017-08-20 13:38:22 UTC
Same here with 5.1.0,
Portage 2.3.8 (python 3.4.6-final-0, hardened/linux/amd64/no-multilib, gcc-5.4.0, glibc-2.25-r4, 4.12.8-gentoo-gnu x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.12.8-gentoo-gnu-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.4.1
KiB Mem:     3780084 total,    881456 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 20 Aug 2017 12:30:01 +0000
Head commit of repository gentoo: f49b572487044b635dadd0db10851963ab42ffda
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.6.1-r1::gentoo
dev-util/cmake:           3.9.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r1::gentoo
sys-apps/openrc:          0.29::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r4::gentoo
Repositories:

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

0x4d4c
    location: /var/lib/layman/0x4d4c
    masters: gentoo
    priority: 50

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

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

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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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"
USE="X acl alsa amd64 berkdb bzip2 cli cracklib crypt cryptsetup cxx dbus dhcpcd dri egl ffmpeg flac fontconfig gdbm gif gtk hardened iconv ipv6 jpeg justify modules mp3 ncurses nls nptl ogg opengl openmp opus pam pax_kernel pcre pie pm-utils png polkit pulseaudio readline seccomp session ssl ssp svg tcpd truetype unicode urandom vaapi vim-syntax vorbis wayland webp wifi x264 x265 xattr xinerama xtpax xwayland zlib zsh-completion" 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="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="kexi words flow plan sheets stage tables krita karbon braindump author" 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 isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

dev-ruby/rdoc-5.1.0::gentoo was built with the following:
USE="-doc -test" RUBY_TARGETS="ruby24 -ruby21 -ruby22 -ruby23"

Here's the log:

[32;01m * [39;49;00mPackage:    dev-ruby/rdoc-5.1.0
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mMaintainer: ruby@gentoo.org
[32;01m * [39;49;00mUSE:        abi_x86_64 amd64 elibc_glibc kernel_linux ruby_targets_ruby24 userland_GNU
[32;01m * [39;49;00mFEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
 [32;01m*[0m Running unpack phase for all ...
>>> Unpacking rdoc-5.1.0.tar.gz to /var/tmp/portage/dev-ruby/rdoc-5.1.0/work/all
>>> Source unpacked in /var/tmp/portage/dev-ruby/rdoc-5.1.0/work
>>> Preparing source in /var/tmp/portage/dev-ruby/rdoc-5.1.0/work ...
 [32;01m*[0m Running prepare phase for all ...
 [32;01m*[0m Running source copy phase for ruby24 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/rdoc-5.1.0/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ruby/rdoc-5.1.0/work ...
 [32;01m*[0m Running compile phase for ruby24 ...
Generating lib/rdoc/rd/block_parser.rb...
/usr/bin/ruby24 -rubygems /usr/lib64/ruby/gems/2.4.0/gems/racc-1.4.14/bin/racc -l -o lib/rdoc/rd/block_parser.rb lib/rdoc/rd/block_parser.ry
Generating lib/rdoc/rd/inline_parser.rb...
/usr/bin/ruby24 -rubygems /usr/lib64/ruby/gems/2.4.0/gems/racc-1.4.14/bin/racc -l -o lib/rdoc/rd/inline_parser.rb lib/rdoc/rd/inline_parser.ry
Generating lib/rdoc/markdown.rb...
/usr/bin/ruby24 -rubygems /usr/lib64/ruby/gems/2.4.0/gems/kpeg-1.1.0/bin/kpeg -fsv -o lib/rdoc/markdown.rb lib/rdoc/markdown.kpeg
Wrote RDoc::Markdown to lib/rdoc/markdown.rb
 [32;01m*[0m Running compile phase for all ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-ruby/rdoc-5.1.0

>>> Install rdoc-5.1.0 into /var/tmp/portage/dev-ruby/rdoc-5.1.0/image/ category dev-ruby
 [32;01m*[0m Running install phase for ruby24 ...
 [32;01m*[0m Running install phase for all ...
 [31;01m*[0m ERROR: dev-ruby/rdoc-5.1.0::gentoo failed (install phase):
 [31;01m*[0m   USE Flag 'ruby_targets_ruby21' not in IUSE for dev-ruby/rdoc-5.1.0
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m          ebuild.sh, line  115:  Called src_install
 [31;01m*[0m        environment, line 4440:  Called ruby-ng_src_install
 [31;01m*[0m        environment, line 4140:  Called _ruby_invoke_environment 'all' 'all_ruby_install'
 [31;01m*[0m        environment, line  584:  Called all_ruby_install
 [31;01m*[0m        environment, line  681:  Called use 'ruby_targets_ruby21'
 [31;01m*[0m   phase-helpers.sh, line  200:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m   				die "USE Flag '${u}' not in IUSE for ${CATEGORY}/${PF}"
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=dev-ruby/rdoc-5.1.0::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-ruby/rdoc-5.1.0::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =rdoc-5.1.0
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/dev-ruby/rdoc-5.1.0/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-ruby/rdoc-5.1.0/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/dev-ruby/rdoc-5.1.0/work/all/rdoc-5.1.0'
 [31;01m*[0m S: '/var/tmp/portage/dev-ruby/rdoc-5.1.0/work/all/rdoc-5.1.0'
Comment 5 Albert W. Hopkins 2017-08-20 13:47:17 UTC
(In reply to Luigi 'Comio' Mantellini from comment #3)
> Ruby 2.1 is deprecated. See https://bugs.gentoo.org/show_bug.cgi?id=615822
> 
> Ciao

Someone needs to tell rdoc:

# grep ^USE_RUBY /usr/portage/dev-ruby/rdoc/*.ebuild
/usr/portage/dev-ruby/rdoc/rdoc-4.2.0.ebuild:USE_RUBY="ruby21 ruby22"
/usr/portage/dev-ruby/rdoc/rdoc-4.2.2.ebuild:USE_RUBY="ruby21 ruby22 ruby23"
/usr/portage/dev-ruby/rdoc/rdoc-4.3.0.ebuild:USE_RUBY="ruby21 ruby22 ruby23"
/usr/portage/dev-ruby/rdoc/rdoc-5.0.0-r3.ebuild:USE_RUBY="ruby21 ruby22 ruby23 ruby24"
/usr/portage/dev-ruby/rdoc/rdoc-5.1.0.ebuild:USE_RUBY="ruby21 ruby22 ruby23 ruby24"
Comment 6 Gerard van Vuuren 2017-08-20 15:29:22 UTC
Same problem here.
Gerard.
Comment 7 Harold Anderson 2017-08-20 16:35:57 UTC
Created attachment 489788 [details, diff]
dev-ruby/rdoc-5.1.0.ebuild

Remove ruby21 from IUSE.  This ebuild has also been added to my overlay hnaparst.
Comment 8 jorgicio 2017-08-20 16:41:48 UTC
The same issue happens with 5.1.0 version from the Gentoo Portage Tree.
Comment 9 elprawn 2017-08-20 18:32:16 UTC
Created attachment 489832 [details, diff]
Patch - target only ruby22

I tried to merge the ebuild from hnaparst, but for me it fails with another error.

The only I have uploaded is working for me.
Comment 10 Matthieu Mota 2017-08-20 18:55:21 UTC
Created attachment 489858 [details]
Fix rdoc compilation with ruby21

I can confirm same problem at compilation. Remove ruby ​​21 in the ebuild fix the problem.
Comment 11 Harold Anderson 2017-08-20 18:58:43 UTC
(In reply to elprawn from comment #9)
> I tried to merge the ebuild from hnaparst, but for me it fails with another
> error.

Thanks for those details, very helpful.
Comment 12 gen2saurus 2017-08-20 19:04:29 UTC
I published the solution here: https://forums.gentoo.org/viewtopic-p-8107966.html#8107966
Comment 13 Hans de Graaff gentoo-dev Security 2017-08-20 19:13:14 UTC
I think this happens because the default RUBY_TARGETS was still containing ruby21. I've now removed this. Apologies for missing that when masking ruby21.
Comment 14 elprawn 2017-08-20 19:16:24 UTC
(In reply to hnaparst from comment #11)
> (In reply to elprawn from comment #9)
> > I tried to merge the ebuild from hnaparst, but for me it fails with another
> > error.
> 
> Thanks for those details, very helpful.

You're welcome. Thank you for not resorting to sarcasm.

Here is the output of the build, using your ebuild on my platform. I am unfamiliar with how to format it as code. Apologies.


>>> Creating Manifest for /usr/portage/dev-ruby/rdoc
 * rdoc-4.2.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                     [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                    [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                   [ ok ]
>>> Unpacking source...
 * Running unpack phase for all ...
>>> Unpacking rdoc-4.2.0.tar.gz to /var/tmp/portage/dev-ruby/rdoc-4.2.0/work/all
>>> Source unpacked in /var/tmp/portage/dev-ruby/rdoc-4.2.0/work
>>> Preparing source in /var/tmp/portage/dev-ruby/rdoc-4.2.0/work ...
 * Running prepare phase for all ...
 * Running source copy phase for ruby22 ...
 * Running source copy phase for ruby23 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/rdoc-4.2.0/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ruby/rdoc-4.2.0/work ...
 * Running compile phase for ruby22 ...
rake aborted!
LoadError: cannot load such file -- hoe
/var/tmp/portage/dev-ruby/rdoc-4.2.0/work/ruby22/rdoc-4.2.0/Rakefile:3:in `<top (required)>'
(See full trace by running task with --trace)
 * ERROR: dev-ruby/rdoc-4.2.0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_compile
 *   environment, line 4441:  Called ruby-ng_src_compile
 *   environment, line 4133:  Called _ruby_each_implementation 'each_ruby_compile'
 *   environment, line  472:  Called _ruby_invoke_environment 'ruby22' 'each_ruby_compile'
 *   environment, line  593:  Called each_ruby_compile
 *   environment, line  913:  Called die
 * The specific snippet of code:
 *       ${RUBY} -S rake generate || die
 * 
 * If you need support, post the output of `emerge --info '=dev-ruby/rdoc-4.2.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-ruby/rdoc-4.2.0::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =rdoc-4.2.0
 * The complete build log is located at '/var/tmp/portage/dev-ruby/rdoc-4.2.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/rdoc-4.2.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-ruby/rdoc-4.2.0/work/ruby22/rdoc-4.2.0'
 * S: '/var/tmp/portage/dev-ruby/rdoc-4.2.0/work/ruby22/rdoc-4.2.0'

 * Messages for package dev-ruby/rdoc-4.2.0:

 * ERROR: dev-ruby/rdoc-4.2.0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_compile
 *   environment, line 4441:  Called ruby-ng_src_compile
 *   environment, line 4133:  Called _ruby_each_implementation 'each_ruby_compile'
 *   environment, line  472:  Called _ruby_invoke_environment 'ruby22' 'each_ruby_compile'
 *   environment, line  593:  Called each_ruby_compile
 *   environment, line  913:  Called die
 * The specific snippet of code:
 *       ${RUBY} -S rake generate || die
 * 
 * If you need support, post the output of `emerge --info '=dev-ruby/rdoc-4.2.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-ruby/rdoc-4.2.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-ruby/rdoc-4.2.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/rdoc-4.2.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-ruby/rdoc-4.2.0/work/ruby22/rdoc-4.2.0'
 * S: '/var/tmp/portage/dev-ruby/rdoc-4.2.0/work/ruby22/rdoc-4.2.0'
Comment 15 Hans de Graaff gentoo-dev Security 2017-08-20 19:25:38 UTC
(In reply to Hans de Graaff from comment #13)
> I think this happens because the default RUBY_TARGETS was still containing
> ruby21. I've now removed this. Apologies for missing that when masking
> ruby21.

Actually, after some more testing, it turns out that the rdoc ebuild contains references to hard-coded ruby targets causing this issue. I've updated the rdoc ebuilds in the tree and added a note to the ruby removal checklist.
Comment 16 Harold Anderson 2017-08-20 19:44:46 UTC
(In reply to elprawn from comment #14)

> Here is the output of the build, using your ebuild on my platform. I am
> unfamiliar with how to format it as code. Apologies.

Try 

layman -f
layman -a hnaparst
emerge -av =dev-ruby/rdoc-5.1.0::hnaparst

The problem you are having is probably because you are attempting to emerge the wrong version of rdoc.  The only version in my overlay is 5.1.0

Sorry for this omission.
Comment 17 elprawn 2017-08-20 19:50:12 UTC
(In reply to hnaparst from comment #16)
> (In reply to elprawn from comment #14)
> 
> > Here is the output of the build, using your ebuild on my platform. I am
> > unfamiliar with how to format it as code. Apologies.
> 
> Try 
> 
> layman -f
> layman -a hnaparst
> emerge -av =dev-ruby/rdoc-5.1.0::hnaparst
> 
> The problem you are having is probably because you are attempting to emerge
> the wrong version of rdoc.  The only version in my overlay is 5.1.0
> 
> Sorry for this omission.

Sorry. The title for this ticket specifically states 4.2.0, so I thought it was implied that it was for this version. I have not tried to emerge 5.1.0 -- it's still marked as testing in the main gentoo repo.
Comment 18 Harold Anderson 2017-08-20 19:53:02 UTC
The version in Portage is fixed now.  I have removed the ebuilds from my overlay.
Comment 19 Daniel Hammann 2017-08-20 21:17:36 UTC
Hello @Team and @all :)

...ran in the bug in the afternoon: Autoremoving ruby2.1 by world-update didnt let me reinstall rdocs anymore... Similar error-output as reported by the others over the day...

Wanted to say thank you for the fix: It allows to me proceed remaining installation now. :) :)
Comment 20 Hans de Graaff gentoo-dev Security 2017-08-21 16:01:33 UTC
*** Bug 628472 has been marked as a duplicate of this bug. ***