From patchwork Thu Jan 8 22:28:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Szil=C3=A1rd_Pfeiffer?= X-Patchwork-Id: 426870 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7065E140140 for ; Fri, 9 Jan 2015 09:28:25 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 8154128121B; Thu, 8 Jan 2015 23:26:07 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id AA4FE2805E4 for ; Thu, 8 Jan 2015 23:26:01 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -7.6 Received: from snowhill.illusion.hu (snowhill.illusion.hu [217.116.46.57]) by arrakis.dune.hu (Postfix) with ESMTP for ; Thu, 8 Jan 2015 23:25:59 +0100 (CET) Received: from [192.168.1.148] (178-164-235-209.pool.digikabel.hu [178.164.235.209]) by snowhill.illusion.hu (Postfix) with ESMTPSA id A5035543E41; Thu, 8 Jan 2015 23:28:07 +0100 (CET) Message-ID: <54AF0477.1020304@pfeifferszilard.hu> Date: Thu, 08 Jan 2015 23:28:07 +0100 From: =?UTF-8?B?U3ppbMOhcmQgUGZlaWZmZXI=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: ardeleanalex@gmail.com X-MCSMilter-SessionID: CC78E342A5035543E41 Cc: openwrt-devel@lists.openwrt.org Subject: [OpenWrt-Devel] Install .pc files of Python X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Hi, .pc files are not copied to the install directory, so python (as a library) cannot be checked from configure.ac by PKG_CHECK_MODULES. It caused problem during the port of Zorp GPL to OpenWrt. Possible solution is attached. Best regards, Szilárd Pfeiffer From b7a1ac80ec6536b165e2f1db61d4bac9a086c4bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szil=C3=A1rd=20Pfeiffer?= Date: Thu, 27 Nov 2014 23:19:40 +0100 Subject: [PATCH] Install .pc files from Python package. --- lang/python/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lang/python/Makefile b/lang/python/Makefile index 954612f..6039b2e 100644 --- a/lang/python/Makefile +++ b/lang/python/Makefile @@ -104,7 +104,7 @@ endef define Build/InstallDev $(INSTALL_DIR) $(STAGING_DIR)/mk/ - $(INSTALL_DIR) $(1)/usr/include/ $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/include/ $(1)/usr/lib/ $(1)/usr/lib/pkgconfig $(INSTALL_DIR) $(1)/usr/lib/python$(PYTHON_VERSION)/ $(INSTALL_DATA) ./files/python-package.mk $(STAGING_DIR)/mk/ $(CP) \ @@ -115,6 +115,11 @@ define Build/InstallDev $(PKG_INSTALL_DIR)/usr/lib/libpython$(PYTHON_VERSION).so* \ $(1)/usr/lib/ $(CP) \ + $(STAGING_DIR_HOST)/lib/pkgconfig/python.pc \ + $(STAGING_DIR_HOST)/lib/pkgconfig/python2.pc \ + $(STAGING_DIR_HOST)/lib/pkgconfig/python-$(PYTHON_VERSION).pc \ + $(1)/usr/lib/pkgconfig + $(CP) \ $(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON_VERSION)/config \ $(1)/usr/lib/python$(PYTHON_VERSION)/ endef -- 1.9.1