From patchwork Wed Nov 27 07:28:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 180270 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp5741912ilf; Tue, 26 Nov 2019 23:29:26 -0800 (PST) X-Google-Smtp-Source: APXvYqyo+ibV+AnfPd7jupoc3FiL6omPiABV1jxIuu70Kj/i+GfKqg5kHg/6BYk/AWsth1hDyDRi X-Received: by 2002:a62:ce41:: with SMTP id y62mr45848714pfg.34.1574839766289; Tue, 26 Nov 2019 23:29:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574839766; cv=none; d=google.com; s=arc-20160816; b=aoJbvaI6rilWohUBDv9YpWSCD8BF1qx9iPupnbozkQR56B7A5Dd1IxJ1HL+W7RF3jA kgSbaEamUQ2kA+bPD25UgWad7OFa8LqrU7PzSNOlT6+CEGuFPAGwM0z2kE64/nuYdtx0 hUzwBRJUpAvjQizYSvE1Yaw1G1aSLtb+482VlJcJDlDivMvBX9NqeZDkeA6t7dAzIh3F V9Y4aXA0hWKikoVa0PPmg4auSZ49OFkrxdanp19uANx7IOTNYqkZXgumG8HVkI/WGqZR 0E4I3MqU8LeRSAVjyizuETVMGFLq/ZqUi7CElP08spf1QyOHyiZLyZWM8AD0L4c/umgd coNQ== 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:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=A6MSBVRj6casf1OSdiCH9n7sEuc/0QGmeK/xC1BOoi4=; b=qRyuAJz2p5JJ8pW3Gj2QT6//i49yKwc2GC3I9nn+PGjNmJG5X3GBWfoJvI6RVQwW81 8VD6r0+D1ypOlODulj+vl636ZOUZGalklngIrNuaqTd0/D+QHnhBx8Cyf+Rz4PzNwUG1 29syasejxAPnJW1ywVrwZ6P/3V8YsQu4R7viTDpw9Pvb0xvlkvQXnQzSrio+L7zNeg8I ojdF4jYLvIQNR/sHtq3ZHU5/zglyYdKNAp+GHWFOgaszjaD8M6H+3ZGt98BAFtGTfFAp CoKHCor1iXTMILMY3JPR443pmS3J8NB2NbZcyCIz1ORkyBycHXLUY78NBSpbsuoffxg2 ypow== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=PtsIVdlM; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-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 x8si13228507plr.171.2019.11.26.23.29.26; Tue, 26 Nov 2019 23:29:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-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=PtsIVdlM; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-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 56B007FA2B; Wed, 27 Nov 2019 07:29:23 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by mail.openembedded.org (Postfix) with ESMTP id 981A67F89C for ; Wed, 27 Nov 2019 07:29:02 +0000 (UTC) Received: by mail-pg1-f182.google.com with SMTP id b1so10337861pgq.10 for ; Tue, 26 Nov 2019 23:29:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Gwqd80OxUwxd1Wzt3oKrKXCU/ptOXeopIQFdohJ4ABQ=; b=PtsIVdlMR3qu7FpaFZ/xj89BL5Fg5BQ179tiBBsBa2UeAOC/TTp9FQLTDGOGNY5lzg K49i+H/leWXY93vCzeogMNE/jLIjejT5rkHTEB3Cpf1NGcGSDbKdAfcCyiK9dMlIZXBg lJkRntykeuoZzx04em/btuaZBT/w+qp3hQwhXZ+G8pfFchM+aDPxxbUcKnSyqeAVrY+u /vFBwNuWZn2FWoPel928pTX07++nuPesvSpxFyjz5mqgSUNfDLck5A5kvB1yJYsatoqy yLWw39wGT0U13ZXAR0HD3UoZjjpoDKDBNjOpCxXUNC+jYXR3KwfXxY/MbwS5YntKtb7d zkKg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Gwqd80OxUwxd1Wzt3oKrKXCU/ptOXeopIQFdohJ4ABQ=; b=ACqEq2JG2LRIR1r42qJwPislWPqMXWcMKJ7PSlVCjUCXhz+1g/ZKtBNDwdDKzeNdfL dSrOeOY8Vkm5d3hI5BDL6EJWTt23CDYSegzuuuxSlxOIlZ3IfPQYIif3FzH6hXaPLAxi gpMdElAGLv9xujfIN+d8nBzs2wwArbNmE9Cd4DNA6WwNBkoHXAfXnUoTP5tVtmBEMM1V flSUqYgBjo9SlYAvpBnq335o2aR7zQS39ccwSLQd30vgKPWMrnEWsJZbdT+8AUkzWiKm QL8elY6FPDLIQbaU8P2b7+Tct3aHaInsbQ+NAldz19xCi/cPuUkuP/cpkh/PhAdnBUD0 x8VQ== X-Gm-Message-State: APjAAAWUrNSYaotRmHSHGjI8rQROFfIdPgWHJW0zHHFJWFvlszsxvBeR b7dHAIWx7JPVIVmPPe8Xv4i3N2FoW10= X-Received: by 2002:aa7:8006:: with SMTP id j6mr47428122pfi.182.1574839743190; Tue, 26 Nov 2019 23:29:03 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:1c20::e439]) by smtp.gmail.com with ESMTPSA id j14sm1853703pgs.57.2019.11.26.23.29.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2019 23:29:02 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 26 Nov 2019 23:28:48 -0800 Message-Id: <20191127072848.785911-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127072848.785911-1-raj.khem@gmail.com> References: <20191127072848.785911-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH v3] mercurial: Upgrade to 5.2 and switch to py3 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- v2: Fix python path during target build v3: Separate target specific do_install, since this was making native not work .../{mercurial_4.6.1.bb => mercurial_5.2.bb} | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) rename meta-oe/recipes-devtools/mercurial/{mercurial_4.6.1.bb => mercurial_5.2.bb} (50%) -- 2.24.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-devtools/mercurial/mercurial_4.6.1.bb b/meta-oe/recipes-devtools/mercurial/mercurial_5.2.bb similarity index 50% rename from meta-oe/recipes-devtools/mercurial/mercurial_4.6.1.bb rename to meta-oe/recipes-devtools/mercurial/mercurial_5.2.bb index 13710aaea3..18ffb23d78 100644 --- a/meta-oe/recipes-devtools/mercurial/mercurial_4.6.1.bb +++ b/meta-oe/recipes-devtools/mercurial/mercurial_5.2.bb @@ -3,29 +3,36 @@ HOMEPAGE = "http://mercurial.selenic.com/" SECTION = "console/utils" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" -DEPENDS = "python python-native" -DEPENDS_class-native = "python-native" -RDEPENDS_${PN} = "python python-modules" -inherit python-dir +DEPENDS = "python3 python3-native" +DEPENDS_class-native = "python3-native" +RDEPENDS_${PN} = "python3 python3-modules" + +inherit python3native SRC_URI = "https://www.mercurial-scm.org/release/${BP}.tar.gz" -SRC_URI[md5sum] = "f9b2e4a3b5901ef744fa3abe4196e97e" -SRC_URI[sha256sum] = "89fa8ecbc8aa6e48e98f9803a1683ba91367124295dba2407b28c34ca621108d" +SRC_URI[md5sum] = "9ba9d59157c002db8d8cab680de08eb5" +SRC_URI[sha256sum] = "ff030e923f03ee15c91191996fcb099bfcfa60c7df263be227f67b6a65d36194" S = "${WORKDIR}/mercurial-${PV}" BBCLASSEXTEND = "native" +export LDSHARED="${CCLD} -shared" + EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \ PREFIX=${prefix}" do_configure_append () { - sed -i -e 's:PYTHON=python:PYTHON=${STAGING_BINDIR_NATIVE}/python-native/python:g' ${S}/Makefile + sed -i -e 's:PYTHON?=python:PYTHON?=${STAGING_BINDIR_NATIVE}/python3-native/python3:g' ${S}/Makefile } do_install () { oe_runmake -e install-bin DESTDIR=${D} PREFIX=${prefix} } +do_install_append_class-target () { + sed -i -e 's:${STAGING_BINDIR_NATIVE}/python3-native/python3:${USRBINPATH}/env python3:g' ${D}${bindir}/hg +} FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}" +