[oe-commits] [meta-openembedded] 54/84: mercurial: Support building for target

git at git.openembedded.org git at git.openembedded.org
Wed Nov 15 17:36:53 UTC 2017


This is an automated email from the git hooks/post-receive script.

armin_kuster pushed a commit to branch master-next
in repository meta-openembedded.

commit 8b14f9441f4273d564bec062ea73162f84055ffa
Author: Paul Barker <pbarker at toganlabs.com>
AuthorDate: Sun Nov 5 22:07:27 2017 +0000

    mercurial: Support building for target
    
    Rather than trying to work out the exact python modules needed, we just add
    'python-modules' to the dependencies list. If you can afford to install
    mercurial on target then python-modules shouldn't be too much of a burden.
    
    Signed-off-by: Paul Barker <pbarker at toganlabs.com>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 .../mercurial/{mercurial-native_4.4.bb => mercurial_4.4.bb}      | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-devtools/mercurial/mercurial-native_4.4.bb b/meta-oe/recipes-devtools/mercurial/mercurial_4.4.bb
similarity index 78%
rename from meta-oe/recipes-devtools/mercurial/mercurial-native_4.4.bb
rename to meta-oe/recipes-devtools/mercurial/mercurial_4.4.bb
index 693d4e4..9052497 100644
--- a/meta-oe/recipes-devtools/mercurial/mercurial-native_4.4.bb
+++ b/meta-oe/recipes-devtools/mercurial/mercurial_4.4.bb
@@ -3,7 +3,11 @@ HOMEPAGE = "http://mercurial.selenic.com/"
 SECTION = "console/utils"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-DEPENDS = "python-native"
+DEPENDS = "python python-native"
+DEPENDS_class-native = "python-native"
+RDEPENDS_${PN} = "python python-modules"
+
+inherit python-dir
 
 SRC_URI = "https://www.mercurial-scm.org/release/${BP}.tar.gz"
 SRC_URI[md5sum] = "c1d9fad1b7ed7077b0d4ae82e71154db"
@@ -11,7 +15,7 @@ SRC_URI[sha256sum] = "234af4a67565c85923b0a1910c704ab44bcf12f69b8553268720877656
 
 S = "${WORKDIR}/mercurial-${PV}"
 
-inherit native
+BBCLASSEXTEND = "native"
 
 EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
     PREFIX=${prefix}"
@@ -24,3 +28,4 @@ do_install () {
     oe_runmake -e install-bin DESTDIR=${D} PREFIX=${prefix}
 }
 
+FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list