Gentoo Archives: gentoo-dev

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-dev@l.g.o
Cc: "Ulrich Müller" <ulm@g.o>
Subject: [gentoo-dev] [PATCH 4/8] wrapper.eclass: Do not use emktemp.
Date: Thu, 10 Sep 2020 19:10:29
Message-Id: 20200910190834.17560-5-ulm@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/8] Split off remaining functions from eutils.eclass by "Ulrich Müller"
1 Signed-off-by: Ulrich Müller <ulm@g.o>
2 ---
3 eclass/wrapper.eclass | 4 +---
4 1 file changed, 1 insertion(+), 3 deletions(-)
5
6 diff --git a/eclass/wrapper.eclass b/eclass/wrapper.eclass
7 index 8cde94979d1a..399c7cc269d4 100644
8 --- a/eclass/wrapper.eclass
9 +++ b/eclass/wrapper.eclass
10 @@ -9,8 +9,6 @@
11 if [[ -z ${_WRAPPER_ECLASS} ]]; then
12 _WRAPPER_ECLASS=1
13
14 -inherit eutils # for emktemp
15 -
16 # @FUNCTION: make_wrapper
17 # @USAGE: <wrapper> <target> [chdir] [libpaths] [installpath]
18 # @DESCRIPTION:
19 @@ -20,7 +18,7 @@ inherit eutils # for emktemp
20 # libpaths followed by optionally changing directory to chdir.
21 make_wrapper() {
22 local wrapper=$1 bin=$2 chdir=$3 libdir=$4 path=$5
23 - local tmpwrapper=$(emktemp)
24 + local tmpwrapper="${T}/tmp.wrapper.${wrapper##*/}"
25 has "${EAPI:-0}" 0 1 2 && local EPREFIX=""
26
27 (
28 --
29 2.28.0