Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 143775 Details for
Bug 207247
packages using gems.eclass will succeed even when gem install fails with rubygems-1.0.1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
work around the missing exit status until rubygems is fixed
fix-gems-eclass-missing-exit-status.patch (text/plain), 981 bytes, created by
Marco Matthies
on 2008-02-17 13:28:24 UTC
(
hide
)
Description:
work around the missing exit status until rubygems is fixed
Filename:
MIME Type:
Creator:
Marco Matthies
Created:
2008-02-17 13:28:24 UTC
Size:
981 bytes
patch
obsolete
>--- gems.eclass.backup 2008-02-17 14:14:48.000000000 +0100 >+++ gems.eclass 2008-02-17 14:20:30.000000000 +0100 >@@ -65,8 +65,20 @@ > fi > > dodir ${GEMSDIR} >- gem install ${GEM_SRC} --version ${PV} ${myconf} \ >- --local --install-dir "${D}/${GEMSDIR}" || die "gem install failed" >+ >+ # work around the fact that gem doesn't always set its exit status >+ # when the install command failed >+ # known for rubygems-1.0.1, probably older versions as well >+ # see gentoo bug 207247 http://bugs.gentoo.org/show_bug.cgi?id=207247 >+ # and rubygems bug 17438 >+ # http://rubyforge.org/tracker/index.php?func=detail&aid=17438&group_id=126&atid=575 >+ local out=$(gem install ${GEM_SRC} --version ${PV} ${myconf} \ >+ --local --install-dir "${D}/${GEMSDIR}" 2>&1 || die "gem install failed") >+ echo "$out" >+ if echo "$out" | grep -q '^ERROR'; then >+ die "gem install failed (deduced from its output, NOT the exit status)" >+ fi >+ > > if [[ -d "${D}/${GEMSDIR}/bin" ]] ; then > exeinto /usr/bin
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 207247
: 143775