diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-12-05 11:30:17 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-12-05 11:30:17 +0000 |
commit | e6f663a2a41577fcc0b2a99cb1a296a63795bc54 (patch) | |
tree | 6db19f15b8bce4f87598139823ba947b260048ef /eclass/ruby-ng.eclass | |
parent | Critical version bump (diff) | |
download | historical-e6f663a2a41577fcc0b2a99cb1a296a63795bc54.tar.gz historical-e6f663a2a41577fcc0b2a99cb1a296a63795bc54.tar.bz2 historical-e6f663a2a41577fcc0b2a99cb1a296a63795bc54.zip |
Add a further check after install for files installed in the wrong directory (sitedir rather than sitelibdir).
Diffstat (limited to 'eclass/ruby-ng.eclass')
-rw-r--r-- | eclass/ruby-ng.eclass | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass index 2acac40b59c0..8ce4d48af387 100644 --- a/eclass/ruby-ng.eclass +++ b/eclass/ruby-ng.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.1 2009/12/05 09:35:48 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.2 2009/12/05 11:30:17 flameeyes Exp $ # # @ECLASS: ruby-ng.eclass # @MAINTAINER: @@ -364,6 +364,18 @@ ruby-ng_src_test() { _each_ruby_check_install() { local libruby_basename=$(${RUBY} -rrbconfig -e 'puts Config::CONFIG["LIBRUBY_SO"]') local libruby_soname=$(scanelf -qS "/usr/$(get_libdir)/${libruby_basename}" | awk '{ print $1 }') + local sitedir=$(${RUBY} -rrbconfig -e 'puts Config::CONFIG["sitedir"]') + local sitelibdir=$(${RUBY} -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]') + + # Look for wrong files in sitedir + if [[ -d "${D}${sitedir}" ]]; then + local f=$(find "${D}${sitedir}" -mindepth 1 -maxdepth 1 -not -wholename "${D}${sitelibdir}") + if [[ -n ${f} ]]; then + eerror "Found files in sitedir, outsite sitelibdir:" + eerror "${f}" + die "Misplaced files in sitedir" + fi + fi # The current implementation lacks libruby (i.e.: jruby) [[ -z ${libruby_soname} ]] && return 0 |