mirror of
https://git.yoctoproject.org/poky
synced 2026-05-21 23:27:55 +02:00
Var LIBNEWTSH which points to libnewt.so in STAGING_LIBDIR is passed to make. But during do_compile, LIBNEWTSH is rebuilt. Check the log that gcc populates file into STAGING_LIBDIR directly: i586-poky-linux-gcc -m32 -march=i586 --sysroot=/poky/builds/build/tmp/sysroots/qemux86 -shared -o /poky/builds/build/tmp/sysroots/qemux86/usr/lib/libnewt.so.0.52.18 ... It is not a proper operation export file into STAGING_LIBDIR during compile. So remove the var LIBNEWTSH. (From OE-Core rev: 9963b22acacbe49bffd7ebdeb72c45280e687385) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
28 lines
655 B
BlitzBasic
28 lines
655 B
BlitzBasic
require recipes-extended/newt/libnewt_${PV}.bb
|
|
|
|
SUMMARY .= " - python"
|
|
DEPENDS = "libnewt python"
|
|
RDEPENDS_${PN} += "python-core"
|
|
|
|
inherit pythonnative python-dir
|
|
|
|
EXTRA_OECONF += "--with-python"
|
|
EXTRA_OEMAKE += "PYTHONVERS=${PYTHON_DIR}"
|
|
|
|
|
|
do_compile () {
|
|
VERSION="$(sed -n 's/^VERSION = //p' Makefile)"
|
|
oe_runmake _snack.so
|
|
}
|
|
|
|
do_install () {
|
|
install -d ${D}${PYTHON_SITEPACKAGES_DIR}
|
|
install -m 0755 ${PYTHON_DIR}/_snack.so ${D}${PYTHON_SITEPACKAGES_DIR}/
|
|
install -m 0644 snack.py ${D}${PYTHON_SITEPACKAGES_DIR}/
|
|
}
|
|
|
|
PACKAGES_remove = "whiptail"
|
|
|
|
FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR}/*"
|
|
FILES_${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/"
|