Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1380665

Re: Bug 116411: tools/perf_clean: output directory does not exist. Stop.

From TJ <linux@iam.tj>
Newsgroups linux.kernel
Subject Re: Bug 116411: tools/perf_clean: output directory does not exist. Stop.
Date 2016-04-17 02:40 +0200
Message-ID <roIUO-3Kc-3@gated-at.bofh.it> (permalink)
References <roIUO-3Kc-5@gated-at.bofh.it> <roIUO-3Kc-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 15-04-2016 17:00, Arnaldo Carvalho de Melo wrote:
----8-<---- snip
> 
> Thanks for narrowing it down, do you have any patch fixing this?

I'm having some success with the following change although I'm a long 
way from completing tests of all possible permutations. It's a bit 'raw' 
and could be caught out:

diff --git a/tools/scripts/Makefile.include 
b/tools/scripts/Makefile.include
index 8abbef1..7c88242 100644
--- a/tools/scripts/Makefile.include
+++ b/tools/scripts/Makefile.include
@@ -2,7 +2,7 @@ ifneq ($(O),)
  ifeq ($(origin O), command line)
         dummy := $(if $(shell test -d $(O) || echo $(O)),$(error O=$(O) 
does not exist),)
         ABSOLUTE_O := $(shell cd $(O) ; pwd)
-       OUTPUT := $(ABSOLUTE_O)/$(if $(subdir),$(subdir)/)
+       OUTPUT := $(ABSOLUTE_O)/$(if $(filter 
%$(subdir),$(ABSOLUTE_O)),,$(subdir)/)
         COMMAND_O := O=$(ABSOLUTE_O)
  ifeq ($(objtree),)
         objtree := $(O)

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: Bug 116411: tools/perf_clean: output directory does not exist. Stop. TJ <linux@iam.tj> - 2016-04-17 02:40 +0200

csiph-web