Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp617429yba; Wed, 24 Apr 2019 06:59:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGGSyJ4/d9Wr0yiFDtmhen5AXq0Cdm3AVhSltDFglbV7LLFo5OfiwusgBPPQB/a1Cj4cqK X-Received: by 2002:aa7:8b83:: with SMTP id r3mr2565570pfd.248.1556114365748; Wed, 24 Apr 2019 06:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556114365; cv=none; d=google.com; s=arc-20160816; b=VMS7nJGXJjyXpCis+ivuKHBhOVwwEYL57U6K/sMmvFI7b5RAzm326pQd9d8ON0XS48 U8zXWt8hUiyIvM5wauHrPEi+kgM/eFJjarE4cM9+UQgqzgMIlwIttVsDhtjMSYAWaYcv Xm2nCIj5xgkCvdbAFqCCxTU+bcGEDd0ezI7bNPNnKFBV7/nbMDp/OdHbXDbF7IlAushj 3Wiq0DYKdAL8o1N074OKHjTQSnicR9rJo7gc2ube/Ldc7yt8CNwhF+A/8GD4pburSZsA 1WIDaJkyMQZn8mGWmgepCQH6IVgCunu6VcqNd6F92VQsnBgqwuShSDWY8YeiqGPmFRr3 byuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=pHaOmPxrQBjjHHyyxGBLBIeZVDgcHN2URdUUauAYMIE=; b=dEh2CUUUJezhIJmZ4JODhHQAnBL0CUsmVdaKboP7yO1gtvZIguCKXUKJ1sWC3VxtQf dwFmyT9qGBHs+OyAH/d4CR3Mzp+cn0og9/Wslo2BV4KSTKwb0D7zidPGR5KFv3eKWxDJ B3/Y91XmXIWk9mL7O6kJLp7Q7WylqPZ+3Z3aULSgPA+JX64g7T6P/mbzvRbTZF1c7ShF +jO85SEnxCZxJUmVVnJ3nHM6TXLOCMYBCbDfl1ACoAYD/trnWhFi0NRzSlq5rsNOPjqZ ivXqYdIyJoY4yrFvUezrX6979vq/hzcBbW2BRm3bOp3A2JgtkNa3Gx9fkcPU1lOzHH2T LqcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si20147514plf.90.2019.04.24.06.59.10; Wed, 24 Apr 2019 06:59:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727876AbfDXNhF (ORCPT + 99 others); Wed, 24 Apr 2019 09:37:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40372 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727369AbfDXNhE (ORCPT ); Wed, 24 Apr 2019 09:37:04 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2B4E930BCE5B; Wed, 24 Apr 2019 13:36:59 +0000 (UTC) Received: from sandy.ghostprotocols.net (ovpn-112-22.phx2.redhat.com [10.3.112.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 34E3D1001E71; Wed, 24 Apr 2019 13:36:56 +0000 (UTC) Received: by sandy.ghostprotocols.net (Postfix, from userid 1000) id 53E5C62CF; Wed, 24 Apr 2019 10:37:01 -0300 (BRT) Date: Wed, 24 Apr 2019 10:37:01 -0300 From: Arnaldo Carvalho de Melo To: Steven Rostedt Cc: Jiri Olsa , Tzvetomir Stoyanov , "linux-trace-devel@vger.kernel.org" , LKML Subject: Re: [PATCH] tools/lib/traceevent: Remove hardcoded install paths from pkg-config file Message-ID: <20190424133701.GE4339@redhat.com> References: <20190418211556.5a12adc3@oasis.local.home> <20190424084722.5b98212e@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190424084722.5b98212e@gandalf.local.home> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.20 (2009-12-10) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Wed, 24 Apr 2019 13:37:04 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Apr 24, 2019 at 08:47:22AM -0400, Steven Rostedt escreveu: > > Hi Arnaldo, > > Just making sure this doesn't get lost in the noise ;-) > > Can you pull this in? Its already in my local repo, that I just pushed out, thanks! - Arnaldo > -- Steve > > > On Thu, 18 Apr 2019 21:15:56 -0400 > Steven Rostedt wrote: > > > From: Tzvetomir Stoyanov > > > > Install directories of header and library files are hardcoded in pkg-config > > templete file. They must be configurable, the Makefile should set them on the > > compilation / install stage. > > > > Link: http://lkml.kernel.org/r/20190329144546.5819-1-tstoyanov@vmware.com > > > > Signed-off-by: Tzvetomir Stoyanov > > Signed-off-by: Steven Rostedt (VMware) > > --- > > tools/lib/traceevent/Makefile | 13 +++++++++---- > > tools/lib/traceevent/libtraceevent.pc.template | 4 ++-- > > 2 files changed, 11 insertions(+), 6 deletions(-) > > > > diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile > > index 941761d9923d..34cf33a4f001 100644 > > --- a/tools/lib/traceevent/Makefile > > +++ b/tools/lib/traceevent/Makefile > > @@ -50,6 +50,9 @@ man_dir = $(prefix)/share/man > > man_dir_SQ = '$(subst ','\'',$(man_dir))' > > pkgconfig_dir ?= $(word 1,$(shell $(PKG_CONFIG) \ > > --variable pc_path pkg-config | tr ":" " ")) > > +includedir_relative = traceevent > > +includedir = $(prefix)/include/$(includedir_relative) > > +includedir_SQ = '$(subst ','\'',$(includedir))' > > > > export man_dir man_dir_SQ INSTALL > > export DESTDIR DESTDIR_SQ > > @@ -279,6 +282,8 @@ define do_install_pkgconfig_file > > cp -f ${PKG_CONFIG_FILE}.template ${PKG_CONFIG_FILE}; \ > > sed -i "s|INSTALL_PREFIX|${1}|g" ${PKG_CONFIG_FILE}; \ > > sed -i "s|LIB_VERSION|${EVENT_PARSE_VERSION}|g" ${PKG_CONFIG_FILE}; \ > > + sed -i "s|LIB_DIR|${libdir}|g" ${PKG_CONFIG_FILE}; \ > > + sed -i "s|HEADER_DIR|$(includedir)|g" ${PKG_CONFIG_FILE}; \ > > $(call do_install,$(PKG_CONFIG_FILE),$(pkgconfig_dir),644); \ > > else \ > > (echo Failed to locate pkg-config directory) 1>&2; \ > > @@ -300,10 +305,10 @@ install_pkgconfig: > > > > install_headers: > > $(call QUIET_INSTALL, headers) \ > > - $(call do_install,event-parse.h,$(prefix)/include/traceevent,644); \ > > - $(call do_install,event-utils.h,$(prefix)/include/traceevent,644); \ > > - $(call do_install,trace-seq.h,$(prefix)/include/traceevent,644); \ > > - $(call do_install,kbuffer.h,$(prefix)/include/traceevent,644) > > + $(call do_install,event-parse.h,$(DESTDIR)$(includedir_SQ),644); \ > > + $(call do_install,event-utils.h,$(DESTDIR)$(includedir_SQ),644); \ > > + $(call do_install,trace-seq.h,$(DESTDIR)$(includedir_SQ),644); \ > > + $(call do_install,kbuffer.h,$(DESTDIR)$(includedir_SQ),644) > > > > install: install_lib > > > > diff --git a/tools/lib/traceevent/libtraceevent.pc.template b/tools/lib/traceevent/libtraceevent.pc.template > > index 42e4d6cb6b9e..86384fcd57f1 100644 > > --- a/tools/lib/traceevent/libtraceevent.pc.template > > +++ b/tools/lib/traceevent/libtraceevent.pc.template > > @@ -1,6 +1,6 @@ > > prefix=INSTALL_PREFIX > > -libdir=${prefix}/lib64 > > -includedir=${prefix}/include/traceevent > > +libdir=LIB_DIR > > +includedir=HEADER_DIR > > > > Name: libtraceevent > > URL: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git