Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] [prefix] portage bug: subst-install and TMPDIR
Date: Tue, 15 May 2007 19:38:43
Message-Id: 20070515193818.GH12334@gentoo.org
In Reply to: [gentoo-alt] [prefix] portage bug: subst-install and TMPDIR by Michael Haubenwallner
1 Applied, thanks. I don't dare asking if it works. I hope it helps you
2 a bit further though. ;) Will release snapshot later tonight in a new
3 portage snapshot + bootstrap script, maybe that helps a bit too.
4
5
6 On 14-05-2007 11:00:40 +0200, Michael Haubenwallner wrote:
7 > Hi Grobian,
8 >
9 > in prefix-portage/subst-install.in there is a problem using ${TMP-/tmp}
10 > as temporary directory instead of ${TMPDIR-/tmp}.
11 >
12 > TMP is undefined for unix, TMPDIR needs to be used instead.
13 > But on Interix/Windows, TMP must be defined as dos-style path...
14 >
15 > Thanks!
16 >
17 > /haubi/
18 >
19 > --- subst-install.in.orig Mon May 14 10:46:03 2007
20 > +++ subst-install.in Mon May 14 10:46:09 2007
21 > @@ -17,7 +17,7 @@
22 >
23 > . ${mydir}/subst-install.vars
24 >
25 > -substinstall_tmpdir=${TMP-/tmp}/${myname}.$$
26 > +substinstall_tmpdir=${TMPDIR-/tmp}/${myname}.$$
27 > trap "${RM} -rf \${substinstall_tmpdir}" "0"
28 > mkdir -p ${substinstall_tmpdir} \
29 > || { echo "cannot create directory ${substinstall_tmpdir}" >&2 ; exit 1 ; }
30 >
31 >
32 >
33 > --
34 > Salomon Automation GmbH - Friesachstrasse 15 - A-8114 Friesach bei Graz
35 > Sitz der Gesellschaft: Friesach bei Graz
36 > UID-NR:ATU28654300 - Firmenbuchnummer: 49324 K
37 > Firmenbuchgericht: Landesgericht für Zivilrechtssachen Graz
38 >
39 > --
40 > gentoo-alt@g.o mailing list
41 >
42
43 --
44 Fabian Groffen
45 Gentoo on a different level
46
47 --
48 gentoo-alt@g.o mailing list

Replies

Subject Author
Re: [gentoo-alt] [prefix] portage bug: subst-install and TMPDIR Michael Haubenwallner <michael.haubenwallner@×××××××.at>