View | Details | Raw Unified | Return to bug 220605 | Differences between
and this patch

Collapse All | Expand All

(-)Mk/Scripts/qa.sh (-1 / +31 lines)
Lines 822-831 Link Here
822
	return $rc
822
	return $rc
823
}
823
}
824
824
825
gemdeps()
826
{
827
	local msg
828
	if [ "${PKGBASE%%-*}" = "rubygem" ]; then
829
		while read -r l; do
830
			name=${l%% *}
831
			vers=${l#* }
832
			while read -r v; do
833
				bad=$(${LOCALBASE}/bin/ruby -e "puts 'BAD' if not Gem::Dependency.new('$name','$v').match?('$name','$(${LOCALBASE}/bin/gem list -e "$name" | sed "s|.*(\(.*\))|\1|")')")
834
				if [ -n "${bad}" ]; then
835
					msg="${msg}RubyGem dependency <${name} ["${v}"]> is not satisfied\n"
836
				fi
837
			done <<-EOF
838
			$(while echo "$vers" | grep -q '"'; do
839
				echo "$vers" | cut -d '"' -f2
840
				vers=$(echo "$vers"|cut -d '"' -f3-)
841
			done)
842
			EOF
843
		done <<-EOF
844
		$(find ${STAGEDIR}${PREFIX} -type f \
845
			-path '*/specifications/*\.gemspec' \
846
			-exec grep -a add_runtime_dependency {} + \
847
		| sed 's|.*<\(.*\)>.*\[\(.*\)\])|\1 \2|')
848
		EOF
849
		if [ -n "${msg}" ]; then
850
			printf "${msg}"
851
			return 1
852
		fi
853
	fi
854
}
825
855
826
checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo"
856
checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo"
827
checks="$checks suidfiles libtool libperl prefixvar baselibs terminfo"
857
checks="$checks suidfiles libtool libperl prefixvar baselibs terminfo"
828
checks="$checks proxydeps sonames perlcore no_arch"
858
checks="$checks proxydeps sonames perlcore no_arch gemdeps"
829
859
830
ret=0
860
ret=0
831
cd ${STAGEDIR}
861
cd ${STAGEDIR}

Return to bug 220605