diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-06-10 19:45:18 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-06-10 19:45:18 +0000 |
commit | dd187e3d3e24729688d04b6d60acc12240550a4e (patch) | |
tree | 56b580dcf5fb53c4816605a2930f0a6f86cefd21 /dev-libs | |
parent | update LANG patch #133446 by Andres Toomsalu (diff) | |
download | gentoo-2-dd187e3d3e24729688d04b6d60acc12240550a4e.tar.gz gentoo-2-dd187e3d3e24729688d04b6d60acc12240550a4e.tar.bz2 gentoo-2-dd187e3d3e24729688d04b6d60acc12240550a4e.zip |
Fix building in et_EE locales #133679 by Andres Toomsalu.
(Portage version: 2.1)
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/glib/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/glib/files/glib-1.2.10-configure-LANG.patch | 44 | ||||
-rw-r--r-- | dev-libs/glib/glib-1.2.10-r5.ebuild | 3 |
3 files changed, 52 insertions, 3 deletions
diff --git a/dev-libs/glib/ChangeLog b/dev-libs/glib/ChangeLog index f0178e61ee99..352ea2cd2a37 100644 --- a/dev-libs/glib/ChangeLog +++ b/dev-libs/glib/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-libs/glib -# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.201 2006/05/26 15:05:37 allanonjl Exp $ +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.202 2006/06/10 19:45:18 vapier Exp $ + + 10 Jun 2006; Mike Frysinger <vapier@gentoo.org> + +files/glib-1.2.10-configure-LANG.patch, glib-1.2.10-r5.ebuild: + Fix building in et_EE locales #133679 by Andres Toomsalu. *glib-2.10.3 (26 May 2006) diff --git a/dev-libs/glib/files/glib-1.2.10-configure-LANG.patch b/dev-libs/glib/files/glib-1.2.10-configure-LANG.patch new file mode 100644 index 000000000000..b5e9e82a74f1 --- /dev/null +++ b/dev-libs/glib/files/glib-1.2.10-configure-LANG.patch @@ -0,0 +1,44 @@ +The LANG vars aren't reset early enough so when sed tries to use [a-zA-Z] in +option parsing, it may break. + +http://bugs.gentoo.org/133679 + +--- configure ++++ configure +@@ -54,6 +54,19 @@ + infodir='${prefix}/info' + mandir='${prefix}/man' + ++# NLS nuisances. ++for as_var in \ ++ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ ++ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ ++ LC_TELEPHONE LC_TIME ++do ++ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then ++ eval $as_var=C; export $as_var ++ else ++ unset $as_var ++ fi ++done ++ + # Initialize some other variables. + subdirs= + MFLAGS= MAKEFLAGS= +@@ -452,16 +463,6 @@ + esac + done + +-# NLS nuisances. +-# Only set these to C if already set. These must not be set unconditionally +-# because not all systems understand e.g. LANG=C (notably SCO). +-# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! +-# Non-C LC_CTYPE values break the ctype check. +-if test "${LANG+set}" = set; then LANG=C; export LANG; fi +-if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +-if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi +-if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi +- + # confdefs.h avoids OS command line length limits that DEFS can exceed. + rm -rf conftest* confdefs.h + # AIX cpp loses on an empty file, so make sure it contains at least a newline. diff --git a/dev-libs/glib/glib-1.2.10-r5.ebuild b/dev-libs/glib/glib-1.2.10-r5.ebuild index f744039f4746..5851f84a5783 100644 --- a/dev-libs/glib/glib-1.2.10-r5.ebuild +++ b/dev-libs/glib/glib-1.2.10-r5.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-1.2.10-r5.ebuild,v 1.46 2006/04/12 14:38:47 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-1.2.10-r5.ebuild,v 1.47 2006/06/10 19:45:18 vapier Exp $ inherit libtool flag-o-matic eutils portability @@ -21,6 +21,7 @@ src_unpack() { cd "${S}" epatch "${FILESDIR}"/${P}-m4.patch + epatch "${FILESDIR}"/${P}-configure-LANG.patch #133679 # Allow glib to build with gcc-3.4.x #47047 epatch "${FILESDIR}"/${P}-gcc34-fix.patch |