* [PATCH] generate-cmdlist.sh should be either executable or run as parameter of "." @ 2009-09-25 19:01 Mulyadi Santosa 2009-09-30 12:08 ` Ingo Molnar 2009-10-01 9:58 ` [tip:perf/urgent] perf tools: Run generate-cmdlist.sh properly tip-bot for Mulyadi Santosa 0 siblings, 2 replies; 5+ messages in thread From: Mulyadi Santosa @ 2009-09-25 19:01 UTC (permalink / raw) To: mingo; +Cc: linux-kernel I believe this is just a small glitch. generate-cmdlist.sh by default should be made as executable. But since one might forgot to do it, we could simply call it as an argument "." or "source" or even "sh -c". I pick "." Tested in 2.6.31 Signed-off-by: Mulyadi Santosa <mulyadi.santosa@gmail.com> --- linux-2.6.31/tools/perf/Makefile.bak 2009-09-12 22:28:37.000000000 +0700 +++ linux-2.6.31/tools/perf/Makefile 2009-09-26 01:51:04.000000000 +0700 @@ -682,7 +682,7 @@ common-cmds.h: util/generate-cmdlist.sh command-list.txt common-cmds.h: $(wildcard Documentation/perf-*.txt) - $(QUIET_GEN)util/generate-cmdlist.sh > $@+ && mv $@+ $@ + $(QUIET_GEN). util/generate-cmdlist.sh > $@+ && mv $@+ $@ $(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh $(QUIET_GEN)$(RM) $@ $@+ && \ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] generate-cmdlist.sh should be either executable or run as parameter of "." 2009-09-25 19:01 [PATCH] generate-cmdlist.sh should be either executable or run as parameter of "." Mulyadi Santosa @ 2009-09-30 12:08 ` Ingo Molnar 2009-09-30 12:17 ` Sam Ravnborg 2009-10-01 9:58 ` [tip:perf/urgent] perf tools: Run generate-cmdlist.sh properly tip-bot for Mulyadi Santosa 1 sibling, 1 reply; 5+ messages in thread From: Ingo Molnar @ 2009-09-30 12:08 UTC (permalink / raw) To: Mulyadi Santosa, Peter Zijlstra, Paul Mackerras; +Cc: mingo, linux-kernel * Mulyadi Santosa <mulyadi.santosa@gmail.com> wrote: > I believe this is just a small glitch. generate-cmdlist.sh by default > should be made as executable. But since one might forgot to do it, we > could simply call it as an argument "." or "source" or even "sh -c". I > pick "." > > Tested in 2.6.31 > > Signed-off-by: Mulyadi Santosa <mulyadi.santosa@gmail.com> hm, generate-cmdlist.sh is executable in the upstream kernel repo. It apparently isnt executable on your box - why? Ingo ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] generate-cmdlist.sh should be either executable or run as parameter of "." 2009-09-30 12:08 ` Ingo Molnar @ 2009-09-30 12:17 ` Sam Ravnborg 2009-10-01 8:11 ` Ingo Molnar 0 siblings, 1 reply; 5+ messages in thread From: Sam Ravnborg @ 2009-09-30 12:17 UTC (permalink / raw) To: Ingo Molnar Cc: Mulyadi Santosa, Peter Zijlstra, Paul Mackerras, mingo, linux-kernel On Wed, Sep 30, 2009 at 02:08:22PM +0200, Ingo Molnar wrote: > > * Mulyadi Santosa <mulyadi.santosa@gmail.com> wrote: > > > I believe this is just a small glitch. generate-cmdlist.sh by default > > should be made as executable. But since one might forgot to do it, we > > could simply call it as an argument "." or "source" or even "sh -c". I > > pick "." > > > > Tested in 2.6.31 > > > > Signed-off-by: Mulyadi Santosa <mulyadi.santosa@gmail.com> > > hm, generate-cmdlist.sh is executable in the upstream kernel repo. It > apparently isnt executable on your box - why? Whatever - we should try to avoid relying on executable bit being set. umask can prevent this is tree is checkout as one user and build as another user. Sam ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] generate-cmdlist.sh should be either executable or run as parameter of "." 2009-09-30 12:17 ` Sam Ravnborg @ 2009-10-01 8:11 ` Ingo Molnar 0 siblings, 0 replies; 5+ messages in thread From: Ingo Molnar @ 2009-10-01 8:11 UTC (permalink / raw) To: Sam Ravnborg Cc: Mulyadi Santosa, Peter Zijlstra, Paul Mackerras, mingo, linux-kernel * Sam Ravnborg <sam@ravnborg.org> wrote: > On Wed, Sep 30, 2009 at 02:08:22PM +0200, Ingo Molnar wrote: > > > > * Mulyadi Santosa <mulyadi.santosa@gmail.com> wrote: > > > > > I believe this is just a small glitch. generate-cmdlist.sh by default > > > should be made as executable. But since one might forgot to do it, we > > > could simply call it as an argument "." or "source" or even "sh -c". I > > > pick "." > > > > > > Tested in 2.6.31 > > > > > > Signed-off-by: Mulyadi Santosa <mulyadi.santosa@gmail.com> > > > > hm, generate-cmdlist.sh is executable in the upstream kernel repo. It > > apparently isnt executable on your box - why? > > Whatever - we should try to avoid relying on executable bit being set. > umask can prevent this is tree is checkout as one user and build as > another user. Fair enough - i'll queue the patch up. Ingo ^ permalink raw reply [flat|nested] 5+ messages in thread
* [tip:perf/urgent] perf tools: Run generate-cmdlist.sh properly 2009-09-25 19:01 [PATCH] generate-cmdlist.sh should be either executable or run as parameter of "." Mulyadi Santosa 2009-09-30 12:08 ` Ingo Molnar @ 2009-10-01 9:58 ` tip-bot for Mulyadi Santosa 1 sibling, 0 replies; 5+ messages in thread From: tip-bot for Mulyadi Santosa @ 2009-10-01 9:58 UTC (permalink / raw) To: linux-tip-commits Cc: linux-kernel, acme, paulus, hpa, mingo, a.p.zijlstra, sam, efault, mulyadi.santosa, fweisbec, tglx, mingo Commit-ID: 1ad0560e8cdb6d5b381220dc2da187691b5ce124 Gitweb: http://git.kernel.org/tip/1ad0560e8cdb6d5b381220dc2da187691b5ce124 Author: Mulyadi Santosa <mulyadi.santosa@gmail.com> AuthorDate: Sat, 26 Sep 2009 02:01:41 +0700 Committer: Ingo Molnar <mingo@elte.hu> CommitDate: Thu, 1 Oct 2009 10:12:03 +0200 perf tools: Run generate-cmdlist.sh properly Right now generate-cmdlist.sh is not executable, so we should call it as an argument ".". This fixes cases where due to different umask defaults the generate-cmdlist.sh script is not executable in a kernel tree checkout. Signed-off-by: Mulyadi Santosa <mulyadi.santosa@gmail.com> Acked-by: Sam Ravnborg <sam@ravnborg.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <f284c33d0909251201w422e9687x8cd3a784e85adf7d@mail.gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> --- tools/perf/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/perf/Makefile b/tools/perf/Makefile index b5f1953..5881943 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile @@ -728,7 +728,7 @@ $(BUILT_INS): perf$X common-cmds.h: util/generate-cmdlist.sh command-list.txt common-cmds.h: $(wildcard Documentation/perf-*.txt) - $(QUIET_GEN)util/generate-cmdlist.sh > $@+ && mv $@+ $@ + $(QUIET_GEN). util/generate-cmdlist.sh > $@+ && mv $@+ $@ $(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh $(QUIET_GEN)$(RM) $@ $@+ && \ ^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-10-01 9:59 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-09-25 19:01 [PATCH] generate-cmdlist.sh should be either executable or run as parameter of "." Mulyadi Santosa 2009-09-30 12:08 ` Ingo Molnar 2009-09-30 12:17 ` Sam Ravnborg 2009-10-01 8:11 ` Ingo Molnar 2009-10-01 9:58 ` [tip:perf/urgent] perf tools: Run generate-cmdlist.sh properly tip-bot for Mulyadi Santosa
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox