]> code.ossystems Code Review - openembedded-core.git/commitdiff
autotools: don't wipe gettext macros from gettext
authorRoss Burton <ross.burton@intel.com>
Tue, 9 Jan 2018 00:21:10 +0000 (00:21 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 13 Jan 2018 22:53:51 +0000 (22:53 +0000)
We usually forcibly delete any gettext macros we come across to ensure that the
latest versions we ship are used, but if we're building gettext then it's a bad
idea to delete the gettext macros.

Historically this hasn't been a problem as the top-level gettext configure
doesn't use AM_GNU_GETTEXT so the deletion was never done, but this may change.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/autotools.bbclass

index efa4098d63086fe0606bc6032009491734e238a2..cc857acc3e69012a8bdfa1a8faa4b9307577f1d0 100644 (file)
@@ -200,7 +200,7 @@ autotools_do_configure() {
                                bbnote Executing glib-gettextize --force --copy
                                echo "no" | glib-gettextize --force --copy
                        fi
-               elif grep -q "^[[:space:]]*AM_GNU_GETTEXT" $CONFIGURE_AC; then
+               elif [ "${BPN}" != "gettext" ] && grep -q "^[[:space:]]*AM_GNU_GETTEXT" $CONFIGURE_AC; then
                        # We'd call gettextize here if it wasn't so broken...
                        cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${AUTOTOOLS_AUXDIR}/
                        if [ -d ${S}/po/ ]; then