* Re: [patch 2/3] ia64: don't assume that unwcheck.py is executable
2007-12-05 22:32 [patch 2/3] ia64: don't assume that unwcheck.py is executable akpm
@ 2007-12-05 23:06 ` Andreas Schwab
2007-12-05 23:17 ` Andrew Morton
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Andreas Schwab @ 2007-12-05 23:06 UTC (permalink / raw)
To: linux-ia64
akpm@linux-foundation.org writes:
> diff -puN arch/ia64/Makefile~ia64-dont-assume-that-unwcheckpy-is-executable arch/ia64/Makefile
> --- a/arch/ia64/Makefile~ia64-dont-assume-that-unwcheckpy-is-executable
> +++ a/arch/ia64/Makefile
> @@ -77,7 +77,7 @@ vmlinux.gz: vmlinux
> $(Q)$(MAKE) $(build)=$(boot) $@
>
> unwcheck: vmlinux
> - -$(Q)READELF=$(READELF) $(srctree)/arch/ia64/scripts/unwcheck.py $<
> + -$(Q)READELF=$(READELF) $(CONFIG_SHELL) $(srctree)/arch/ia64/scripts/unwcheck.py $<
unwcheck.py is not a shell script.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [patch 2/3] ia64: don't assume that unwcheck.py is executable
2007-12-05 22:32 [patch 2/3] ia64: don't assume that unwcheck.py is executable akpm
2007-12-05 23:06 ` Andreas Schwab
@ 2007-12-05 23:17 ` Andrew Morton
2007-12-05 23:25 ` Luck, Tony
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Andrew Morton @ 2007-12-05 23:17 UTC (permalink / raw)
To: linux-ia64
On Thu, 06 Dec 2007 00:06:14 +0100
Andreas Schwab <schwab@suse.de> wrote:
> akpm@linux-foundation.org writes:
>
> > diff -puN arch/ia64/Makefile~ia64-dont-assume-that-unwcheckpy-is-executable arch/ia64/Makefile
> > --- a/arch/ia64/Makefile~ia64-dont-assume-that-unwcheckpy-is-executable
> > +++ a/arch/ia64/Makefile
> > @@ -77,7 +77,7 @@ vmlinux.gz: vmlinux
> > $(Q)$(MAKE) $(build)=$(boot) $@
> >
> > unwcheck: vmlinux
> > - -$(Q)READELF=$(READELF) $(srctree)/arch/ia64/scripts/unwcheck.py $<
> > + -$(Q)READELF=$(READELF) $(CONFIG_SHELL) $(srctree)/arch/ia64/scripts/unwcheck.py $<
>
> unwcheck.py is not a shell script.
>
Oh well, whatever. Please treat this as a bug report.
ie: someone please fix it.
^ permalink raw reply [flat|nested] 12+ messages in thread* RE: [patch 2/3] ia64: don't assume that unwcheck.py is executable
2007-12-05 22:32 [patch 2/3] ia64: don't assume that unwcheck.py is executable akpm
2007-12-05 23:06 ` Andreas Schwab
2007-12-05 23:17 ` Andrew Morton
@ 2007-12-05 23:25 ` Luck, Tony
2007-12-05 23:40 ` Andrew Morton
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Luck, Tony @ 2007-12-05 23:25 UTC (permalink / raw)
To: linux-ia64
> Oh well, whatever. Please treat this as a bug report.
>
> ie: someone please fix it.
Perhaps with?
- -$(Q)READELF=$(READELF) $(srctree)/arch/ia64/scripts/unwcheck.py $<
+ -$(Q)READELF=$(READELF) python $(srctree)/arch/ia64/scripts/unwcheck.py $<
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [patch 2/3] ia64: don't assume that unwcheck.py is executable
2007-12-05 22:32 [patch 2/3] ia64: don't assume that unwcheck.py is executable akpm
` (2 preceding siblings ...)
2007-12-05 23:25 ` Luck, Tony
@ 2007-12-05 23:40 ` Andrew Morton
2007-12-05 23:43 ` Andreas Schwab
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Andrew Morton @ 2007-12-05 23:40 UTC (permalink / raw)
To: linux-ia64
On Wed, 5 Dec 2007 15:25:46 -0800
"Luck, Tony" <tony.luck@intel.com> wrote:
> > Oh well, whatever. Please treat this as a bug report.
> >
> > ie: someone please fix it.
>
> Perhaps with?
>
> - -$(Q)READELF=$(READELF) $(srctree)/arch/ia64/scripts/unwcheck.py $<
> + -$(Q)READELF=$(READELF) python $(srctree)/arch/ia64/scripts/unwcheck.py $<
Spsoe so. We get fancy with CONFIG_SHELL, but for flex/bison/gperf it
appears that kbuild just expects them to be present in $PATH.
Sam?
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [patch 2/3] ia64: don't assume that unwcheck.py is executable
2007-12-05 22:32 [patch 2/3] ia64: don't assume that unwcheck.py is executable akpm
` (3 preceding siblings ...)
2007-12-05 23:40 ` Andrew Morton
@ 2007-12-05 23:43 ` Andreas Schwab
2007-12-06 7:45 ` Christoph Hellwig
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Andreas Schwab @ 2007-12-05 23:43 UTC (permalink / raw)
To: linux-ia64
Andrew Morton <akpm@linux-foundation.org> writes:
> On Thu, 06 Dec 2007 00:06:14 +0100
> Andreas Schwab <schwab@suse.de> wrote:
>
>> akpm@linux-foundation.org writes:
>>
>> > diff -puN arch/ia64/Makefile~ia64-dont-assume-that-unwcheckpy-is-executable arch/ia64/Makefile
>> > --- a/arch/ia64/Makefile~ia64-dont-assume-that-unwcheckpy-is-executable
>> > +++ a/arch/ia64/Makefile
>> > @@ -77,7 +77,7 @@ vmlinux.gz: vmlinux
>> > $(Q)$(MAKE) $(build)=$(boot) $@
>> >
>> > unwcheck: vmlinux
>> > - -$(Q)READELF=$(READELF) $(srctree)/arch/ia64/scripts/unwcheck.py $<
>> > + -$(Q)READELF=$(READELF) $(CONFIG_SHELL) $(srctree)/arch/ia64/scripts/unwcheck.py $<
>>
>> unwcheck.py is not a shell script.
>>
>
> Oh well, whatever. Please treat this as a bug report.
>
> ie: someone please fix it.
s/$(CONFIG_SHELL)/python/
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [patch 2/3] ia64: don't assume that unwcheck.py is executable
2007-12-05 22:32 [patch 2/3] ia64: don't assume that unwcheck.py is executable akpm
` (4 preceding siblings ...)
2007-12-05 23:43 ` Andreas Schwab
@ 2007-12-06 7:45 ` Christoph Hellwig
2007-12-06 8:03 ` Andrew Morton
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Christoph Hellwig @ 2007-12-06 7:45 UTC (permalink / raw)
To: linux-ia64
On Wed, Dec 05, 2007 at 03:17:33PM -0800, Andrew Morton wrote:
> > > - -$(Q)READELF=$(READELF) $(srctree)/arch/ia64/scripts/unwcheck.py $<
> > > + -$(Q)READELF=$(READELF) $(CONFIG_SHELL) $(srctree)/arch/ia64/scripts/unwcheck.py $<
> >
> > unwcheck.py is not a shell script.
> >
>
> Oh well, whatever. Please treat this as a bug report.
>
> ie: someone please fix it.
Best would be to get rid of python. Having another scripting language
as built requirement, and that only on ia64 doesn't sound like a
particularly good idea.
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [patch 2/3] ia64: don't assume that unwcheck.py is executable
2007-12-05 22:32 [patch 2/3] ia64: don't assume that unwcheck.py is executable akpm
` (5 preceding siblings ...)
2007-12-06 7:45 ` Christoph Hellwig
@ 2007-12-06 8:03 ` Andrew Morton
2007-12-06 21:34 ` Sam Ravnborg
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Andrew Morton @ 2007-12-06 8:03 UTC (permalink / raw)
To: linux-ia64
On Thu, 6 Dec 2007 07:45:57 +0000 Christoph Hellwig <hch@infradead.org> wrote:
> On Wed, Dec 05, 2007 at 03:17:33PM -0800, Andrew Morton wrote:
> > > > - -$(Q)READELF=$(READELF) $(srctree)/arch/ia64/scripts/unwcheck.py $<
> > > > + -$(Q)READELF=$(READELF) $(CONFIG_SHELL) $(srctree)/arch/ia64/scripts/unwcheck.py $<
> > >
> > > unwcheck.py is not a shell script.
> > >
> >
> > Oh well, whatever. Please treat this as a bug report.
> >
> > ie: someone please fix it.
>
> Best would be to get rid of python. Having another scripting language
> as built requirement, and that only on ia64 doesn't sound like a
> particularly good idea.
It's probably not a big deal - especially as ia64 kernels are presuably not
as likely to be built in wild and whacky enviroments like some other
architectures.
afacit the script is optional anyway - it "check and verifies unwind info".
If python isn't available, just skip it..
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [patch 2/3] ia64: don't assume that unwcheck.py is executable
2007-12-05 22:32 [patch 2/3] ia64: don't assume that unwcheck.py is executable akpm
` (6 preceding siblings ...)
2007-12-06 8:03 ` Andrew Morton
@ 2007-12-06 21:34 ` Sam Ravnborg
2007-12-06 22:05 ` Luck, Tony
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Sam Ravnborg @ 2007-12-06 21:34 UTC (permalink / raw)
To: linux-ia64
On Wed, Dec 05, 2007 at 03:25:46PM -0800, Luck, Tony wrote:
> > Oh well, whatever. Please treat this as a bug report.
> >
> > ie: someone please fix it.
>
> Perhaps with?
>
> - -$(Q)READELF=$(READELF) $(srctree)/arch/ia64/scripts/unwcheck.py $<
> + -$(Q)READELF=$(READELF) python $(srctree)/arch/ia64/scripts/unwcheck.py $<
We do not have as much incompatibility among phython (or personal preference) than
we have for diver shells - so calling phython is fine.
That said I really do not like adding phython to the required tools even though
this is ia64 specific.
This script was previously written in perl wich is more widely used.
What was the exact reason switching to phython and can we do the same in perl?
Sam
^ permalink raw reply [flat|nested] 12+ messages in thread* RE: [patch 2/3] ia64: don't assume that unwcheck.py is executable
2007-12-05 22:32 [patch 2/3] ia64: don't assume that unwcheck.py is executable akpm
` (7 preceding siblings ...)
2007-12-06 21:34 ` Sam Ravnborg
@ 2007-12-06 22:05 ` Luck, Tony
2007-12-06 22:28 ` Sam Ravnborg
2007-12-06 22:44 ` Luck, Tony
10 siblings, 0 replies; 12+ messages in thread
From: Luck, Tony @ 2007-12-06 22:05 UTC (permalink / raw)
To: linux-ia64
> What was the exact reason switching to phython and can we do the same in perl?
It was a shell script (using awk) before it was pythonised. The
motivation was correct functionality when cross-building on a
32-bit host. Here's the commit:
http://tinyurl.com/28hmoc
-Tony
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [patch 2/3] ia64: don't assume that unwcheck.py is executable
2007-12-05 22:32 [patch 2/3] ia64: don't assume that unwcheck.py is executable akpm
` (8 preceding siblings ...)
2007-12-06 22:05 ` Luck, Tony
@ 2007-12-06 22:28 ` Sam Ravnborg
2007-12-06 22:44 ` Luck, Tony
10 siblings, 0 replies; 12+ messages in thread
From: Sam Ravnborg @ 2007-12-06 22:28 UTC (permalink / raw)
To: linux-ia64
On Thu, Dec 06, 2007 at 02:05:15PM -0800, Luck, Tony wrote:
> > What was the exact reason switching to phython and can we do the same in perl?
>
> It was a shell script (using awk) before it was pythonised. The
> motivation was correct functionality when cross-building on a
> 32-bit host. Here's the commit:
>
> http://tinyurl.com/28hmoc
If you read the comments in the phyton file is says:
+# Based on a shell/awk script originally written by Harish Patil,
+# which was converted to Perl by Matthew Chapman, which was converted
+# to Python by David Mosberger.
So somewhere a perl variant has existed.
Sam
^ permalink raw reply [flat|nested] 12+ messages in thread* RE: [patch 2/3] ia64: don't assume that unwcheck.py is executable
2007-12-05 22:32 [patch 2/3] ia64: don't assume that unwcheck.py is executable akpm
` (9 preceding siblings ...)
2007-12-06 22:28 ` Sam Ravnborg
@ 2007-12-06 22:44 ` Luck, Tony
10 siblings, 0 replies; 12+ messages in thread
From: Luck, Tony @ 2007-12-06 22:44 UTC (permalink / raw)
To: linux-ia64
> So somewhere a perl variant has existed.
This mail thread http://tinyurl.com/2vuacw points to the perl
version. But it doesn't appear to have ever been checked into
the tree (and the mail message says that it also suffers from
the not-working for a 64-bit binary when running on a 32-bit
host issue ... though it claims that it would be easy to fix).
I can't actually see the script because the web server at unsw.edu.au
seems to feel that it should execute the perl script rather than show
me the contents of it :-(
-Tony
P.S. The python version was checked in almost four years ago ... perhaps
it isn't too big of a deal that we are using it.
^ permalink raw reply [flat|nested] 12+ messages in thread