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

(-)a/bin/misc-functions.sh (-1 / +4 lines)
Lines 807-814 install_qa_check_prefix() { Link Here
807
			rf=$(readlink ${fn})
807
			rf=$(readlink ${fn})
808
			[[ ${rf} != /* ]] && rf=${fn%/*}/${rf}
808
			[[ ${rf} != /* ]] && rf=${fn%/*}/${rf}
809
		fi
809
		fi
810
		# need to have both absolutised paths, bug #342929
811
		line=$(canonicalize ${line[0]})
812
		local eprefix=$(canonicalize ${EPREFIX})
810
		# does the shebang start with ${EPREFIX}, and does it exist?
813
		# does the shebang start with ${EPREFIX}, and does it exist?
811
		if [[ ${line[0]} == ${EPREFIX}/* ]] ; then
814
		if [[ ${line} == ${eprefix}/* ]] ; then
812
			if [[ ! -e ${ROOT%/}${line[0]} && ! -e ${D%/}${line[0]} ]] ; then
815
			if [[ ! -e ${ROOT%/}${line[0]} && ! -e ${D%/}${line[0]} ]] ; then
813
				# hmm, refers explicitly to $EPREFIX, but doesn't exist,
816
				# hmm, refers explicitly to $EPREFIX, but doesn't exist,
814
				# if it's in PATH that's wrong in any case
817
				# if it's in PATH that's wrong in any case

Return to bug 342929