From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752246AbbBXCIn (ORCPT ); Mon, 23 Feb 2015 21:08:43 -0500 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.227]:9062 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751312AbbBXCIm (ORCPT ); Mon, 23 Feb 2015 21:08:42 -0500 Date: Mon, 23 Feb 2015 21:09:32 -0500 From: Steven Rostedt To: Wang Nan Cc: , Arnaldo Carvalho de Melo , Jiri Olsa , Namhyung Kim , Ingo Molnar , Andrew Morton , Geng Hui Subject: Re: [PATCH] tools lib traceevent: Use realpath for srctree and objtree Message-ID: <20150223210932.10d2338b@grimm.local.home> In-Reply-To: <1391746953-21918-1-git-send-email-wangnan0@huawei.com> References: <1391746953-21918-1-git-send-email-wangnan0@huawei.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Another email inbox clean up: BLAST FROM THE PAST On Fri, 7 Feb 2014 12:22:33 +0800 Wang Nan wrote: > If BUILD_SRC or CURDIR contains tailing '/', the file names passed to gcc will > contain '//'. It will be contained .o's in debuginfo, then confuse debugedit: > > https://bugzilla.redhat.com/show_bug.cgi?id=304121 > > This patch uses realpath command to makesure potential tailing '/'s are removed. Is this still an issue? I know Jiri did a bunch of changes to the make process, but does this still confuse debugedit (whatever that is)? -- Steve > > Signed-off-by: Wang Nan > Cc: Arnaldo Carvalho de Melo > Cc: Jiri Olsa > Cc: Steven Rostedt > Cc: Namhyung Kim > Cc: Ingo Molnar > Cc: Andrew Morton > Cc: Geng Hui > > --- > tools/lib/traceevent/Makefile | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile > index 005c9cc..5bb281c 100644 > --- a/tools/lib/traceevent/Makefile > +++ b/tools/lib/traceevent/Makefile > @@ -107,8 +107,8 @@ endif # BUILD_SRC > # We process the rest of the Makefile if this is the final invocation of make > ifeq ($(skip-makefile),) > > -srctree := $(if $(BUILD_SRC),$(BUILD_SRC),$(CURDIR)) > -objtree := $(CURDIR) > +srctree := $(realpath $(if $(BUILD_SRC),$(BUILD_SRC),$(CURDIR))) > +objtree := $(realpath $(CURDIR)) > src := $(srctree) > obj := $(objtree) >