* Re: + git-klibc-mktemp-fix.patch added to -mm tree [not found] <200604080707.k38778VV023208@shell0.pdx.osdl.net> @ 2006-04-08 20:14 ` Sam Ravnborg 2006-04-08 20:27 ` H. Peter Anvin 0 siblings, 1 reply; 6+ messages in thread From: Sam Ravnborg @ 2006-04-08 20:14 UTC (permalink / raw) To: linux-kernel; +Cc: akpm, hpa, mm-commits 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)" Sam ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: + git-klibc-mktemp-fix.patch added to -mm tree 2006-04-08 20:14 ` + git-klibc-mktemp-fix.patch added to -mm tree Sam Ravnborg @ 2006-04-08 20:27 ` H. Peter Anvin 2006-04-09 5:33 ` Herbert Xu 2006-04-10 7:33 ` Keith Owens 0 siblings, 2 replies; 6+ messages in thread From: H. Peter Anvin @ 2006-04-08 20:27 UTC (permalink / raw) To: Sam Ravnborg, Herbert Xu; +Cc: linux-kernel, akpm, mm-commits 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: + git-klibc-mktemp-fix.patch added to -mm tree 2006-04-08 20:27 ` H. Peter Anvin @ 2006-04-09 5:33 ` Herbert Xu 2006-04-10 7:33 ` Keith Owens 1 sibling, 0 replies; 6+ messages in thread From: Herbert Xu @ 2006-04-09 5:33 UTC (permalink / raw) To: H. Peter Anvin; +Cc: Sam Ravnborg, linux-kernel, akpm, mm-commits On Sat, Apr 08, 2006 at 01:27:06PM -0700, H. Peter Anvin wrote: > > 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. Sure, I'll send you a patch to convert it to always use unsigned char. -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: + git-klibc-mktemp-fix.patch added to -mm tree 2006-04-08 20:27 ` H. Peter Anvin 2006-04-09 5:33 ` Herbert Xu @ 2006-04-10 7:33 ` Keith Owens 2006-04-10 14:45 ` H. Peter Anvin 1 sibling, 1 reply; 6+ messages in thread From: Keith Owens @ 2006-04-10 7:33 UTC (permalink / raw) To: H. Peter Anvin; +Cc: Sam Ravnborg, Herbert Xu, linux-kernel, akpm, mm-commits "H. Peter Anvin" (on Sat, 08 Apr 2006 13:27:06 -0700) wrote: >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) Hit the same problem back in the 2.5 kbuild days, and worked around it with some dummy dependency rules. Like this one for bison/yacc. side_effect(aicasm_gram.tab.h aicasm_gram.tab.c) which expands to $(objtree)/aicasm_gram.tab.h: $objtree/aicasm_gram.tab.c @/bin/true That forces make to wait until aicasm_gram.tab.c is built before using aicasm_gram.tab.h, and allows the following code to depend on either aicasm_gram.tab.h or aicasm_gram.tab.c without any races. The command should not get executed, but you still need a command to keep make happy. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: + git-klibc-mktemp-fix.patch added to -mm tree 2006-04-10 7:33 ` Keith Owens @ 2006-04-10 14:45 ` H. Peter Anvin 0 siblings, 0 replies; 6+ messages in thread From: H. Peter Anvin @ 2006-04-10 14:45 UTC (permalink / raw) To: Keith Owens; +Cc: Sam Ravnborg, Herbert Xu, linux-kernel, akpm, mm-commits Keith Owens wrote: > "H. Peter Anvin" (on Sat, 08 Apr 2006 13:27:06 -0700) wrote: >> 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) > > Hit the same problem back in the 2.5 kbuild days, and worked around it > with some dummy dependency rules. Like this one for bison/yacc. > > side_effect(aicasm_gram.tab.h aicasm_gram.tab.c) > > which expands to > > $(objtree)/aicasm_gram.tab.h: $objtree/aicasm_gram.tab.c > @/bin/true > > That forces make to wait until aicasm_gram.tab.c is built before using > aicasm_gram.tab.h, and allows the following code to depend on either > aicasm_gram.tab.h or aicasm_gram.tab.c without any races. The command > should not get executed, but you still need a command to keep make > happy. A better way to do it for something like yacc/bison is to use a pattern rule. Having two things on the LHS means different things for explicit and for pattern rules! -hpa ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <5Zs4F-ba-13@gated-at.bofh.it>]
[parent not found: <5Zs4F-ba-11@gated-at.bofh.it>]
* Re: + git-klibc-mktemp-fix.patch added to -mm tree [not found] ` <5Zs4F-ba-11@gated-at.bofh.it> @ 2006-04-08 23:34 ` Bodo Eggert 0 siblings, 0 replies; 6+ messages in thread From: Bodo Eggert @ 2006-04-08 23:34 UTC (permalink / raw) To: Sam Ravnborg, linux-kernel, akpm, hpa, mm-commits Sam Ravnborg <sam@ravnborg.org> 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 >> - tempfile=mktemp >> + tempfile="mktemp /tmp/tmp.XXXXXX" > > Shouldn't that be: >> + tempfile="$(mktemp /tmp/tmp.XXXXXX)" No. You should use tempfile="$(mktemp ${TMPDIR:-/tmp}/tmp.XXXXXX)" (or mktemp -t, if it's portable enough) Besides that, tmp.XXXXXX should be replayed using a better name. </nitpick> -- Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF verbreiteten Lügen zu sabotieren. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-04-10 14:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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
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
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox