Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 42F8C77B99 for ; Mon, 5 Jun 2017 09:15:55 +0000 (UTC) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id v559FuCP012968 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Mon, 5 Jun 2017 02:15:56 -0700 (PDT) Received: from pek-lpggp2.wrs.com (128.224.153.75) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server (TLS) id 14.3.294.0; Mon, 5 Jun 2017 02:15:55 -0700 From: Li Zhou To: Date: Mon, 5 Jun 2017 17:15:12 +0800 Message-ID: <1496654112-103612-1-git-send-email-li.zhou@windriver.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [128.224.153.75] Subject: [PATCH V2] python2/3: Remove building host path from packages 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: , X-List-Received-Date: Mon, 05 Jun 2017 09:15:57 -0000 Content-Type: text/plain Remove building host related path from python2 and python3 packages. Signed-off-by: Li Zhou --- meta/recipes-devtools/python/python3_3.5.3.bb | 7 ++++++- meta/recipes-devtools/python/python_2.7.13.bb | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3_3.5.3.bb b/meta/recipes-devtools/python/python3_3.5.3.bb index d7c29f2..58313f7 100644 --- a/meta/recipes-devtools/python/python3_3.5.3.bb +++ b/meta/recipes-devtools/python/python3_3.5.3.bb @@ -185,9 +185,14 @@ py_package_preprocess () { install -m 0644 ${B}/Makefile.orig ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}${PYTHON_ABI}/Makefile # Remove references to buildmachine paths in target Makefile and _sysconfigdata sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' -e s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \ + -e 's:${STAGING_DIR_NATIVE}::g' \ + -e 's:${STAGING_DIR_HOST}::g' \ + -e 's:${WORKDIR}::g' \ + -e 's:${TMPDIR}::g' \ ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile \ ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}${PYTHON_ABI}/Makefile \ - ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py + ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py \ + ${PKGD}/${bindir}/python${PYTHON_MAJMIN}${PYTHON_ABI}-config } require python-${PYTHON_MAJMIN}-manifest.inc diff --git a/meta/recipes-devtools/python/python_2.7.13.bb b/meta/recipes-devtools/python/python_2.7.13.bb index 4ef9952..e93a84f 100644 --- a/meta/recipes-devtools/python/python_2.7.13.bb +++ b/meta/recipes-devtools/python/python_2.7.13.bb @@ -131,7 +131,12 @@ py_package_preprocess () { # Remove references to buildmachine paths in target Makefile and _sysconfigdata sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' -e s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \ + -e 's:${STAGING_DIR_NATIVE}::g' \ + -e 's:${STAGING_DIR_HOST}::g' \ + -e 's:${WORKDIR}::g' \ + -e 's:${TMPDIR}::g' \ ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile \ + ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/config.c \ ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py python -m py_compile ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py } -- 1.9.1