Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 655414 | Differences between
and this patch

Collapse All | Expand All

(-)a/eclass/autotools.eclass (-9 / +24 lines)
Lines 444-457 autotools_env_setup() { Link Here
444
		for pv in ${_LATEST_AUTOMAKE[@]/#*:} ; do
444
		for pv in ${_LATEST_AUTOMAKE[@]/#*:} ; do
445
			# Break on first hit to respect _LATEST_AUTOMAKE order.
445
			# Break on first hit to respect _LATEST_AUTOMAKE order.
446
			local hv_args=""
446
			local hv_args=""
447
			case ${EAPI:-0} in
447
			# Cross-prefix builds rely on non-standard behaviour where
448
				5|6)
448
			# automake is executed from the target system instead of the
449
					hv_args="--host-root"
449
			# build system. ROOT=/ in this context but in other
450
					;;
450
			# contexts, ROOT=/ indicates that the target system is also
451
				7)
451
			# the build system, so we can check the target system
452
					hv_args="-b"
452
			# without negatively impacting anyone. However, we only do
453
					;;
453
			# this when EPREFIX is set just to be on the safe side. See
454
			esac
454
			# https://bugs.gentoo.org/655414.
455
			if [[ ${ROOT} == / && -n ${EPREFIX} ]]; then
456
				case ${EAPI:-0} in
457
					7)
458
						hv_args="-d"
459
						;;
460
				esac
461
			else
462
				case ${EAPI:-0} in
463
					5|6)
464
						hv_args="--host-root"
465
						;;
466
					7)
467
						hv_args="-b"
468
						;;
469
				esac
470
			fi
455
			ROOT=/ has_version ${hv_args} "=sys-devel/automake-${pv}*" && export WANT_AUTOMAKE="${pv}" && break
471
			ROOT=/ has_version ${hv_args} "=sys-devel/automake-${pv}*" && export WANT_AUTOMAKE="${pv}" && break
456
		done
472
		done
457
		[[ ${WANT_AUTOMAKE} == "latest" ]] && \
473
		[[ ${WANT_AUTOMAKE} == "latest" ]] && \
458
- 

Return to bug 655414