mirror of
https://git.yoctoproject.org/poky
synced 2026-07-17 04:07:06 +00:00
gettext: Apply upstream fix to work with recent autoconf/automake
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
+50
@@ -0,0 +1,50 @@
|
|||||||
|
When I try to `./autogen.sh --quick' CVS gettext, using git Autoconf,
|
||||||
|
things fall over like this (several instances):
|
||||||
|
|
||||||
|
| gnulib-m4/openmp.m4:29: error: m4_copy: won't overwrite defined macro:
|
||||||
|
_AC_LANG_OPENMP(C++)
|
||||||
|
| gnulib-m4/openmp.m4:29: the top level
|
||||||
|
| autom4te: /usr/bin/m4 failed with exit status: 1
|
||||||
|
| aclocal: autom4te failed with exit status: 1
|
||||||
|
|
||||||
|
I'm not quite sure whether an Autoconf bug/incompatibility is involved
|
||||||
|
here (therefore the Cc: to bug-autoconf). m4_copy wasn't documented in
|
||||||
|
earlier Autoconf releases, but there may still have been problematic
|
||||||
|
semantic changes, I don't know.
|
||||||
|
|
||||||
|
Anyway, the following patch seems to fix it. OK to apply?
|
||||||
|
|
||||||
|
Cheers,
|
||||||
|
Ralf
|
||||||
|
|
||||||
|
2008-12-03 Ralf Wildenhues <[EMAIL PROTECTED]>
|
||||||
|
|
||||||
|
* m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or
|
||||||
|
newer.
|
||||||
|
|
||||||
|
Index: gettext-0.17/gettext-tools/gnulib-m4/openmp.m4
|
||||||
|
===================================================================
|
||||||
|
--- gettext-0.17.orig/gettext-tools/gnulib-m4/openmp.m4 2010-02-01 10:51:00.437788710 +0000
|
||||||
|
+++ gettext-0.17/gettext-tools/gnulib-m4/openmp.m4 2010-02-01 10:51:50.697789220 +0000
|
||||||
|
@@ -1,11 +1,13 @@
|
||||||
|
-# openmp.m4 serial 4
|
||||||
|
-dnl Copyright (C) 2006-2007 Free Software Foundation, Inc.
|
||||||
|
+# openmp.m4 serial 5
|
||||||
|
+dnl Copyright (C) 2006-2008 Free Software Foundation, Inc.
|
||||||
|
dnl This file is free software; the Free Software Foundation
|
||||||
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
|
dnl with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
dnl This file can be removed once we assume autoconf >= 2.62.
|
||||||
|
|
||||||
|
+m4_version_prereq([2.62],, [
|
||||||
|
+
|
||||||
|
# _AC_LANG_OPENMP
|
||||||
|
# ---------------
|
||||||
|
# Expands to some language dependent source code for testing the presence of
|
||||||
|
@@ -90,3 +92,5 @@
|
||||||
|
fi
|
||||||
|
AC_SUBST([OPENMP_]_AC_LANG_PREFIX[FLAGS])
|
||||||
|
])
|
||||||
|
+
|
||||||
|
+])
|
||||||
@@ -2,7 +2,7 @@ DESCRIPTION = "The GNU internationalization library."
|
|||||||
HOMEPAGE = "http://www.gnu.org/software/gettext/gettext.html"
|
HOMEPAGE = "http://www.gnu.org/software/gettext/gettext.html"
|
||||||
SECTION = "libs"
|
SECTION = "libs"
|
||||||
LICENSE = "GPLv3"
|
LICENSE = "GPLv3"
|
||||||
PR = "r4"
|
PR = "r5"
|
||||||
DEPENDS = "gettext-native virtual/libiconv ncurses expat"
|
DEPENDS = "gettext-native virtual/libiconv ncurses expat"
|
||||||
DEPENDS_virtclass-native = ""
|
DEPENDS_virtclass-native = ""
|
||||||
PROVIDES = "virtual/libintl"
|
PROVIDES = "virtual/libintl"
|
||||||
@@ -12,6 +12,7 @@ SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \
|
|||||||
file://autotools.patch;patch=1 \
|
file://autotools.patch;patch=1 \
|
||||||
file://wchar-uclibc.patch;patch=1 \
|
file://wchar-uclibc.patch;patch=1 \
|
||||||
file://use_open_properly.patch;patch=1 \
|
file://use_open_properly.patch;patch=1 \
|
||||||
|
file://m4fix.patch;patch=1 \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI_append_linux-uclibc = " file://gettext-error_print_progname.patch;patch=1"
|
SRC_URI_append_linux-uclibc = " file://gettext-error_print_progname.patch;patch=1"
|
||||||
|
|||||||
Reference in New Issue
Block a user