public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Sam Ravnborg <sam@ravnborg.org>,
	Herbert Xu <herbert@gondor.apana.org.au>
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org, mm-commits@vger.kernel.org
Subject: Re: + git-klibc-mktemp-fix.patch added to -mm tree
Date: Sat, 08 Apr 2006 13:27:06 -0700	[thread overview]
Message-ID: <44381C9A.3050502@zytor.com> (raw)
In-Reply-To: <20060408201412.GA26946@mars.ravnborg.org>

Sam Ravnborg wrote:
> On Sat, Apr 08, 2006 at 12:05:54AM -0700, akpm@osdl.org wrote:
>> diff -puN usr/dash/mkbuiltins~git-klibc-mktemp-fix usr/dash/mkbuiltins
>> --- 25/usr/dash/mkbuiltins~git-klibc-mktemp-fix	Sat Apr  8 14:51:11 2006
>> +++ 25-akpm/usr/dash/mkbuiltins	Sat Apr  8 14:51:11 2006
>> @@ -37,7 +37,7 @@
>>  
>>  tempfile=tempfile
>>  if ! type tempfile > /dev/null 2>&1; then
>> -	tempfile=mktemp
>> +	tempfile="mktemp /tmp/tmp.XXXXXX"
> 
> Shouldn't that be:
>> +	tempfile="$(mktemp /tmp/tmp.XXXXXX)"
> 

No, it's invoked later on as:

temp=$($tempfile)
temp2=$($tempfile)

Either which way; I have a better fix for the bison issue (this all has 
to do with the fact that make's handling of tools that output more than 
one file at a time is at the very best insane); however, I'm getting 
rather unhappy with some of the code in dash.

In particular, mksyntax.c seems to assume it runs on the same machine 
that the resulting code is going to execute on, for example, it tries to 
detect whether or not "char" is signed, but that doesn't work when 
cross-compiling.

dash isn't actually necessary in the in-kernel build, although it's a 
very nice bonus for customizing initramfs to have a shell to glue things 
together with.

Herbert: can the code be restructured with appropriate casts so that 
signed/unsigned is factored out of mksyntax?  As it currently stands, 
it's not cross-compile-safe, which is unacceptable.

	-hpa

  reply	other threads:[~2006-04-08 20:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200604080707.k38778VV023208@shell0.pdx.osdl.net>
2006-04-08 20:14 ` + git-klibc-mktemp-fix.patch added to -mm tree Sam Ravnborg
2006-04-08 20:27   ` H. Peter Anvin [this message]
2006-04-09  5:33     ` Herbert Xu
2006-04-10  7:33     ` Keith Owens
2006-04-10 14:45       ` H. Peter Anvin
     [not found] <5Zs4F-ba-13@gated-at.bofh.it>
     [not found] ` <5Zs4F-ba-11@gated-at.bofh.it>
2006-04-08 23:34   ` Bodo Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44381C9A.3050502@zytor.com \
    --to=hpa@zytor.com \
    --cc=akpm@osdl.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mm-commits@vger.kernel.org \
    --cc=sam@ravnborg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox