* [PATCH] perf: fix 'make help' message error
@ 2014-05-25 4:50 Jianyu Zhan
2014-05-29 7:04 ` Namhyung Kim
0 siblings, 1 reply; 8+ messages in thread
From: Jianyu Zhan @ 2014-05-25 4:50 UTC (permalink / raw)
To: a.p.zijlstra, paulus, mingo, acme; +Cc: linux-kernel, nasa4836
Currently 'make help' message has such hint:
use "make prefix=<path> <install target>" to install to a particular
path like make prefix=/usr/local install install-doc
But this is misleading, when I specify "prefix=/usr/local", it has got no
respect at all. Instead, what takes effect is the "DESTDIR" variable.
In this case, "DESTDIR" has a empty value, so the actual install
directory falls back $HOME, not '/usr/local'.
Specifying "DESTDIR=/usr/local" will work as desired.
This patch fixes the help message.
Signed-off-by: Jianyu Zhan <nasa4836@gmail.com>
---
tools/perf/Makefile.perf | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index 895edd3..37c5f90 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -784,8 +784,8 @@ help:
@echo ''
@echo 'Perf install targets:'
@echo ' NOTE: documentation build requires asciidoc, xmlto packages to be installed'
- @echo ' HINT: use "make prefix=<path> <install target>" to install to a particular'
- @echo ' path like make prefix=/usr/local install install-doc'
+ @echo ' HINT: use "make DESTDIR=<path> <install target>" to install to a particular'
+ @echo ' path like "make DESTDIR=/usr/local install install-doc"'
@echo ' install - install compiled binaries'
@echo ' install-doc - install *all* documentation'
@echo ' install-man - install manpage documentation'
--
2.0.0-rc3
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH] perf: fix 'make help' message error 2014-05-25 4:50 [PATCH] perf: fix 'make help' message error Jianyu Zhan @ 2014-05-29 7:04 ` Namhyung Kim 2014-06-02 16:44 ` Jianyu Zhan 0 siblings, 1 reply; 8+ messages in thread From: Namhyung Kim @ 2014-05-29 7:04 UTC (permalink / raw) To: Jianyu Zhan; +Cc: a.p.zijlstra, paulus, mingo, acme, linux-kernel Hi Jianyu, On Sun, 25 May 2014 12:50:49 +0800, Jianyu Zhan wrote: > Currently 'make help' message has such hint: > > use "make prefix=<path> <install target>" to install to a particular > path like make prefix=/usr/local install install-doc > > But this is misleading, when I specify "prefix=/usr/local", it has got no > respect at all. Instead, what takes effect is the "DESTDIR" variable. > In this case, "DESTDIR" has a empty value, so the actual install > directory falls back $HOME, not '/usr/local'. > > Specifying "DESTDIR=/usr/local" will work as desired. > > This patch fixes the help message. I don't know what's the correct way to do this. But it seems like the prefix was overwritten when given from user, so below patch will work also. Thanks, Namhyung diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index 729bbdf5cec7..80a8a0a1c7e7 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile @@ -599,7 +599,7 @@ endif # Make the path relative to DESTDIR, not to prefix ifndef DESTDIR -prefix = $(HOME) +prefix ?= $(HOME) endif bindir_relative = bin bindir = $(prefix)/$(bindir_relative) ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] perf: fix 'make help' message error 2014-05-29 7:04 ` Namhyung Kim @ 2014-06-02 16:44 ` Jianyu Zhan 2014-06-02 16:53 ` Jianyu Zhan 2014-06-05 14:32 ` [tip:perf/core] perf tools: Fix " tip-bot for Jianyu Zhan 0 siblings, 2 replies; 8+ messages in thread From: Jianyu Zhan @ 2014-06-02 16:44 UTC (permalink / raw) To: a.p.zijlstra, paulus, mingo, acme, jolsa, jean.pihet Cc: linux-kernel, nasa4836 Hi, Namhyung, >I don't know what's the correct way to do this. But it seems like the >prefix was overwritten when given from user, so below patch will work >also. This does work too. So I update the patch as below: ---8<--- From: Jianyu Zhan <nasa4836@gmail.com> Date: Sat, 24 May 2014 22:34:26 +0800 Subject: [PATCH] perf: fix 'make help' message error Currently 'make help' message has such hint: use "make prefix=<path> <install target>" to install to a particular path like make prefix=/usr/local install install-doc But this is misleading, when I specify "prefix=/usr/local", it has got no respect at all. This is because that, "DESTDIR" is condiered first. In this case, "DESTDIR" has an empty value, so "prefix" is honored. However, "prefix" is unconditionally assigned to $HOME, regardless of what it is set to from command line. So our "prefix" setting got no respect and the actual destination falls back to $HOME. This patch fixes this issue and corrects the help message. Signed-off-by: Jianyu Zhan <nasa4836@gmail.com> --- tools/perf/Makefile.perf | 4 ++-- tools/perf/config/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 895edd3..5918063 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -784,8 +784,8 @@ help: @echo '' @echo 'Perf install targets:' @echo ' NOTE: documentation build requires asciidoc, xmlto packages to be installed' - @echo ' HINT: use "make prefix=<path> <install target>" to install to a particular' - @echo ' path like make prefix=/usr/local install install-doc' + @echo ' HINT: use "prefix" or "DESTDIR" to install to a particular' + @echo ' path like "make prefix=/usr/local install install-doc"' @echo ' install - install compiled binaries' @echo ' install-doc - install *all* documentation' @echo ' install-man - install manpage documentation' diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index 802cf54..53dc11e 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile @@ -601,7 +601,7 @@ endif # Make the path relative to DESTDIR, not to prefix ifndef DESTDIR -prefix = $(HOME) +prefix ?= $(HOME) endif bindir_relative = bin bindir = $(prefix)/$(bindir_relative) -- 2.0.0 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] perf: fix 'make help' message error 2014-06-02 16:44 ` Jianyu Zhan @ 2014-06-02 16:53 ` Jianyu Zhan 2014-06-03 2:51 ` Namhyung Kim 2014-06-05 14:32 ` [tip:perf/core] perf tools: Fix " tip-bot for Jianyu Zhan 1 sibling, 1 reply; 8+ messages in thread From: Jianyu Zhan @ 2014-06-02 16:53 UTC (permalink / raw) To: namhyung, a.p.zijlstra, paulus, mingo, acme, jolsa, jean.pihet Cc: LKML, Jianyu Zhan On Tue, Jun 3, 2014 at 12:44 AM, Jianyu Zhan <nasa4836@gmail.com> wrote: > Hi, Namhyung, > >>I don't know what's the correct way to do this. But it seems like the >>prefix was overwritten when given from user, so below patch will work >>also. > > This does work too. So I update the patch as below: > > ---8<--- > From: Jianyu Zhan <nasa4836@gmail.com> > Date: Sat, 24 May 2014 22:34:26 +0800 > Subject: [PATCH] perf: fix 'make help' message error > > Currently 'make help' message has such hint: > > use "make prefix=<path> <install target>" to install to a particular > path like make prefix=/usr/local install install-doc > > But this is misleading, when I specify "prefix=/usr/local", it has got no > respect at all. > > This is because that, "DESTDIR" is condiered first. In this case, "DESTDIR" > has an empty value, so "prefix" is honored. However, "prefix" is unconditionally > assigned to $HOME, regardless of what it is set to from command line. So our > "prefix" setting got no respect and the actual destination falls back to $HOME. > > This patch fixes this issue and corrects the help message. > > Signed-off-by: Jianyu Zhan <nasa4836@gmail.com> > --- > tools/perf/Makefile.perf | 4 ++-- > tools/perf/config/Makefile | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf > index 895edd3..5918063 100644 > --- a/tools/perf/Makefile.perf > +++ b/tools/perf/Makefile.perf > @@ -784,8 +784,8 @@ help: > @echo '' > @echo 'Perf install targets:' > @echo ' NOTE: documentation build requires asciidoc, xmlto packages to be installed' > - @echo ' HINT: use "make prefix=<path> <install target>" to install to a particular' > - @echo ' path like make prefix=/usr/local install install-doc' > + @echo ' HINT: use "prefix" or "DESTDIR" to install to a particular' > + @echo ' path like "make prefix=/usr/local install install-doc"' > @echo ' install - install compiled binaries' > @echo ' install-doc - install *all* documentation' > @echo ' install-man - install manpage documentation' > diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile > index 802cf54..53dc11e 100644 > --- a/tools/perf/config/Makefile > +++ b/tools/perf/config/Makefile > @@ -601,7 +601,7 @@ endif > > > # Make the path relative to DESTDIR, not to prefix > ifndef DESTDIR > -prefix = $(HOME) > +prefix ?= $(HOME) > endif > bindir_relative = bin > bindir = $(prefix)/$(bindir_relative) Cc Namyung with a correct email... Thanks, Jianyu Zhan ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] perf: fix 'make help' message error 2014-06-02 16:53 ` Jianyu Zhan @ 2014-06-03 2:51 ` Namhyung Kim 2014-06-03 3:10 ` Jianyu Zhan 0 siblings, 1 reply; 8+ messages in thread From: Namhyung Kim @ 2014-06-03 2:51 UTC (permalink / raw) To: Jianyu Zhan; +Cc: a.p.zijlstra, paulus, mingo, acme, jolsa, jean.pihet, LKML Hi Jianyu, On Tue, 3 Jun 2014 00:53:16 +0800, Jianyu Zhan wrote: > On Tue, Jun 3, 2014 at 12:44 AM, Jianyu Zhan <nasa4836@gmail.com> wrote: >> Hi, Namhyung, >> >>>I don't know what's the correct way to do this. But it seems like the >>>prefix was overwritten when given from user, so below patch will work >>>also. >> >> This does work too. So I update the patch as below: >> >> ---8<--- >> From: Jianyu Zhan <nasa4836@gmail.com> >> Date: Sat, 24 May 2014 22:34:26 +0800 >> Subject: [PATCH] perf: fix 'make help' message error >> >> Currently 'make help' message has such hint: >> >> use "make prefix=<path> <install target>" to install to a particular >> path like make prefix=/usr/local install install-doc >> >> But this is misleading, when I specify "prefix=/usr/local", it has got no >> respect at all. >> >> This is because that, "DESTDIR" is condiered first. In this case, "DESTDIR" s/condiered/considered/ ? >> has an empty value, so "prefix" is honored. However, "prefix" is unconditionally >> assigned to $HOME, regardless of what it is set to from command line. So our >> "prefix" setting got no respect and the actual destination falls back to $HOME. >> >> This patch fixes this issue and corrects the help message. With that changed, Acked-by: Namhyung Kim <namhyung@kernel.org> Thanks, Namhyung >> --- >> tools/perf/Makefile.perf | 4 ++-- >> tools/perf/config/Makefile | 2 +- >> 2 files changed, 3 insertions(+), 3 deletions(-) >> >> diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf >> index 895edd3..5918063 100644 >> --- a/tools/perf/Makefile.perf >> +++ b/tools/perf/Makefile.perf >> @@ -784,8 +784,8 @@ help: >> @echo '' >> @echo 'Perf install targets:' >> @echo ' NOTE: documentation build requires asciidoc, xmlto packages to be installed' >> - @echo ' HINT: use "make prefix=<path> <install target>" to install to a particular' >> - @echo ' path like make prefix=/usr/local install install-doc' >> + @echo ' HINT: use "prefix" or "DESTDIR" to install to a particular' >> + @echo ' path like "make prefix=/usr/local install install-doc"' >> @echo ' install - install compiled binaries' >> @echo ' install-doc - install *all* documentation' >> @echo ' install-man - install manpage documentation' >> diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile >> index 802cf54..53dc11e 100644 >> --- a/tools/perf/config/Makefile >> +++ b/tools/perf/config/Makefile >> @@ -601,7 +601,7 @@ endif >> >> >> # Make the path relative to DESTDIR, not to prefix >> ifndef DESTDIR >> -prefix = $(HOME) >> +prefix ?= $(HOME) >> endif >> bindir_relative = bin >> bindir = $(prefix)/$(bindir_relative) > > Cc Namyung with a correct email... > > > Thanks, > Jianyu Zhan ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] perf: fix 'make help' message error 2014-06-03 2:51 ` Namhyung Kim @ 2014-06-03 3:10 ` Jianyu Zhan 2014-06-03 12:03 ` Jiri Olsa 0 siblings, 1 reply; 8+ messages in thread From: Jianyu Zhan @ 2014-06-03 3:10 UTC (permalink / raw) To: a.p.zijlstra, paulus, mingo, acme, jolsa, jean.pihet Cc: linux-kernel, nasa4836 Hi, Namhyung, On Tue, Jun 3, 2014 at 10:51 AM, Namhyung Kim <namhyung@gmail.com> wrote: > > s/condiered/considered/ ? > > Oops, sorry for the typo. >>> has an empty value, so "prefix" is honored. However, "prefix" is unconditionally >>> assigned to $HOME, regardless of what it is set to from command line. So our >>> "prefix" setting got no respect and the actual destination falls back to $HOME. >>> >>> This patch fixes this issue and corrects the help message. > > With that changed, > > Acked-by: Namhyung Kim <namhyung@kernel.org> Thanks. I renew the patch for maintainers to pick up. -----8<----- Subject: [PATCH] perf: fix 'make help' message error Currently 'make help' message has such hint: use "make prefix=<path> <install target>" to install to a particular path like make prefix=/usr/local install install-doc But this is misleading, when I specify "prefix=/usr/local", it has got no respect at all. This is because that, "DESTDIR" is considered first. In this case, "DESTDIR" has an empty value, so "prefix" is honored. However, "prefix" is unconditionally assigned to $HOME, regardless of what it is set to from command line. So our "prefix" setting got no respect and the actual destination falls back to $HOME. This patch fixes this issue and corrects the help message. Acked-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Jianyu Zhan <nasa4836@gmail.com> --- tools/perf/Makefile.perf | 4 ++-- tools/perf/config/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 895edd3..5918063 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -784,8 +784,8 @@ help: @echo '' @echo 'Perf install targets:' @echo ' NOTE: documentation build requires asciidoc, xmlto packages to be installed' - @echo ' HINT: use "make prefix=<path> <install target>" to install to a particular' - @echo ' path like make prefix=/usr/local install install-doc' + @echo ' HINT: use "prefix" or "DESTDIR" to install to a particular' + @echo ' path like "make prefix=/usr/local install install-doc"' @echo ' install - install compiled binaries' @echo ' install-doc - install *all* documentation' @echo ' install-man - install manpage documentation' diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index 802cf54..53dc11e 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile @@ -601,7 +601,7 @@ endif # Make the path relative to DESTDIR, not to prefix ifndef DESTDIR -prefix = $(HOME) +prefix ?= $(HOME) endif bindir_relative = bin bindir = $(prefix)/$(bindir_relative) -- 2.0.0 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] perf: fix 'make help' message error 2014-06-03 3:10 ` Jianyu Zhan @ 2014-06-03 12:03 ` Jiri Olsa 0 siblings, 0 replies; 8+ messages in thread From: Jiri Olsa @ 2014-06-03 12:03 UTC (permalink / raw) To: Jianyu Zhan; +Cc: a.p.zijlstra, paulus, mingo, acme, jean.pihet, linux-kernel On Tue, Jun 03, 2014 at 11:10:31AM +0800, Jianyu Zhan wrote: > Hi, Namhyung, > > On Tue, Jun 3, 2014 at 10:51 AM, Namhyung Kim <namhyung@gmail.com> wrote: > > > > s/condiered/considered/ ? > > > > > > Oops, sorry for the typo. > > >>> has an empty value, so "prefix" is honored. However, "prefix" is unconditionally > >>> assigned to $HOME, regardless of what it is set to from command line. So our > >>> "prefix" setting got no respect and the actual destination falls back to $HOME. > >>> > >>> This patch fixes this issue and corrects the help message. > > > > With that changed, > > > > Acked-by: Namhyung Kim <namhyung@kernel.org> > > Thanks. I renew the patch for maintainers to pick up. queued.. thanks, jirka ^ permalink raw reply [flat|nested] 8+ messages in thread
* [tip:perf/core] perf tools: Fix 'make help' message error 2014-06-02 16:44 ` Jianyu Zhan 2014-06-02 16:53 ` Jianyu Zhan @ 2014-06-05 14:32 ` tip-bot for Jianyu Zhan 1 sibling, 0 replies; 8+ messages in thread From: tip-bot for Jianyu Zhan @ 2014-06-05 14:32 UTC (permalink / raw) To: linux-tip-commits Cc: linux-kernel, hpa, mingo, jolsa, nasa4836, tglx, namhyung Commit-ID: fc9cabeabf42d76854059e7bce81a02645e7e5ca Gitweb: http://git.kernel.org/tip/fc9cabeabf42d76854059e7bce81a02645e7e5ca Author: Jianyu Zhan <nasa4836@gmail.com> AuthorDate: Tue, 3 Jun 2014 00:44:34 +0800 Committer: Jiri Olsa <jolsa@kernel.org> CommitDate: Tue, 3 Jun 2014 21:35:12 +0200 perf tools: Fix 'make help' message error Currently 'make help' message has such hint: use "make prefix=<path> <install target>" to install to a particular path like make prefix=/usr/local install install-doc But this is misleading, when I specify "prefix=/usr/local", it has got no respect at all. This is because that, "DESTDIR" is considered first. In this case, "DESTDIR" has an empty value, so "prefix" is honored. However, "prefix" is unconditionally assigned to $HOME, regardless of what it is set to from command line. So our "prefix" setting got no respect and the actual destination falls back to $HOME. This patch fixes this issue and corrects the help message. Signed-off-by: Jianyu Zhan <nasa4836@gmail.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/r/1401727474-19370-1-git-send-email-nasa4836@gmail.com Signed-off-by: Jiri Olsa <jolsa@kernel.org> --- tools/perf/Makefile.perf | 4 ++-- tools/perf/config/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 6286e13..ae20edf 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -789,8 +789,8 @@ help: @echo '' @echo 'Perf install targets:' @echo ' NOTE: documentation build requires asciidoc, xmlto packages to be installed' - @echo ' HINT: use "make prefix=<path> <install target>" to install to a particular' - @echo ' path like make prefix=/usr/local install install-doc' + @echo ' HINT: use "prefix" or "DESTDIR" to install to a particular' + @echo ' path like "make prefix=/usr/local install install-doc"' @echo ' install - install compiled binaries' @echo ' install-doc - install *all* documentation' @echo ' install-man - install manpage documentation' diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index 319426f..4f100b5 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile @@ -600,7 +600,7 @@ endif # Make the path relative to DESTDIR, not to prefix ifndef DESTDIR -prefix = $(HOME) +prefix ?= $(HOME) endif bindir_relative = bin bindir = $(prefix)/$(bindir_relative) ^ permalink raw reply related [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-06-05 14:32 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-05-25 4:50 [PATCH] perf: fix 'make help' message error Jianyu Zhan 2014-05-29 7:04 ` Namhyung Kim 2014-06-02 16:44 ` Jianyu Zhan 2014-06-02 16:53 ` Jianyu Zhan 2014-06-03 2:51 ` Namhyung Kim 2014-06-03 3:10 ` Jianyu Zhan 2014-06-03 12:03 ` Jiri Olsa 2014-06-05 14:32 ` [tip:perf/core] perf tools: Fix " tip-bot for Jianyu Zhan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).