* [PATCH 2/2] automake.inc: bootstrap aclocal.
@ 2010-12-02 0:13 Graham Gower
2010-12-02 3:30 ` Graham Gower
0 siblings, 1 reply; 2+ messages in thread
From: Graham Gower @ 2010-12-02 0:13 UTC (permalink / raw)
To: openembedded-devel
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] automake.inc: bootstrap aclocal.
2010-12-02 0:13 [PATCH 2/2] automake.inc: bootstrap aclocal Graham Gower
@ 2010-12-02 3:30 ` Graham Gower
0 siblings, 0 replies; 2+ messages in thread
From: Graham Gower @ 2010-12-02 3:30 UTC (permalink / raw)
To: openembedded-devel
On 2 December 2010 10:43, Graham Gower <graham.gower@gmail.com> wrote:
> 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" \
This appears to introduce problems when doing a from scratch build.
Automake-native cannot find the perl binary. Adding perl-native to
DEPENDS creates a circular dependency.
Not to mention a whole lot of shebang lines pointing to
/mnt/oe/tmp/sysroots/x86_64-linux/bin/perl get inserted into the cross
automake scripts.
Anyone else got a bright idea how to resolve this?
-Graham
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-02 3:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-02 0:13 [PATCH 2/2] automake.inc: bootstrap aclocal Graham Gower
2010-12-02 3:30 ` Graham Gower
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.