Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 207247
Collapse All | Expand All

(-)gems.eclass.backup (-2 / +14 lines)
Lines 65-72 Link Here
65
	fi
65
	fi
66
66
67
	dodir ${GEMSDIR}
67
	dodir ${GEMSDIR}
68
	gem install ${GEM_SRC} --version ${PV} ${myconf} \
68
69
		--local --install-dir "${D}/${GEMSDIR}" || die "gem install failed"
69
	# work around the fact that gem doesn't always set its exit status
70
	# when the install command failed
71
	# known for rubygems-1.0.1, probably older versions as well
72
	# see gentoo bug 207247  http://bugs.gentoo.org/show_bug.cgi?id=207247
73
	# and rubygems bug 17438
74
	# http://rubyforge.org/tracker/index.php?func=detail&aid=17438&group_id=126&atid=575
75
	local out=$(gem install ${GEM_SRC} --version ${PV} ${myconf} \
76
		--local --install-dir "${D}/${GEMSDIR}" 2>&1 || die "gem install failed")
77
	echo "$out"
78
	if echo "$out" | grep -q '^ERROR'; then
79
		die "gem install failed (deduced from its output, NOT the exit status)"
80
	fi
81
70
82
71
	if [[ -d "${D}/${GEMSDIR}/bin" ]] ; then
83
	if [[ -d "${D}/${GEMSDIR}/bin" ]] ; then
72
		exeinto /usr/bin
84
		exeinto /usr/bin

Return to bug 207247