Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554560 - ruby-single.eclass doesn’t provide ruby_implementation_command()
Summary: ruby-single.eclass doesn’t provide ruby_implementation_command()
Status: RESOLVED DUPLICATE of bug 513888
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-11 22:15 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2021-10-14 05:17 UTC (History)
1 user (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 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2015-07-11 22:15:26 UTC
It looks like my package, net-irc/epic5, could benefit from ruby-single.eclass as it can only build against one ruby implementation at a time. See bug #547768 comment 1.

However, for my package to build against a particular implementation of ruby, it requires me to pass its configure script a command that invokes the ruby implementation to be compiled against. It looks like ruby-utils.eclass and ruby-single.eclass do not set ${RUBY}. As I was looking at porting my ebuild to ruby-single.eclass, I couldn’t figure out a “right” way find the ruby binary from the implementation provided in ${RUBY_DEPS}.

I can imagine that other similar packages would be interested in being able to use ruby_get_libruby() with ruby-single.eclass too.

Is my package the sort of situation that ruby-single.eclass is intended for? If so, I think ruby-single.eclass needs to provide more information about the arbitrarily chosen ruby implementation. Otherwise, I think some small changes to ruby-ng.eclass to make it friendlier to applications that can only build against a single optional ruby implementations would be great. (It already works OK for non-optional single ruby dependency, you could just put REQUIRED_USE="^^ ( $(ruby_get_use_targets) )", but for RUBY_OPTIONAL=yes… see bug #547768 comment 1).
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-14 05:17:46 UTC

*** This bug has been marked as a duplicate of bug 513888 ***