* [PATCH v2 0/4] A few miscellaneous improvements from Mentor
@ 2013-06-11 1:49 Christopher Larson
2013-06-11 1:49 ` [PATCH v2 1/4] connman: use PACKAGECONFIG for WISPr support Christopher Larson
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Christopher Larson @ 2013-06-11 1:49 UTC (permalink / raw)
To: openembedded-core; +Cc: Christopher Larson
From: Christopher Larson <chris_larson@mentor.com>
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
--
1.8.3
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/4] connman: use PACKAGECONFIG for WISPr support
2013-06-11 1:49 [PATCH v2 0/4] A few miscellaneous improvements from Mentor Christopher Larson
@ 2013-06-11 1:49 ` Christopher Larson
2013-06-11 1:49 ` [PATCH v2 2/4] packagegroup-base-vfat: include dosfsprogs Christopher Larson
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Christopher Larson @ 2013-06-11 1:49 UTC (permalink / raw)
To: openembedded-core; +Cc: Christopher Larson
From: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
meta/recipes-connectivity/connman/connman.inc | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc
index 0eb5865..f250d78 100644
--- a/meta/recipes-connectivity/connman/connman.inc
+++ b/meta/recipes-connectivity/connman/connman.inc
@@ -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
--
1.8.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 2/4] packagegroup-base-vfat: include dosfsprogs
2013-06-11 1:49 [PATCH v2 0/4] A few miscellaneous improvements from Mentor Christopher Larson
2013-06-11 1:49 ` [PATCH v2 1/4] connman: use PACKAGECONFIG for WISPr support Christopher Larson
@ 2013-06-11 1:49 ` Christopher Larson
2013-06-11 1:49 ` [PATCH v2 3/4] insane.bbclass: quiet package errors not in *_QA Christopher Larson
2013-06-11 1:49 ` [PATCH v2 4/4] libnewt: split python module into libnewt-python Christopher Larson
3 siblings, 0 replies; 5+ messages in thread
From: Christopher Larson @ 2013-06-11 1:49 UTC (permalink / raw)
To: openembedded-core; +Cc: Christopher Larson
From: Christopher Larson <chris_larson@mentor.com>
The ext2 group includes e2fsprogs, so this is consistent and should be
appropriate, I think.
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
meta/recipes-core/packagegroups/packagegroup-base.bb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-core/packagegroups/packagegroup-base.bb b/meta/recipes-core/packagegroups/packagegroup-base.bb
index 799e12a..061c1a7 100644
--- a/meta/recipes-core/packagegroups/packagegroup-base.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-base.bb
@@ -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 = "\
--
1.8.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 3/4] insane.bbclass: quiet package errors not in *_QA
2013-06-11 1:49 [PATCH v2 0/4] A few miscellaneous improvements from Mentor Christopher Larson
2013-06-11 1:49 ` [PATCH v2 1/4] connman: use PACKAGECONFIG for WISPr support Christopher Larson
2013-06-11 1:49 ` [PATCH v2 2/4] packagegroup-base-vfat: include dosfsprogs Christopher Larson
@ 2013-06-11 1:49 ` Christopher Larson
2013-06-11 1:49 ` [PATCH v2 4/4] libnewt: split python module into libnewt-python Christopher Larson
3 siblings, 0 replies; 5+ messages in thread
From: Christopher Larson @ 2013-06-11 1:49 UTC (permalink / raw)
To: openembedded-core; +Cc: Christopher Larson
From: Christopher Larson <chris_larson@mentor.com>
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.
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
meta/classes/insane.bbclass | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index c091005..2b30538 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -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):
--
1.8.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 4/4] libnewt: split python module into libnewt-python
2013-06-11 1:49 [PATCH v2 0/4] A few miscellaneous improvements from Mentor Christopher Larson
` (2 preceding siblings ...)
2013-06-11 1:49 ` [PATCH v2 3/4] insane.bbclass: quiet package errors not in *_QA Christopher Larson
@ 2013-06-11 1:49 ` Christopher Larson
3 siblings, 0 replies; 5+ messages in thread
From: Christopher Larson @ 2013-06-11 1:49 UTC (permalink / raw)
To: openembedded-core; +Cc: Christopher Larson
From: Christopher Larson <chris_larson@mentor.com>
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.
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
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
diff --git a/meta/recipes-extended/newt/libnewt-0.52.14.inc b/meta/recipes-extended/newt/libnewt-0.52.14.inc
new file mode 100644
index 0000000..262610c
--- /dev/null
+++ b/meta/recipes-extended/newt/libnewt-0.52.14.inc
@@ -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
+}
diff --git a/meta/recipes-extended/newt/libnewt-python_0.52.14.bb b/meta/recipes-extended/newt/libnewt-python_0.52.14.bb
new file mode 100644
index 0000000..dd3ac63
--- /dev/null
+++ b/meta/recipes-extended/newt/libnewt-python_0.52.14.bb
@@ -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/"
diff --git a/meta/recipes-extended/newt/libnewt_0.52.14.bb b/meta/recipes-extended/newt/libnewt_0.52.14.bb
index 54da15d..155114e 100644
--- a/meta/recipes-extended/newt/libnewt_0.52.14.bb
+++ b/meta/recipes-extended/newt/libnewt_0.52.14.bb
@@ -1,54 +1,4 @@
-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 python"
-
-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"
-
-inherit autotools pythonnative python-dir
-
-EXTRA_OEMAKE = "PYTHONVERS=${PYTHON_DIR}"
-
-export STAGING_INCDIR
-export STAGING_LIBDIR
-
-export BUILD_SYS
-export HOST_SYS
-
-PACKAGES_prepend = "whiptail ${PN}-python "
-
-do_configure_prepend() {
- ( cd ${S}; sh autogen.sh )
-}
+require recipes-extended/newt/${BPN}-${PV}.inc
+PACKAGES =+ "whiptail"
FILES_whiptail = "${bindir}/whiptail"
-FILES_${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/"
-FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*"
-FILES_${PN}-staticdev = "${libdir}/*.a"
--
1.8.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-06-11 1:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-11 1:49 [PATCH v2 0/4] A few miscellaneous improvements from Mentor Christopher Larson
2013-06-11 1:49 ` [PATCH v2 1/4] connman: use PACKAGECONFIG for WISPr support Christopher Larson
2013-06-11 1:49 ` [PATCH v2 2/4] packagegroup-base-vfat: include dosfsprogs Christopher Larson
2013-06-11 1:49 ` [PATCH v2 3/4] insane.bbclass: quiet package errors not in *_QA Christopher Larson
2013-06-11 1:49 ` [PATCH v2 4/4] libnewt: split python module into libnewt-python Christopher Larson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox