commit:     f4a84c180c096ff27a077e3fc6475b99228ae9f9
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  9 15:18:36 2020 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Sep 12 16:03:00 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4a84c18

wrapper.eclass: Do not use emktemp.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 eclass/wrapper.eclass | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/eclass/wrapper.eclass b/eclass/wrapper.eclass
index 8cde94979d1..399c7cc269d 100644
--- a/eclass/wrapper.eclass
+++ b/eclass/wrapper.eclass
@@ -9,8 +9,6 @@
 if [[ -z ${_WRAPPER_ECLASS} ]]; then
 _WRAPPER_ECLASS=1
 
-inherit eutils      # for emktemp
-
 # @FUNCTION: make_wrapper
 # @USAGE: <wrapper> <target> [chdir] [libpaths] [installpath]
 # @DESCRIPTION:
@@ -20,7 +18,7 @@ inherit eutils      # for emktemp
 # libpaths followed by optionally changing directory to chdir.
 make_wrapper() {
        local wrapper=$1 bin=$2 chdir=$3 libdir=$4 path=$5
-       local tmpwrapper=$(emktemp)
+       local tmpwrapper="${T}/tmp.wrapper.${wrapper##*/}"
        has "${EAPI:-0}" 0 1 2 && local EPREFIX=""
 
        (

Reply via email to