Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 456158 - dev-ruby/bsearch-1.5-r3: sed: can't read tests/test.sh: No such file or directory
Summary: dev-ruby/bsearch-1.5-r3: sed: can't read tests/test.sh: No such file or direc...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-08 11:40 UTC by Tomoh K.
Modified: 2013-02-10 07:45 UTC (History)
0 users

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


Attachments
build.log for dev-ruby/bsearch-1.5-r3 (bsearch-1.5-r3.build.log,2.24 KB, text/plain)
2013-02-08 11:40 UTC, Tomoh K.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomoh K. 2013-02-08 11:40:48 UTC
Created attachment 338312 [details]
build.log for dev-ruby/bsearch-1.5-r3

Step to reproduce:
1. emerge =dev-ruby/bsearch-1.5-r3

Actural results:
emerge failed.
>>> Preparing source in /var/tmp/portage/dev-ruby/bsearch-1.5-r3/work ...
 * Running prepare phase for all ...
sed: can't read tests/test.sh: No such file or directory
 * ERROR: dev-ruby/bsearch-1.5-r3 failed (prepare phase):
 *   Unable to fix tests shell script.
 * 

Due to pkgmove dev-ruby/ruby-bsearch -> dev-ruby/bsearch.
Source directory of bsearch-1.5-r3 is ruby-bsearch-1.5 instead bsearch-1.5.

Easy to fix by adding RUBY_S="ruby-{P}" to the ebuild.
Regards.

--- bsearch-1.5-r3.ebuild.orig
+++ bsearch-1.5-r3.ebuild
@@ -17,6 +17,8 @@
 
 DOCS="ChangeLog *.rd bsearch.png"
 
+RUBY_S="ruby-${P}"
+
 all_ruby_prepare() {
        sed -i 's/ruby/\$\{RUBY\}/' tests/test.sh || die "Unable to fix tests shell script."
 }
Comment 1 Hans de Graaff gentoo-dev Security 2013-02-10 07:45:08 UTC
Thanks for the bug and diagnosis. I've opted to just remove this version since 1.5.0 was already working correctly.