From patchwork Mon Sep 9 03:16:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 173357 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp3812615ilq; Sun, 8 Sep 2019 20:16:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMYccePEN1xLS9WRsfd+TshILf/vuK7ngSe7/0sbdsLlw4s9cmnEDax/Kh+azYwtsYWxoU X-Received: by 2002:aa7:96f3:: with SMTP id i19mr25402612pfq.32.1567998980937; Sun, 08 Sep 2019 20:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567998980; cv=none; d=google.com; s=arc-20160816; b=Wi/TPTkb0uY7wDDgY+q4gOp89kbPZasGZ8T6O0QnIkB2ssO5G4jGGZ3nJGIb8s2fqB CAI+94MV3CKwDcd8vXUjMRfYz1xryeI+AanT4qujNvCXExIEfwF9EnpqhIPuRhTtiTB6 o+Bz5VKio53PzE6P06pw0fHb6wH0IylYL3dNwMYDV+tWPlhYa9ycg7FB+TL5no5ZkF4D XmNM2F60QGsit4fZWticDZtqBJJLUcOueC1PjffkOwsDRtDALcRHE8eQVWE2vDN1HqHy x7lTFVNGjOXH9iHhXzXy8dSqZ9Ev9g+ZMVlVSSaResnpMzeKsVi06vCiA1661CjQwKHq fgLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=m/I9LkaxR1NuL1VISjrh7tCZYTnIAWA5qeDFjW3ndA8=; b=kpNqX/3LLSNGnF/kZJj9SOzE1Sbwca6qeh0x8FnJnW/0K3wwyNmlkWzKP0OGPGDZrW fvMmbINSOf6a4LbMNCQpDvPqrRoRRMpVaZg/9znD+lNCqj1cq7zjHMdjwGFTxlCBc4Qh tZOX73WNAUCkoeJ1+uzZMauJ71HXhvGlBKfzwV29MFJ2LypNrKaGAbbdc04bS3fawBbp KFP29NTy3ntDVcuQU11HkHdpD7Zxux0WA0g81+6tKKFrsKz7ImJpHgSqjqloqY+BNfMF xquDtod0XuCzGesXnBHLwY9j1FbbOvo37QR+vpI7uln9wZoBMm1Et4sofBSN1el89Fgq tbuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=YzTBAOa5; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id f6si11663868plr.100.2019.09.08.20.16.20; Sun, 08 Sep 2019 20:16:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=YzTBAOa5; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 3B76F7F397; Mon, 9 Sep 2019 03:16:17 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by mail.openembedded.org (Postfix) with ESMTP id 6CDD27F387 for ; Mon, 9 Sep 2019 03:16:15 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id x127so8233315pfb.7 for ; Sun, 08 Sep 2019 20:16:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6hUN0g8fkk1r6QcwTc7EdRryUbZ219CUjLXWlMt0Vsk=; b=YzTBAOa5l5k4XDyIAz1H4mJdeUhpQ698GRr6pZmexPt97y9YRsAshnOuZ2d/p8wgrq BnX8x/2wFoJmE+03/9OBJlx++TLkPFGh1fpWuDHYf+O8GnIhvx9no/F+pKaagvAi9wFc E7wWvIkuysHYu8+3RkFfM01xnF7Mp2WZa35UNzlvo/unuHJH4cfZfpSL6qHjR+7sa9NK xe4/H6OdMvv4sLZhzsAu1HMkZjS0wLHItiDBPmGfM4Zf7tqZlLRTlkqdTN/Cuhy6DuZJ V33IKrVEoWdeX5UQekijUW3ZIyC0PkDtyhRTyB62yeGbfX5ursL2QSBt6391oQpM1+13 aNcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6hUN0g8fkk1r6QcwTc7EdRryUbZ219CUjLXWlMt0Vsk=; b=Tur8uDoUK7pNLGRlaM4p2uX2GVykW3QRjVr4O59+dobwEx5opqdG7W04dVg+oQAqUm PskIxXNennXWk06LGi5oFc3IIF3QBHKPLiuTOSLZjCrbU8bEwOFbbv7FgPT9upcn3zLz J4F81Y7tdl/OfWjodzYNgKjLe/265JeOfVuH26l+n1dkDVoWjmD3WhNj+N/7irvEKrnx N5KtDvR9kk5I69E5hhCQ7AGwXZiT+nI6fKQkNrC/MpB9+t/PQFts5YrAECasK8iaXTMV 8rsdMWIsncRVS3Vape8d56kjCbjiwWTCu4/njkL0jNLTOvW5p8Wll4BhUPQ+ZDhOZqt4 W+xQ== X-Gm-Message-State: APjAAAWS1BFS8mYgpmuRek7u6u5RkrPsT1qBKa2mzt32WMJwY2XjWzMM ffuDgOx0WWTrFZKOYZw+CqlrHvpqJt4= X-Received: by 2002:a62:aa0e:: with SMTP id e14mr26094451pff.182.1567998975886; Sun, 08 Sep 2019 20:16:15 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id g8sm11097212pgk.1.2019.09.08.20.16.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2019 20:16:15 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sun, 8 Sep 2019 20:16:07 -0700 Message-Id: <20190909031607.1806186-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH] python3native, pythonnative: Separate definition and export of PYTHON_LIBRARY and PYTHON_INCLUDE_DIR X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org This helps recipes where they need to explicitly pass the variable and does not entertain the ones from environment Signed-off-by: Khem Raj --- meta/classes/python3native.bbclass | 6 ++++-- meta/classes/pythonnative.bbclass | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) -- 2.23.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/python3native.bbclass b/meta/classes/python3native.bbclass index d98fb4c758..bed04bd941 100644 --- a/meta/classes/python3native.bbclass +++ b/meta/classes/python3native.bbclass @@ -14,8 +14,8 @@ export STAGING_LIBDIR # find_package(PythonLibs REQUIRED) # which ends up using libs/includes from build host # Therefore pre-empt that effort -export PYTHON_LIBRARY="${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so" -export PYTHON_INCLUDE_DIR="${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}" +PYTHON_LIBRARY="${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so" +PYTHON_INCLUDE_DIR="${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}" export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" @@ -24,3 +24,5 @@ export PYTHONNOUSERSITE = "1" # autoconf macros will use their internal default preference otherwise export PYTHON +export PYTHON_LIBRARY +export PYTHON_INCLUDE_DIR diff --git a/meta/classes/pythonnative.bbclass b/meta/classes/pythonnative.bbclass index 0e9019d1e2..5fa42aaeff 100644 --- a/meta/classes/pythonnative.bbclass +++ b/meta/classes/pythonnative.bbclass @@ -17,11 +17,13 @@ export STAGING_LIBDIR # find_package(PythonLibs REQUIRED) # which ends up using libs/includes from build host # Therefore pre-empt that effort -export PYTHON_LIBRARY="${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so" -export PYTHON_INCLUDE_DIR="${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}" +PYTHON_LIBRARY="${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so" +PYTHON_INCLUDE_DIR="${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}" # suppress host user's site-packages dirs. export PYTHONNOUSERSITE = "1" # autoconf macros will use their internal default preference otherwise export PYTHON +export PYTHON_LIBRARY +export PYTHON_INCLUDE_DIR