From patchwork Thu Apr 4 18:52:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1077603 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=micronovasrl.com Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=micronovasrl.com header.i=@micronovasrl.com header.b="NSEy867H"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44ZsXL0Cdbz9sPK for ; Fri, 5 Apr 2019 05:53:02 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4D6FF86C19; Thu, 4 Apr 2019 18:52:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gI7ZlBXntfhm; Thu, 4 Apr 2019 18:52:50 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7053786C45; Thu, 4 Apr 2019 18:52:47 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 266AE1BF3A9 for ; Thu, 4 Apr 2019 18:52:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1B2D330F57 for ; Thu, 4 Apr 2019 18:52:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NFygnXMAvQ2g for ; Thu, 4 Apr 2019 18:52:34 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.micronovasrl.com (mail.micronovasrl.com [212.103.203.10]) by silver.osuosl.org (Postfix) with ESMTP id 7E57430F26 for ; Thu, 4 Apr 2019 18:52:33 +0000 (UTC) Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 36293B01090 for ; Thu, 4 Apr 2019 20:52:31 +0200 (CEST) Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com; h=x-mailer:message-id:date:date:subject:subject:to:from:from; s=dkim; t=1554403949; x=1555267950; bh=ntrgrLGtWzCoVoshjhL/01VW MmaOLKcJN6QVsM2ZTqo=; b=NSEy867H+zOiRlgr9ri5qvWXi4Nzn26BDJmtXufT Eo1snwzpjruYX5d5jghzbao5HP+QFW+LYHRkFYuMyGOAboBtYAnovq1w42rHzKk5 3nk+xvP51sc078w+D6+gMrpFkLBE35/9aOPB4xyGA34Hg1Lfwv/zXNbD4U2sQYA+ Otw= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com Received: from mail.micronovasrl.com ([127.0.0.1]) by mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id MophCK1oAv2g for ; Thu, 4 Apr 2019 20:52:29 +0200 (CEST) Received: from ubuntu.localdomain (88-149-228-83.v4.ngi.it [88.149.228.83]) by mail.micronovasrl.com (Postfix) with ESMTPSA id 3D193B00ADE; Thu, 4 Apr 2019 20:52:29 +0200 (CEST) From: Giulio Benetti To: buildroot@buildroot.org Date: Thu, 4 Apr 2019 20:52:28 +0200 Message-Id: <20190404185228.112789-1-giulio.benetti@micronovasrl.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH] package/dbus-python: fix build failure due to wrong auto-detected extra libs X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Using Python 3, during configuration, if PYTHON_EXTRA_LIBS is not defined, ./configure will launch a python script to retrieve LIBS and SYSLIBS variables, but this is done using host-python resulting in obtaining libraries that are not present in target. So while trying to link configuration test it fails complaining it can't find a library(i.e. libintl). Set PYTHON_EXTRA_LIBS the same as PYTHON_LIBS to be sure host libs are not used at all. Fixes: http://autobuild.buildroot.net/results/4078ee9e8aa304f044dc92e9345c28341349d468/ Signed-off-by: Giulio Benetti --- package/dbus-python/dbus-python.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/dbus-python/dbus-python.mk b/package/dbus-python/dbus-python.mk index d6af7454af..49f0de5455 100644 --- a/package/dbus-python/dbus-python.mk +++ b/package/dbus-python/dbus-python.mk @@ -25,7 +25,8 @@ DBUS_PYTHON_DEPENDENCIES += python3 host-python3 DBUS_PYTHON_CONF_ENV += \ PYTHON=$(HOST_DIR)/bin/python3 \ PYTHON_INCLUDES="`$(STAGING_DIR)/usr/bin/python3-config --includes`" \ - PYTHON_LIBS="`$(STAGING_DIR)/usr/bin/python3-config --ldflags`" + PYTHON_LIBS="`$(STAGING_DIR)/usr/bin/python3-config --ldflags`" \ + PYTHON_EXTRA_LIBS="`$(STAGING_DIR)/usr/bin/python3-config --ldflags`" endif $(eval $(autotools-package))