[yocto] [meta-mono] [PATCH 4/4] mono-xsp-3.x.inc: use autogen.sh

Richard Tollerton rich.tollerton at ni.com
Thu Jul 16 10:22:20 PDT 2015


The following build failure was observed:

| Makefile.am:7: error: BUILD_DOCS does not appear in AM_CONDITIONAL

This occurs because aclocal must be called with "-I build/m4/shamrock -I
build/m4/shave", as is done in autogen.sh.

I tried adding those includes to EXTRA_AUTORECONF or acpaths. That seems
to only partially solve the problem, as MONO_MODULE remains undefined
and unsubstituted in configure, leading to:

| xsp-3.0.11/configure: line 2651: syntax error near unexpected token `MONO_MODULE,'

This might have something to do with the `automake --gnu` option in
autogen.sh. I don't know for certain

In any case, merely calling autogen.sh does work. This patch implements
that, using autotools.bbclass:oe_runconf() as a template.

Signed-off-by: Richard Tollerton <rich.tollerton at ni.com>
---
 recipes-mono/mono-xsp/mono-xsp-3.x.inc | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/recipes-mono/mono-xsp/mono-xsp-3.x.inc b/recipes-mono/mono-xsp/mono-xsp-3.x.inc
index ffe0a28..77af516 100644
--- a/recipes-mono/mono-xsp/mono-xsp-3.x.inc
+++ b/recipes-mono/mono-xsp/mono-xsp-3.x.inc
@@ -9,6 +9,17 @@ inherit autotools-brokensep
 
 SRC_URI = "https://github.com/mono/xsp/archive/${PV}.tar.gz"
 
+do_configure () {
+    set +e
+    ${CACHED_CONFIGUREVARS} ${S}/autogen.sh --verbose ${CONFIGUREOPTS} ${EXTRA_OECONF}
+    if [ "$?" != "0" ]; then
+	echo "Configure failed. The contents of all config.log files follows to aid debugging"
+	find ${S} -name config.log -print -exec cat {} \;
+	bbfatal "oe_runconf failed"
+    fi
+    set -e
+}
+
 S = "${WORKDIR}/xsp-${PV}"
 
 PACKAGES += "${PN}-test \
-- 
2.4.4




More information about the yocto mailing list