diff options
author | Josh Boyer <jwboyer@fedoraproject.org> | 2014-01-22 10:01:48 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-01-23 13:48:12 -0500 |
commit | b935a58dbff457c27fd63e1e1bb29db20b2ee6a8 (patch) | |
tree | 0c93edc535a9c2d67adb471746813b0565c01500 /tools | |
parent | bb236de5d9509c1c6ea5ce0680f000002e731ee2 (diff) |
perf tools: Fix traceevent plugin path definitions
The plugindir_SQ definition contains $(prefix) which is not needed as
the $(libdir) definition already contains prefix in it. This leads to
the path including an extra prefix in it, e.g. /usr/usr/lib64.
The -DPLUGIN_DIR defintion includes DESTDIR. This is incorrect, as it
sets the plugin search path to include the value of DESTDIR. DESTDIR is
a mechanism to install in a non-standard location such as a chroot or an
RPM build root. In the RPM case, this leads to the search path being
incorrect after the resulting RPM is installed (or in some cases an RPM
build failure).
Remove both of these unnecessary inclusions.
Signed-off-by: Josh Boyer <jwboyer@fedoraproject.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/20140122150147.GK16455@hansolo.jdub.homelinux.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lib/traceevent/Makefile | 2 | ||||
-rw-r--r-- | tools/perf/config/Makefile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile index 56d52a33a3df..005c9cc06935 100644 --- a/tools/lib/traceevent/Makefile +++ b/tools/lib/traceevent/Makefile | |||
@@ -63,7 +63,7 @@ endif | |||
63 | endif | 63 | endif |
64 | 64 | ||
65 | ifeq ($(set_plugin_dir),1) | 65 | ifeq ($(set_plugin_dir),1) |
66 | PLUGIN_DIR = -DPLUGIN_DIR="$(DESTDIR)/$(plugin_dir)" | 66 | PLUGIN_DIR = -DPLUGIN_DIR="$(plugin_dir)" |
67 | PLUGIN_DIR_SQ = '$(subst ','\'',$(PLUGIN_DIR))' | 67 | PLUGIN_DIR_SQ = '$(subst ','\'',$(PLUGIN_DIR))' |
68 | endif | 68 | endif |
69 | 69 | ||
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index d604e50fc167..c48d44958172 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile | |||
@@ -600,5 +600,5 @@ perfexec_instdir_SQ = $(subst ','\'',$(perfexec_instdir)) | |||
600 | # Otherwise we install plugins into the global $(libdir). | 600 | # Otherwise we install plugins into the global $(libdir). |
601 | ifdef DESTDIR | 601 | ifdef DESTDIR |
602 | plugindir=$(libdir)/traceevent/plugins | 602 | plugindir=$(libdir)/traceevent/plugins |
603 | plugindir_SQ= $(subst ','\'',$(prefix)/$(plugindir)) | 603 | plugindir_SQ= $(subst ','\'',$(plugindir)) |
604 | endif | 604 | endif |