Skip to content

Commit b935a58

Browse files
Josh Boyeracmel
authored andcommitted
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>
1 parent bb236de commit b935a58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/lib/traceevent/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ endif
6363
endif
6464

6565
ifeq ($(set_plugin_dir),1)
66-
PLUGIN_DIR = -DPLUGIN_DIR="$(DESTDIR)/$(plugin_dir)"
66+
PLUGIN_DIR = -DPLUGIN_DIR="$(plugin_dir)"
6767
PLUGIN_DIR_SQ = '$(subst ','\'',$(PLUGIN_DIR))'
6868
endif
6969

tools/perf/config/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,5 +600,5 @@ perfexec_instdir_SQ = $(subst ','\'',$(perfexec_instdir))
600600
# Otherwise we install plugins into the global $(libdir).
601601
ifdef DESTDIR
602602
plugindir=$(libdir)/traceevent/plugins
603-
plugindir_SQ= $(subst ','\'',$(prefix)/$(plugindir))
603+
plugindir_SQ= $(subst ','\'',$(plugindir))
604604
endif

0 commit comments

Comments
 (0)