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

(-)eclass/eutils.eclass (-6 / +9 lines)
Lines 377-389 Link Here
377
		echo "${tmp}"
377
		echo "${tmp}"
378
	else
378
	else
379
		if [[ ${exe} == "touch" ]] ; then
379
		if [[ ${exe} == "touch" ]] ; then
380
			[[ ${USERLAND} == "GNU" ]] \
380
			# for FreeBSD-mktemp, -t is the prefix
381
				&& mktemp -p "${topdir}" \
381
			# for GNU-mktemp, -t is the template
382
				|| TMPDIR="${topdir}" mktemp -t tmp
382
			# in eprefix, we might have USERLAND!=GNU, but GNU-mktemp,
383
			# and we will end up with empty tempfile names.
384
			#
385
			# OTOH, having tempfiles called tmp.XXXXXXXXXX.WSqcv4AI
386
			# in BSD will not be a problem.
387
			TMPDIR="${topdir}" mktemp -t tmp.XXXXXXXXXX
383
		else
388
		else
384
			[[ ${USERLAND} == "GNU" ]] \
389
			TMPDIR="${topdir}" mktemp -dt tmp.XXXXXXXXXX
385
				&& mktemp -d "${topdir}" \
386
				|| TMPDIR="${topdir}" mktemp -dt tmp
387
		fi
390
		fi
388
	fi
391
	fi
389
}
392
}

Return to bug 174061