[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH] scripts/trylink: use portable invocation of mktemp
From: Andrew Oates <andrew () andrewoates ! com>
Date: 2016-07-12 12:41:30
Message-ID: CAAVLcG5hj2hMrU_NNpa2LqCotO1TW9Ft+aqaXUc-YuC39QZGxA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Thanks!
On Tue, Jul 12, 2016 at 7:55 AM, Denys Vlasenko <vda.linux@googlemail.com>
wrote:
> On Mon, Jul 11, 2016 at 3:44 PM, Brad Kemp <brad@beechwoods.com> wrote:
> >
> > On Jul 10, 2016, at 8:33 PM, Andrew Oates <andrew@andrewoates.com>
> wrote:
> >
> > --tmpdir unfortunately doesn't work on OS X/BSD-style mktemp, but '-t'
> does.
> > So "mktemp -t tmp.XXXXXXXXXX" obeys TMPDIR on both Linux and OS X. "-t"
> is
> > marked as deprecated in the Linux version's manpage, however --- not
> sure if
> > you consider that a problem.
> >
> > Alternatively, it could just run "mktemp tmp.XXXXXXXXXX", which creates
> the
> > temporary file in the current directory on both systems. Not ideal, but
> > consistent (and maybe that's fine given how the script is used in the
> build
> > system?)
> >
> > The local directory may not be writeable
>
> Then link will fail anyway: linker writes resulting binary there.
>
> I committed a change with "mktemp tmp.XXXXXXXXXX"
>
[Attachment #5 (text/html)]
<div dir="ltr">Thanks!</div><div class="gmail_extra"><br><div class="gmail_quote">On \
Tue, Jul 12, 2016 at 7:55 AM, Denys Vlasenko <span dir="ltr"><<a \
href="mailto:vda.linux@googlemail.com" \
target="_blank">vda.linux@googlemail.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><span class="">On Mon, Jul 11, 2016 at 3:44 PM, Brad Kemp \
<<a href="mailto:brad@beechwoods.com">brad@beechwoods.com</a>> wrote:<br> \
><br> > On Jul 10, 2016, at 8:33 PM, Andrew Oates <<a \
href="mailto:andrew@andrewoates.com">andrew@andrewoates.com</a>> wrote:<br> \
><br> > --tmpdir unfortunately doesn't work on OS X/BSD-style mktemp, but \
'-t' does.<br> > So "mktemp -t tmp.XXXXXXXXXX" obeys TMPDIR on \
both Linux and OS X. "-t" is<br> > marked as deprecated in the Linux \
version's manpage, however --- not sure if<br> > you consider that a \
problem.<br> ><br>
> Alternatively, it could just run "mktemp tmp.XXXXXXXXXX", which \
creates the<br> > temporary file in the current directory on both systems. Not \
ideal, but<br> > consistent (and maybe that's fine given how the script is \
used in the build<br> > system?)<br>
><br>
> The local directory may not be writeable<br>
<br>
</span>Then link will fail anyway: linker writes resulting binary there.<br>
<br>
I committed a change with "mktemp tmp.XXXXXXXXXX"<br>
</blockquote></div><br></div>
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic