Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644768 - app-misc/hivex-1.3.14 USE=-ruby - ERROR: No compatible Ruby target selected.
Summary: app-misc/hivex-1.3.14 USE=-ruby - ERROR: No compatible Ruby target selected.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-16 14:42 UTC by Austin S. Hemmelgarn
Modified: 2021-06-01 19:43 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Austin S. Hemmelgarn 2018-01-16 14:42:46 UTC
When trying to build app-misc/hivex with USE='-ruby' and a RUBY_TARGETS that doesn't contain either ruby22 or ruby23, the build fails during the prepare phase with the following (this is the exact content of the build log, so I'm going to skip attaching one):

 * Package:    app-misc/hivex-1.3.14
 * Repository: gentoo
 * Maintainer: maksbotan@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux perl python python_single_target_python3_5 python_targets_python2_7 python_targets_python3_5 python_targets_python3_6 readline userland_GNU
 * FEATURES:   ccache compressdebug network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox
>>> Unpacking source...
>>> Unpacking hivex-1.3.14.tar.gz to /var/tmp/portage/app-misc/hivex-1.3.14/work
>>> Source unpacked in /var/tmp/portage/app-misc/hivex-1.3.14/work
>>> Preparing source in /var/tmp/portage/app-misc/hivex-1.3.14/work/hivex-1.3.14 ...
 * Running prepare phase for all ...
 * Running prepare phase for all ...
 * You need to select at least one compatible Ruby installation target via RUBY_TARGETS in make.conf.
 * Compatible targets for this package are: ruby22
 * ruby23
 * 
 * See https://www.gentoo.org/proj/en/prog_lang/ruby/index.xml#doc_chap3 for more information.
 * 
 * ERROR: app-misc/hivex-1.3.14::gentoo failed (prepare phase):
 *   No compatible Ruby target selected.
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_prepare
 *   environment, line 5827:  Called ruby-ng_src_prepare
 *   environment, line 5633:  Called _ruby_each_implementation '_ruby_source_copy'
 *   environment, line  674:  Called die
 * The specific snippet of code:
 *           die "No compatible Ruby target selected.";
 * 
 * If you need support, post the output of `emerge --info '=app-misc/hivex-1.3.14::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-misc/hivex-1.3.14::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 =hivex-1.3.14
 * The complete build log is located at '/var/tmp/portage/app-misc/hivex-1.3.14/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/app-misc/hivex-1.3.14/temp/environment'.
 * Working directory: '/var/tmp/portage/app-misc/hivex-1.3.14/work/hivex-1.3.14'
 * S: '/var/tmp/portage/app-misc/hivex-1.3.14/work/hivex-1.3.14'

This is almost certainly just a bug in the handling of the ruby-ng eclass, just like https://bugs.gentoo.org/488102 and could be potentially fixed by a fix for https://bugs.gentoo.org/489608 (which has apparently been untouched since 2014).
Comment 1 Larry the Git Cow gentoo-dev 2021-06-01 19:43:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=600543a6c01a0f6a4124b06b8b4448e12bac7aae

commit 600543a6c01a0f6a4124b06b8b4448e12bac7aae
Author:     John Helmert III <ajak@gentoo.org>
AuthorDate: 2021-06-01 19:40:57 +0000
Commit:     John Helmert III <ajak@gentoo.org>
CommitDate: 2021-06-01 19:43:27 +0000

    app-misc/hivex: fix unconditional ruby usage
    
    Closes: https://bugs.gentoo.org/644768
    Signed-off-by: John Helmert III <ajak@gentoo.org>

 app-misc/hivex/hivex-1.3.18.ebuild | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)