Skip to contentSkip to conversation

js: Fix missing aclocal files for configure

PATCH New Richard Purdie 1 participant 1 message Mar 6, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 js: Fix missing aclocal files for configure

The aclocal copy is done as a prefunc so we need to ensure configure.ac is available before those functions run. The easiest way is inserting an extra task.

---

meta/recipes-support/js/js_1.7.0+1.8.0rc1.bb +2 -1
index e320504..e466354 100644
@@ -23,10 +23,11 @@ S = "${WORKDIR}/js/src"
 # don't bother with automake
 inherit autotools-brokensep
 
-do_configure_prepend() {
+do_extraunpack() {
 	cp -f ${WORKDIR}/configure.ac ${S}
 	cp -f ${WORKDIR}/jsautocfg.h ${S}
 }
+addtask extraunpack before do_configure after do_unpack
 
 EXTRA_OEMAKE = "'CC=${CC}' 'LD=${LD}' 'XCFLAGS=${CFLAGS}' 'XLDFLAGS=${LDFLAGS} -Wl,-soname=libjs' \
                 'BUILD_CC=${BUILD_CC}' 'BUILD_CFLAGS=${BUILD_CFLAGS}' 'BUILD_LDFLAGS=${BUILD_LDFLAGS}'"