From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751217AbdALIaU (ORCPT ); Thu, 12 Jan 2017 03:30:20 -0500 Received: from terminus.zytor.com ([198.137.202.10]:34806 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751010AbdALIaQ (ORCPT ); Thu, 12 Jan 2017 03:30:16 -0500 Date: Thu, 12 Jan 2017 00:28:06 -0800 From: tip-bot for Laura Abbott Message-ID: Cc: hpa@zytor.com, acme@redhat.com, peterz@infradead.org, labbott@redhat.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, alexander.shishkin@linux.intel.com, jolsa@redhat.com, mingo@kernel.org Reply-To: mingo@kernel.org, tglx@linutronix.de, alexander.shishkin@linux.intel.com, jolsa@redhat.com, acme@redhat.com, peterz@infradead.org, linux-kernel@vger.kernel.org, labbott@redhat.com, hpa@zytor.com In-Reply-To: <1483741088-13543-1-git-send-email-labbott@redhat.com> References: <1483741088-13543-1-git-send-email-labbott@redhat.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf jvmti: Create libdir directory before installing libperf-jvmti.so Git-Commit-ID: cd7f355ac4067177e0a45e7331d11472bd7fd7ca X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: cd7f355ac4067177e0a45e7331d11472bd7fd7ca Gitweb: http://git.kernel.org/tip/cd7f355ac4067177e0a45e7331d11472bd7fd7ca Author: Laura Abbott AuthorDate: Fri, 6 Jan 2017 14:18:08 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jan 2017 16:48:00 -0300 perf jvmti: Create libdir directory before installing libperf-jvmti.so The install command for libperf-jvmti.so does not check if libdir exists before installing. This means that when the install command is run: install libperf-jvmti.so '/tmp/test_root/usr/lib64'; libperf-jvmti.so will get installed to /usr/lib64 as a file and break further installation. Fix this by ensuring the directory gets created first. See https://bugzilla.redhat.com/show_bug.cgi?id=1410296 Signed-off-by: Laura Abbott Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Peter Zijlstra Fixes: d4dfdf00d43e ("perf jvmti: Plug compilation into perf build") Link: http://lkml.kernel.org/r/1483741088-13543-1-git-send-email-labbott@redhat.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Makefile.perf | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 8bb16aa..4da19b6 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -661,6 +661,7 @@ ifndef NO_PERF_READ_VDSOX32 endif ifndef NO_JVMTI $(call QUIET_INSTALL, $(LIBJVMTI)) \ + $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(libdir_SQ)'; \ $(INSTALL) $(OUTPUT)$(LIBJVMTI) '$(DESTDIR_SQ)$(libdir_SQ)'; endif $(call QUIET_INSTALL, libexec) \