mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
autotools.bbclass: remove intltool.m4 from ${S}
We need to ensure that builds use our intltool.m4 as there is a bug in upstream's macros when the host doesn't have XML::Parser installed. So generalise the m4 pruning logic that we already have from gettext and add intltool.m4. (From OE-Core rev: 342fa2b8407552a962e7c78d0e4de7b2d0b30041) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
63cb0eec1f
commit
77e5a89df3
@@ -238,6 +238,9 @@ autotools_do_configure() {
|
|||||||
# for a package whose autotools are old, on an x86_64 machine, which the old
|
# for a package whose autotools are old, on an x86_64 machine, which the old
|
||||||
# config.sub does not support. Work around this by installing them manually
|
# config.sub does not support. Work around this by installing them manually
|
||||||
# regardless.
|
# regardless.
|
||||||
|
|
||||||
|
PRUNE_M4=""
|
||||||
|
|
||||||
for ac in `find ${S} -ignore_readdir_race -name configure.in -o -name configure.ac`; do
|
for ac in `find ${S} -ignore_readdir_race -name configure.in -o -name configure.ac`; do
|
||||||
rm -f `dirname $ac`/configure
|
rm -f `dirname $ac`/configure
|
||||||
done
|
done
|
||||||
@@ -287,18 +290,22 @@ autotools_do_configure() {
|
|||||||
cp ${STAGING_DATADIR_NATIVE}/gettext/po/remove-potcdate.sin ${S}/po/
|
cp ${STAGING_DATADIR_NATIVE}/gettext/po/remove-potcdate.sin ${S}/po/
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
for i in gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4; do
|
PRUNE_M4="$PRUNE_M4 gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4"
|
||||||
find ${S} -ignore_readdir_race -name $i -delete
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
mkdir -p m4
|
mkdir -p m4
|
||||||
if grep "^[[:space:]]*[AI][CT]_PROG_INTLTOOL" $CONFIGURE_AC >/dev/null; then
|
if grep "^[[:space:]]*[AI][CT]_PROG_INTLTOOL" $CONFIGURE_AC >/dev/null; then
|
||||||
if ! echo "${DEPENDS}" | grep -q intltool-native; then
|
if ! echo "${DEPENDS}" | grep -q intltool-native; then
|
||||||
bbwarn "Missing DEPENDS on intltool-native"
|
bbwarn "Missing DEPENDS on intltool-native"
|
||||||
fi
|
fi
|
||||||
|
PRUNE_M4="$PRUNE_M4 intltool.m4"
|
||||||
bbnote Executing intltoolize --copy --force --automake
|
bbnote Executing intltoolize --copy --force --automake
|
||||||
intltoolize --copy --force --automake
|
intltoolize --copy --force --automake
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for i in $PRUNE_M4; do
|
||||||
|
find ${S} -ignore_readdir_race -name $i -delete
|
||||||
|
done
|
||||||
|
|
||||||
bbnote Executing ACLOCAL=\"$ACLOCAL\" autoreconf --verbose --install --force ${EXTRA_AUTORECONF} $acpaths
|
bbnote Executing ACLOCAL=\"$ACLOCAL\" autoreconf --verbose --install --force ${EXTRA_AUTORECONF} $acpaths
|
||||||
ACLOCAL="$ACLOCAL" autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths || die "autoreconf execution failed."
|
ACLOCAL="$ACLOCAL" autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths || die "autoreconf execution failed."
|
||||||
cd $olddir
|
cd $olddir
|
||||||
|
|||||||
Reference in New Issue
Block a user