mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-30 22:01:29 +00:00
mercurial-native: fix install
else host python is used leading to the following error if the host doesn't have the python headers installed : | Python headers are required to build Mercurial | make: *** [build] Error 1 Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
parent
b622bac276
commit
e23c48c67e
@ -4,7 +4,7 @@ SECTION = "console/utils"
|
|||||||
LICENSE = "GPLv2"
|
LICENSE = "GPLv2"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||||
DEPENDS = "python-native"
|
DEPENDS = "python-native"
|
||||||
PR = "r1"
|
PR = "r2"
|
||||||
|
|
||||||
SRC_URI = "http://mercurial.selenic.com/release/mercurial-${PV}.tar.gz"
|
SRC_URI = "http://mercurial.selenic.com/release/mercurial-${PV}.tar.gz"
|
||||||
SRC_URI[md5sum] = "d4842129fa2732eb6ed1180467bc32e2"
|
SRC_URI[md5sum] = "d4842129fa2732eb6ed1180467bc32e2"
|
||||||
@ -17,6 +17,10 @@ inherit native
|
|||||||
EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
|
EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
|
||||||
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} PREFIX=${prefix}"
|
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} PREFIX=${prefix}"
|
||||||
|
|
||||||
|
do_configure_append () {
|
||||||
|
sed -i -e 's:PYTHON=python:PYTHON=${STAGING_BINDIR_NATIVE}/python-native/python:g' ${S}/Makefile
|
||||||
|
}
|
||||||
|
|
||||||
do_install () {
|
do_install () {
|
||||||
oe_runmake -e install-bin DESTDIR=${D} PREFIX=${prefix}
|
oe_runmake -e install-bin DESTDIR=${D} PREFIX=${prefix}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user