A few miscellaneous improvements from Mentor
v2 cover A few miscellaneous improvements from Mentor
From: Christopher Larson <[email protected]>
The following changes since commit b4f208f418d18f2a4e78a56bebacef481061d917:
tar: don't mv tar for nativesdk (2013-06-10 18:06:33 +0100)
are available in the git repository at:
https://github.com/kergoth/oe-core.git misc-improvements
Christopher Larson (4):
connman: use PACKAGECONFIG for WISPr support
packagegroup-base-vfat: include dosfsprogs insane.bbclass: quiet package errors not in *_QA
libnewt: split python module into libnewt-python
meta/classes/insane.bbclass | 6 ++- meta/recipes-connectivity/connman/connman.inc | 10 ++-- .../packagegroups/packagegroup-base.bb | 3 +- meta/recipes-extended/newt/libnewt-0.52.14.inc | 45 ++++++++++++++++++ .../newt/libnewt-python_0.52.14.bb | 26 +++++++++++ meta/recipes-extended/newt/libnewt_0.52.14.bb | 54 +--------------------- 6 files changed, 86 insertions(+), 58 deletions(-) create mode 100644 meta/recipes-extended/newt/libnewt-0.52.14.inc create mode 100644 meta/recipes-extended/newt/libnewt-python_0.52.14.bb
Signature · 1 line
1.8.3
PATCH v2 1/4 connman: use PACKAGECONFIG for WISPr support
From: Christopher Larson <[email protected]>
--- meta/recipes-connectivity/connman/connman.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
meta/recipes-connectivity/connman/connman.inc +7 -3
@@ -13,7 +13,7 @@ LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ file://src/main.c;beginline=1;endline=20;md5=d6a1ac98a6791c5294e8a7f176ecd66d" -DEPENDS = "dbus glib-2.0 ppp iptables gnutls" +DEPENDS = "dbus glib-2.0 ppp iptables" INC_PR = "r20"
@@ -32,7 +32,7 @@ EXTRA_OECONF += "\ ${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdunitdir=${systemd_unitdir}/system/', '--with-systemdunitdir=', d)} \ " -PACKAGECONFIG ??= "\ +PACKAGECONFIG ??= "wispr \ ${@base_contains('DISTRO_FEATURES', 'wifi','wifi', '', d)} \ ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluetooth', '', d)} \ ${@base_contains('DISTRO_FEATURES', '3g','3g', '', d)} \
@@ -50,6 +50,8 @@ PACKAGECONFIG[openvpn] = "--enable-openvpn,--disable-openvpn,,openvpn" PACKAGECONFIG[vpnc] = "--enable-vpnc,--disable-vpnc,,vpnc" PACKAGECONFIG[l2tp] = "--enable-l2tp,--disable-l2tp,,xl2tpd" PACKAGECONFIG[pptp] = "--enable-pptp,--disable-pptp,,pptp-linux" +# WISPr support for logging into hotspots, requires TLS +PACKAGECONFIG[wispr] = "--enable-wispr,--disable-wispr,gnutls," INITSCRIPT_NAME = "connman" INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ."
@@ -89,7 +91,9 @@ do_install_append() { install -d ${D}${bindir} install -m 0755 ${S}/tools/*-test ${D}${bindir} - install -m 0755 ${S}/tools/wispr ${D}${bindir} + if [ -e ${S}/tools/wispr ]; then + install -m 0755 ${S}/tools/wispr ${D}${bindir} + fi install -m 0755 ${B}/client/connmanctl ${D}${bindir} # We don't need to package an empty directory
Signature · 1 line
1.8.3
PATCH v2 2/4 packagegroup-base-vfat: include dosfsprogs
In reply to Christopher LarsonFrom: Christopher Larson <[email protected]>
The ext2 group includes e2fsprogs, so this is consistent and should be appropriate, I think.
--- meta/recipes-core/packagegroups/packagegroup-base.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-core/packagegroups/packagegroup-base.bb +2 -1
@@ -179,7 +179,8 @@ RRECOMMENDS_packagegroup-base-vfat = "\ kernel-module-msdos \ kernel-module-vfat \ kernel-module-nls-iso8859-1 \ - kernel-module-nls-cp437" + kernel-module-nls-cp437 \ + dosfsprogs" SUMMARY_packagegroup-base-alsa = "ALSA sound support" RDEPENDS_packagegroup-base-alsa = "\
Signature · 1 line
1.8.3
PATCH v2 3/4 insane.bbclass: quiet package errors not in *_QA
In reply to Christopher LarsonFrom: Christopher Larson <[email protected]>
Currently, if a package QA type from package.bbclass is not listed in ERROR_QA, it gets shown, regardless of whether it's in WARN_QA. This differs from the behavior of the rest of the QA handling (which doesn't call package_qa_handle_error at all if it's in neither _QA variable), and is nonintuitive. Change this to use bb.note() if it's listed neither in ERROR_QA nor WARN_QA, so it ends up in the task logs, but doesn't clutter up the user's output.
--- meta/classes/insane.bbclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
meta/classes/insane.bbclass +4 -2
@@ -143,9 +143,11 @@ def package_qa_handle_error(error_class, error_msg, d): bb.error("QA Issue: %s" % error_msg) d.setVar("QA_SANE", False) return False - else: + elif error_class in (d.getVar("WARN_QA", True) or "").split(): bb.warn("QA Issue: %s" % error_msg) - return True + else: + bb.note("QA Issue: %s" % error_msg) + return True QAPATHTEST[libexec] = "package_qa_check_libexec" def package_qa_check_libexec(path,name, d, elf, messages):
Signature · 1 line
1.8.3
PATCH v2 4/4 libnewt: split python module into libnewt-python
In reply to Christopher LarsonFrom: Christopher Larson <[email protected]>
This is useful as it avoids pulling python into a build just to build chkconfig. The python recipe uses the libnewt installed in the sysroot by the main package, so there's little loss of build time, other than the additional unpack/patch.
--- meta/recipes-extended/newt/libnewt-0.52.14.inc | 45 ++++++++++++++++++ .../newt/libnewt-python_0.52.14.bb | 26 +++++++++++ meta/recipes-extended/newt/libnewt_0.52.14.bb | 54 +--------------------- 3 files changed, 73 insertions(+), 52 deletions(-) create mode 100644 meta/recipes-extended/newt/libnewt-0.52.14.inc create mode 100644 meta/recipes-extended/newt/libnewt-python_0.52.14.bb
meta/recipes-extended/newt/libnewt-0.52.14.inc new file +45 -0
@@ -0,0 +1,45 @@ +SUMMARY = "A library for text mode user interfaces" + +DESCRIPTION = "Newt is a programming library for color text mode, widget based user \ +interfaces. Newt can be used to add stacked windows, entry widgets, \ +checkboxes, radio buttons, labels, plain text fields, scrollbars, \ +etc., to text mode user interfaces. This package also contains the \ +shared library needed by programs built with newt, as well as a \ +/usr/bin/dialog replacement called whiptail. Newt is based on the \ +slang library." + +HOMEPAGE = "https://fedorahosted.org/newt/" +SECTION = "libs" + +LICENSE = "LGPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605" + +# slang needs to be >= 2.2 +DEPENDS = "slang popt" + +PR = "r2" + +SRC_URI = "https://fedorahosted.org/releases/n/e/newt/newt-${PV}.tar.gz \ + file://remove_slang_include.patch \ + file://fix_SHAREDDIR.patch \ + file://cross_ar.patch \ + file://fix_python_fpic.patch" + +SRC_URI[md5sum] = "eb78c6bb658b92ec7198908b5b8d0e37" +SRC_URI[sha256sum] = "f70f4f58baa60388ddf2e39249ffb00898fb40f2b2767e42e2ab51fe4b40978e" + +S = "${WORKDIR}/newt-${PV}" + +EXTRA_OECONF = "--without-tcl --without-python" + +inherit autotools + +export STAGING_INCDIR +export STAGING_LIBDIR + +export BUILD_SYS +export HOST_SYS + +do_configure_prepend() { + sh autogen.sh +}
meta/recipes-extended/newt/libnewt-python_0.52.14.bb new file +26 -0
@@ -0,0 +1,26 @@ +require recipes-extended/newt/libnewt-${PV}.inc + +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 "LIBNEWTSH=${STAGING_LIBDIR}/libnewt.so.$VERSION" _snackmodule.so +} + +do_install () { + install -d ${D}${PYTHON_SITEPACKAGES_DIR} + install -m 0755 ${PYTHON_DIR}/_snackmodule.so ${D}${PYTHON_SITEPACKAGES_DIR}/ + install -m 0644 snack.py ${D}${PYTHON_SITEPACKAGES_DIR}/ +} + + +FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR}/*" +FILES_${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/"
meta/recipes-extended/newt/libnewt_0.52.14.bb +2 -52
56 lines not on this page · raw message
Signature · 1 line
1.8.3