]> Git Repo - J-linux.git/commitdiff
libperf: Fix install_pkgconfig target
authorAlexander Gordeev <[email protected]>
Fri, 16 Dec 2022 09:50:41 +0000 (10:50 +0100)
committerArnaldo Carvalho de Melo <[email protected]>
Fri, 16 Dec 2022 13:04:06 +0000 (10:04 -0300)
Commit 47e02b94a4c98dcc ("tools lib perf: Add dependency test to install_headers")
misses the notion of $(DESTDIR_SQ) for install_pkgconfig target, which leads to
error:

  install: cannot create regular file '/usr/lib64/pkgconfig/libperf.pc': Permission denied
  make: *** [Makefile:210: install_pkgconfig] Error 1

Signed-off-by: Alexander Gordeev <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Masahiro Yamada <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Nathan Chancellor <[email protected]>
Cc: Nick Desaulniers <[email protected]>
Cc: Nicolas Schier <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Tom Rix <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: http://lore.kernel.org/lkml/Y5w/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/lib/perf/Makefile

index 30b7f91e71472e35846f66609d459cc08e0fc243..d8cad124e4c5de57592c1cf25cb03e22611d8e4b 100644 (file)
@@ -208,7 +208,7 @@ install_headers: $(INSTALL_HDRS) $(INSTALL_INTERNAL_HDRS)
 
 install_pkgconfig: $(LIBPERF_PC)
        $(call QUIET_INSTALL, $(LIBPERF_PC)) \
-               $(call do_install,$(LIBPERF_PC),$(libdir_SQ)/pkgconfig,644)
+               $(call do_install,$(LIBPERF_PC),$(DESTDIR_SQ)$(libdir_SQ)/pkgconfig,644)
 
 install_doc:
        $(Q)$(MAKE) -C Documentation install-man install-html install-examples
This page took 0.060434 seconds and 4 git commands to generate.