summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-02-18 10:50:10 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-02-18 10:50:10 +0000
commita7b90b60768f53d8b4a0137703a5b0c489db20e3 (patch)
tree20122ba61979d99f93f0ef1ae8d26a95b0d4c9bb /eclass
parentstable amd64 (diff)
downloadgentoo-2-a7b90b60768f53d8b4a0137703a5b0c489db20e3.tar.gz
gentoo-2-a7b90b60768f53d8b4a0137703a5b0c489db20e3.tar.bz2
gentoo-2-a7b90b60768f53d8b4a0137703a5b0c489db20e3.zip
Fix mktemp call on Linux. Bug #88079 again.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass11
1 files changed, 5 insertions, 6 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 843347eea0d8..5a4d11952506 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.224 2006/02/17 22:18:19 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.225 2006/02/18 10:50:10 flameeyes Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -387,14 +387,13 @@ emktemp() {
else
if [[ ${exe} == "touch" ]] ; then
[[ ${USERLAND} == "GNU" ]] \
- && exe="-p" \
- || exe="-t"
+ && mktemp -p "${topdir}" \
+ || TMPDIR="${topdir}" mktemp -t tmp
else
[[ ${USERLAND} == "GNU" ]] \
- && exe="-d" \
- || exe="-dt"
+ && mktemp -d "${topdir}" \
+ || TMPDIR="${topdir}" mktemp -dt tmp
fi
- TMPDIR="${topdir}" mktemp ${exe} tmp
fi
}