From: Graham Gower <graham.gower@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH 2/2] automake.inc: bootstrap aclocal.
Date: Thu, 02 Dec 2010 10:43:44 +1030 [thread overview]
Message-ID: <4CF6E4B8.5020806@gmail.com> (raw)
Fixes problems seen with micro-uclibc.
NOTE: make -j 12
CDPATH="${ZSH_VERSION+.}:" && cd . && perllibdir="/mnt/oe/tmp/work/mipsel-oe-linux-uclibc/automake-1.11.1-r3.2/automake-1.11.1/lib:./lib" "/mnt/oe/tmp/work/mipsel-oe-linux-uclibc/automake-1.11.1-r3.2/automake-1.11.1/aclocal" --acdir=m4 -I m4
/bin/sh: /mnt/oe/tmp/work/mipsel-oe-linux-uclibc/automake-1.11.1-r3.2/automake-1.11.1/aclocal: No such file or directory
make: *** [aclocal.m4] Error 127
FATAL: oe_runmake failed
Signed-off-by: Graham Gower <graham.gower@gmail.com>
---
recipes/automake/automake.inc | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 insertions(+), 1 deletions(-)
diff --git a/recipes/automake/automake.inc b/recipes/automake/automake.inc
index e378c04..743c140 100644
--- a/recipes/automake/automake.inc
+++ b/recipes/automake/automake.inc
@@ -29,17 +29,46 @@ RDEPENDS_automake += "\
perl-module-text-parsewords \
perl-module-vars "
SRC_URI = "${GNU_MIRROR}/automake/automake-${PV}.tar.bz2;name=automake"
-INC_PR = "r3"
+INC_PR = "r4"
AUTOMAKE_API = "${@".".join(bb.data.getVar("PV",d,1).split(".")[0:2])}"
inherit autotools
FILES_${PN} += "${datadir}/automake* ${datadir}/aclocal*"
+dosubst () {
+ ver=`echo "${PV}" | sed -e 's/^\([[0-9]]*\.[[0-9]]*[[a-z]]*\).*$/\1/'`
+ rm -f $2
+ in=`echo $1 | sed 's,^.*/,,'`
+ sed -e "s%@APIVERSION@%${ver}%g" \
+ -e "s%@PACKAGE@%${PN}%g" \
+ -e "s%@PERL@%${STAGING_BINDIR_NATIVE}/perl%g" \
+ -e "s%@PERL_THREADS@%1%g" \
+ -e "s%@SHELL@%/bin/sh%g" \
+ -e "s%@VERSION@%${PV}%g" \
+ -e "s%@datadir@%${datadir}%g" \
+ -e "s%@PATH_SEPARATOR@%:%g" \
+ -e "s%@configure_input@%Generated from \$in.%g" \
+ $1 > $2
+ chmod 755 $2
+}
+
do_configure_prepend () {
+
+ # See ${S}/bootstrap
+ dosubst lib/Automake/Config.in lib/Automake/Config.pm
+ dosubst aclocal.in aclocal
+ dosubst m4/amversion.in m4/amversion.m4
+ dosubst automake.in automake
+
if ${@['true', 'false'][bb.data.inherits_class('native', d)]}
then
export ac_cv_path_PERL="${ac_cv_path_PERL=${bindir}/perl}"
+
+ # Don't try to build the example (amhello), its ./configure
+ # is invoked incorrectly.
+ sed -i -e 's|dist_doc_DATA = .*$|dist_doc_DATA =|' \
+ ${S}/doc/Makefile.am
fi
}
--
1.7.1
next reply other threads:[~2010-12-02 0:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-02 0:13 Graham Gower [this message]
2010-12-02 3:30 ` [PATCH 2/2] automake.inc: bootstrap aclocal Graham Gower
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CF6E4B8.5020806@gmail.com \
--to=graham.gower@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox