[Zlib-devel] [patch] Reset LANG and LC_* vars to safe values of C in ./configure script

Samuli Suominen ssuominen at gentoo.org
Sat Mar 20 12:19:33 EDT 2010


With zlib-1.2.4,

export LANG="et_EE"
./configure

The files get installed to,

/--prefix/usr/include/zlib.h
/--prefix/usr/include/zconf.h
/--prefix/usr/share/man/man3/zlib.3.bz2

Notice the --prefix failure here.

Original bug against zlib-1.2.4 is here,
http://bugs.gentoo.org/show_bug.cgi?id=310225

It's because sed like [a-z] in ./configure script fail as described
here: http://www.gentoo.org/proj/en/qa/autofailure.xml , see the bottom
of the page for section , "Failure during configure on some locales
(like et_EE)".

So if LANG is set, it's good idea to reset it to C to be
locale-independent. The attached patch does this.

Thanks, Samuli
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: zlib-1.2.4-configure-LANG.patch
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20100320/ed579f29/attachment.ksh>


More information about the Zlib-devel mailing list