diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-02-15 23:40:16 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-02-15 23:40:16 +0000 |
commit | a62c91c945b714edc58bf172c7e4cfd884d88aad (patch) | |
tree | c43f078513fdae86cf222d1b6f93086255e6542d /eclass | |
parent | Removing virtual/libpcap wrt bug #117898 (diff) | |
download | gentoo-2-a62c91c945b714edc58bf172c7e4cfd884d88aad.tar.gz gentoo-2-a62c91c945b714edc58bf172c7e4cfd884d88aad.tar.bz2 gentoo-2-a62c91c945b714edc58bf172c7e4cfd884d88aad.zip |
Fix mktemp call for non-GNU userlands, thanks to Benigno B. Junior. Finally closes bug #88079.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/eutils.eclass | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index f2843cbad8c8..800564ad67a0 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.222 2006/01/11 01:00:43 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.223 2006/02/15 23:40:16 flameeyes Exp $ # # Author: Martin Schlemmer <azarah@gentoo.org> # @@ -385,10 +385,16 @@ emktemp() { ${exe} "${tmp}" || ${exe} -p "${tmp}" echo "${tmp}" else - [[ ${exe} == "touch" ]] \ - && exe="-p" \ - || exe="-d" - mktemp ${exe} "${topdir}" + if [[ ${exe} == "touch" ]] ; then + [[ ${USERLAND} == "GNU" ]] \ + && exe="-p" \ + || exe="-t" + else + [[ ${USERLAND} == "GNU" ]] \ + && exe="-d" \ + || exe="-dt" + fi + TMPDIR="${topdir}" mktemp ${exe} tmp fi } |