[Zlib-devel] zlib-1.2.5.ebuild [WAS: zlib-1.2.5 configure script issues]

Arun Raghavan ford_prefect at gentoo.org
Mon Apr 26 14:38:03 EDT 2010


On 26 April 2010 23:43, John Bowler <jbowler at frontiernet.net> wrote:
> From: Enrico Weigelt
>>Apropos Gentoo:
>
> zlib-1.2.5-r1.ebuild contains appropriate bug numbers:
>
>>#1: what does lfs-decls patch actually do ?
>
> http://bugs.gentoo.org/show_bug.cgi?id=316377
>
> The gentoo patch looks wrong to me, but I don't understand why the *64API declarations are repeated after line 1613 of zlib.h, initially with z_off64_t then with z_off_t (which, I think, must be z_off64_t at the second declaration.)

I actually meant to write in about this, since I wrote that patch. The
patch is necessary because gzopen et al are #define'd to gzopen64 et
al, conditional on _FILE_OFFSET_BITS and _LFS64_LARGEFILE, but the
actual function is declared in the header only if _LARGEFILE64_SOURCE
is defined. This breaks multiple applications that use zlib (libxml2
and luatex, at least).

More recently, I found that this bug is also reported in Debian and
Ubuntu, though they use a different approach to fix this:

https://bugs.launchpad.net/ubuntu/+source/libpciaccess/+bug/402178
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=439980
http://patches.ubuntu.com/z/zlib/zlib_1:1.2.3.3.dfsg-15ubuntu1.patch

Could either of these be merged?

Thanks,
-- 
Arun Raghavan
http://arunraghavan.net/
(Ford_Prefect | Gentoo) & (arunsr | GNOME)




More information about the Zlib-devel mailing list