From e239006ebf2c218dc06a02e733cd27bda5535a89 Mon Sep 17 00:00:00 2001 From: Jeremy Laine Date: Tue, 5 Aug 2008 11:21:56 +0000 Subject: oestats-client.bbclass: display information URL for failed builds/tasks (Closes: #4475) --- classes/oestats-client.bbclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'classes') diff --git a/classes/oestats-client.bbclass b/classes/oestats-client.bbclass index 968aa42c3b..94fdbf41c4 100644 --- a/classes/oestats-client.bbclass +++ b/classes/oestats-client.bbclass @@ -100,6 +100,8 @@ def oestats_stop(server, d, failures): response = oestats_send(server, "/builds/%s/" % id, { 'status': status, }) + if status == 'Failed': + bb.note("oestats: build failed, see http://%s%s" % (server,response)) except: bb.note("oestats: error stopping build") @@ -124,7 +126,6 @@ def oestats_task(server, d, task, status): logs = glob.glob("%s/log.%s.*" % (bb.data.getVar('T', d, True), task)) if len(logs) > 0: log = logs[0] - bb.note("oestats: sending log file : %s" % log) files['log'] = { 'filename': 'log.txt', 'content': file(log).read(), @@ -149,6 +150,8 @@ def oestats_task(server, d, task, status): # send report try: response = oestats_send(server, "/tasks/", vars, files) + if status == 'Failed': + bb.note("oestats: task failed, see http://%s%s" % (server, response)) except: bb.note("oestats: error sending task, disabling stats") oestats_setid(d, "") -- cgit v1.2.3 From 51ace4e1f06271a4b6b18ed8b4fc9e1ee65059a3 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Wed, 6 Aug 2008 08:56:34 +0000 Subject: gnome.bbclass: use AUTOTOOLS_STAGE_PKGCONFIG = "1" --- classes/gnome.bbclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'classes') diff --git a/classes/gnome.bbclass b/classes/gnome.bbclass index b29d86cefd..133859d5a0 100644 --- a/classes/gnome.bbclass +++ b/classes/gnome.bbclass @@ -13,6 +13,8 @@ FILES_${PN} += "${datadir}/application-registry ${datadir}/mime-info \ inherit autotools pkgconfig gconf +AUTOTOOLS_STAGE_PKGCONFIG = "1" + gnome_stage_includes() { autotools_stage_includes } -- cgit v1.2.3 From 2a94d82cf7747ae14e567cec2ef2366be0e25244 Mon Sep 17 00:00:00 2001 From: Graeme Gregory Date: Wed, 6 Aug 2008 09:41:26 +0000 Subject: cpan.bbclass : more generic solution to perl module build problems --- classes/cpan.bbclass | 1 + 1 file changed, 1 insertion(+) (limited to 'classes') diff --git a/classes/cpan.bbclass b/classes/cpan.bbclass index ca5303d97f..005e7cc0e9 100644 --- a/classes/cpan.bbclass +++ b/classes/cpan.bbclass @@ -10,6 +10,7 @@ export PERLCONFIGTARGET = "${@is_target(d)}" # Env var which tells perl where the perl include files are export PERL_INC = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}/CORE" +export PERL_ARCHLIB = "${STAGING_LIBDIR_NATIVE}/perl/${@get_perl_version(d)}" cpan_do_configure () { yes '' | perl Makefile.PL ${EXTRA_CPANFLAGS} -- cgit v1.2.3 From 839acf519ef0d68d6b253a24556d0fb7ed02835d Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Fri, 8 Aug 2008 13:03:42 +0000 Subject: autotools.bbclass: check if pkgconfig dir exists before trying to copy out pkgconfig files * this is needed because e.g. not all gst recipes have .pc files, be we do want to install the ones that are present --- classes/autotools.bbclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'classes') diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass index 7137876a93..b4e78f8118 100644 --- a/classes/autotools.bbclass +++ b/classes/autotools.bbclass @@ -215,8 +215,10 @@ autotools_stage_all() { # b) packaged staging will fix that anyways. :M: if [ "${AUTOTOOLS_STAGE_PKGCONFIG}" = "1" ] then - echo "cp -f ${STAGE_TEMP}/${libdir}/pkgconfig/*.pc ${STAGING_LIBDIR}/pkgconfig/" - cp -f ${STAGE_TEMP}/${libdir}/pkgconfig/*.pc ${STAGING_LIBDIR}/pkgconfig/ + if [ -e ${STAGE_TEMP}/${libdir}/pkgconfig/ ] ; then + echo "cp -f ${STAGE_TEMP}/${libdir}/pkgconfig/*.pc ${STAGING_LIBDIR}/pkgconfig/" + cp -f ${STAGE_TEMP}/${libdir}/pkgconfig/*.pc ${STAGING_LIBDIR}/pkgconfig/ + fi fi rm -rf ${STAGE_TEMP}/${mandir} || true rm -rf ${STAGE_TEMP}/${infodir} || true -- cgit v1.2.3