diff options
Diffstat (limited to 'meta-oe/recipes-devtools/mercurial/mercurial_6.6.3.bb')
-rw-r--r-- | meta-oe/recipes-devtools/mercurial/mercurial_6.6.3.bb | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/mercurial/mercurial_6.6.3.bb b/meta-oe/recipes-devtools/mercurial/mercurial_6.6.3.bb new file mode 100644 index 0000000000..a312be4aa7 --- /dev/null +++ b/meta-oe/recipes-devtools/mercurial/mercurial_6.6.3.bb | |||
@@ -0,0 +1,37 @@ | |||
1 | SUMMARY = "The Mercurial distributed SCM" | ||
2 | HOMEPAGE = "http://mercurial.selenic.com/" | ||
3 | SECTION = "console/utils" | ||
4 | LICENSE = "GPL-2.0-only" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
6 | |||
7 | DEPENDS = "python3 python3-native python3-setuptools-native" | ||
8 | RDEPENDS:${PN} = "python3 python3-modules" | ||
9 | |||
10 | inherit python3native python3targetconfig | ||
11 | |||
12 | SRC_URI = "https://www.mercurial-scm.org/release/${BP}.tar.gz" | ||
13 | SRC_URI[sha256sum] = "f75d6a4a75823a1b7d713a4967eca2f596f466e58fc6bc06d72642932fd7e307" | ||
14 | |||
15 | S = "${UNPACKDIR}/mercurial-${PV}" | ||
16 | |||
17 | BBCLASSEXTEND = "native" | ||
18 | |||
19 | export LDSHARED = "${CCLD} -shared" | ||
20 | |||
21 | EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \ | ||
22 | PREFIX=${prefix}" | ||
23 | |||
24 | do_configure:append () { | ||
25 | sed -i -e 's:PYTHON?=python:PYTHON=python3:g' ${S}/Makefile | ||
26 | } | ||
27 | |||
28 | do_install () { | ||
29 | oe_runmake -e install-bin DESTDIR=${D} PREFIX=${prefix} | ||
30 | sed -i -e 's:${STAGING_BINDIR_NATIVE}/python3-native/python3:${USRBINPATH}/env python3:g' ${D}${bindir}/hg | ||
31 | } | ||
32 | PACKAGES =+ "${PN}-python" | ||
33 | |||
34 | FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}" | ||
35 | FILES:${PN}-python = "${nonarch_libdir}/${PYTHON_DIR}" | ||
36 | |||
37 | CVE_STATUS[CVE-2022-43410] = "cpe-incorrect: The recipe used in the `meta-openembedded` is a different mercurial package compared to the one which has the CVE issue." | ||