Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 757279 - RUBY-FAKEGEM.ECLASS problem with custom "S" variable
Summary: RUBY-FAKEGEM.ECLASS problem with custom "S" variable
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-27 22:07 UTC by bdouxx
Modified: 2020-11-28 13:19 UTC (History)
0 users

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 bdouxx 2020-11-27 22:07:43 UTC
dev-ruby/net-ssh/net-ssh-6.2.0_rc1.ebuild : _ruby_invoke_environment replace my custom "S" variable


Reproducible: Always

Steps to Reproduce:
1. create an ebuild net-ssh-6.2.0_rc1.ebuild to download  https://github.com/net-ssh/net-ssh/archive/v6.2.0.rc1.tar.gz

2. custom some variables to replace "_" by a "."
MY_PV="${PV/_rc/.rc}"
S="${WORKDIR}/all/${PN}-${MY_PV}"

3. launch repoman and emerge


Actual Results:  
 * ERROR: dev-ruby/net-ssh-6.2.0_rc1::bdouxx-overlay failed (prepare phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_prepare
 *   environment, line 2143:  Called ruby-ng_src_prepare
 *   environment, line 1799:  Called _ruby_invoke_environment 'all' '_ruby_apply_patches'
 *   environment, line  696:  Called _ruby_apply_patches
 *   environment, line  535:  Called all_ruby_prepare
 *   environment, line  788:  Called die
 * The specific snippet of code:
 *       sed -e "s:require_relative ':require './:" -i ${RUBY_FAKEGEM_GEMSPEC} || die;
 * 
 * If you need support, post the output of `emerge --info '=dev-ruby/net-ssh-6.2.0_rc1::bdouxx-overlay'`,
 * the complete build log and the output of `emerge -pqv '=dev-ruby/net-ssh-6.2.0_rc1::bdouxx-overlay'`.
 * The complete build log is located at '/var/log/portage/dev-ruby:net-ssh-6.2.0_rc1:20201127-214333.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-ruby/net-ssh-6.2.0_rc1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/net-ssh-6.2.0_rc1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-ruby/net-ssh-6.2.0_rc1/work/all'
 * S: '/var/tmp/portage/dev-ruby/net-ssh-6.2.0_rc1/work/all/net-ssh-6.2.0_rc1'


Expected Results:  
 * S: '/var/tmp/portage/dev-ruby/net-ssh-6.2.0_rc1/work/all/net-ssh-6.2.0.rc1'
Comment 1 bdouxx 2020-11-28 13:19:54 UTC
Hi,
problem solved

It's RUBY_S and not S, the variable to change for ruby packages...

it's OK with this:

MY_PV="${PV/_rc/.rc}"
RUBY_S=${PN}-${MY_PV}