From patchwork Tue Oct 25 09:53:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 9394239 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EE1F460762 for ; Tue, 25 Oct 2016 09:55:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE27929325 for ; Tue, 25 Oct 2016 09:55:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D1D4E29463; Tue, 25 Oct 2016 09:55:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A1AB32074F for ; Tue, 25 Oct 2016 09:55:52 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byyQP-0003Av-Qh; Tue, 25 Oct 2016 09:53:41 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byyQO-0003Ap-4N for xen-devel@lists.xenproject.org; Tue, 25 Oct 2016 09:53:40 +0000 Received: from [85.158.137.68] by server-5.bemta-3.messagelabs.com id C0/B7-02110-3AB2F085; Tue, 25 Oct 2016 09:53:39 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNIsWRWlGSWpSXmKPExsWyU9JRQnehNn+ Ewd4ORYvvWyYzOTB6HP5whSWAMYo1My8pvyKBNWNv10S2gsdCFf+7bzI3ME4T6GLk5JAQ8JN4 efkoC4jNJqAjcXHuTrYuRg4OEQEVidt7DboYuTiYBZYxSvx9dpsJpEZYIERiQfN9ZhCbRUBV4 nrLM7B6XgEXibnr2SFG6ko8PPebFcTmFRCUODnzCdh4ZgFNidbtv9khbHmJ5q2zwcYICShK9M 97wAbRmy4x8VkPC4TNLbHy8x+WCYx8s5CMmoVk1CwkoxYwMq9iVC9OLSpLLdK10EsqykzPKMl NzMzRNTQw1stNLS5OTE/NSUwq1kvOz93ECAw0BiDYwXih3fkQoyQHk5Iob+NnvgghvqT8lMqM xOKM+KLSnNTiQ4wyHBxKErxbtfgjhASLUtNTK9Iyc4AhD5OW4OBREuHlA0nzFhck5hZnpkOkT jEqSonzSqoBJQRAEhmleXBtsDi7xCgrJczLCHSIEE9BalFuZgmq/CtGcQ5GJWHe0yDjeTLzSu CmvwJazAS0WDCeB2RxSSJCSqqB0e5T+PdAm8dv4zuftqaVyf9b3ba0mt/hq/U+3U9zr736VTB pj4OhSsGzE2kfvOyZLRIZFhc8mZ4tuzY1XPPAvAd7Lvxh7hPuNt1298FU9yqt9q53JduvBnOz vlCpnXCtxvbtnDcxjJqx6U8twn9ObnFjvuDrK3YsdYf1AhGWE0yet1j+tLqsUGIpzkg01GIuK k4EADKF/UOuAgAA X-Env-Sender: prvs=099ae7f8d=roger.pau@citrix.com X-Msg-Ref: server-9.tower-31.messagelabs.com!1477389217!11745089!1 X-Originating-IP: [185.25.65.24] X-SpamReason: No, hits=0.0 required=7.0 tests=received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.0.13; banners=-,-,- X-VirusChecked: Checked Received: (qmail 10914 invoked from network); 25 Oct 2016 09:53:37 -0000 Received: from smtp.ctxuk.citrix.com (HELO SMTP.EU.CITRIX.COM) (185.25.65.24) by server-9.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 25 Oct 2016 09:53:37 -0000 X-IronPort-AV: E=Sophos;i="5.31,545,1473120000"; d="scan'208";a="33670034" From: Roger Pau Monne To: Date: Tue, 25 Oct 2016 11:53:28 +0200 Message-ID: <1477389208-23229-1-git-send-email-roger.pau@citrix.com> X-Mailer: git-send-email 2.7.4 (Apple Git-66) MIME-Version: 1.0 X-ClientProxiedBy: AMSPEX02CAS02.citrite.net (10.69.22.113) To AMSPEX02CL02.citrite.net (10.69.22.126) X-DLP: AMS1 Cc: Wei Liu , Alexander Nusov , Ian Jackson , Roger Pau Monne Subject: [Xen-devel] [PATCH v3 for-4.8] tools/configure: fix pkg-config install path for FreeBSD X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP pkg-config from FreeBSD ports doesn't have ${prefix}/share/pkgconfig in the default search path, fix this by having a PKG_INSTALLDIR variable that can be changed on a per-OS basis. It would be best to use PKG_INSTALLDIR as defined by the pkg.m4 macro, but sadly this also reports a wrong value on FreeBSD (${libdir}/pkgconfig, which expands to /usr/local/lib/pkgconfig by default, and is also _not_ part of the default pkg-config search path). This patch should not change the behavior for Linux installs. Signed-off-by: Roger Pau Monné Reported-by: Alexander Nusov Acked-by: Wei Liu --- Cc: Ian Jackson Cc: Wei Liu Cc: Alexander Nusov --- Changes since v2: - Add DESTDIR prefix. Changes since v1: - Remove leftovers from a previous attempt at fixing the issue. --- config/FreeBSD.mk | 1 + config/Paths.mk.in | 2 ++ tools/libxl/Makefile | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/FreeBSD.mk b/config/FreeBSD.mk index bb3a5d0..afeaefb 100644 --- a/config/FreeBSD.mk +++ b/config/FreeBSD.mk @@ -2,3 +2,4 @@ include $(XEN_ROOT)/config/StdGNU.mk # No wget on FreeBSD base system WGET = ftp +PKG_INSTALLDIR = ${prefix}/libdata/pkgconfig diff --git a/config/Paths.mk.in b/config/Paths.mk.in index 62cea48..a603295 100644 --- a/config/Paths.mk.in +++ b/config/Paths.mk.in @@ -56,3 +56,5 @@ XENFIRMWAREDIR := @XENFIRMWAREDIR@ XEN_CONFIG_DIR := @XEN_CONFIG_DIR@ XEN_SCRIPT_DIR := @XEN_SCRIPT_DIR@ + +PKG_INSTALLDIR := ${SHAREDIR}/pkgconfig diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile index a3c0af8..97bc8ca 100644 --- a/tools/libxl/Makefile +++ b/tools/libxl/Makefile @@ -297,8 +297,8 @@ install: all $(INSTALL_DATA) libxlutil.a $(DESTDIR)$(libdir) $(INSTALL_DATA) libxl.h libxl_event.h libxl_json.h _libxl_types.h _libxl_types_json.h _libxl_list.h libxl_utils.h libxl_uuid.h libxlutil.h $(DESTDIR)$(includedir) $(INSTALL_DATA) bash-completion $(DESTDIR)$(BASH_COMPLETION_DIR)/xl.sh - $(INSTALL_DATA) xenlight.pc $(DESTDIR)$(SHAREDIR)/pkgconfig/ - $(INSTALL_DATA) xlutil.pc $(DESTDIR)$(SHAREDIR)/pkgconfig/ + $(INSTALL_DATA) xenlight.pc $(DESTDIR)$(PKG_INSTALLDIR) + $(INSTALL_DATA) xlutil.pc $(DESTDIR)$(PKG_INSTALLDIR) .PHONY: clean clean: