Hi!

On Sat, 2011-09-24 at 15:55:12 -0500, Jonathan Nieder wrote:
> Jonathan Nieder wrote:
> > For example, dpkg itself doesn't seem to have
> > large-file support.
> 
> ... in squeeze.  Looks like aspects of this were fixed in version
> 1.16.0.  I'm not sure yet why the squeeze dpkg binary here has a
> reference to the (32-bit) open() function --- another pitfall for
> the heuristic I was using to check FILE_OFFSET_BITS, I guess.

That reference comes from trigdeferred.l, which does not include
<config.h> at the top, I've fixed that by moving that and <compat.h>
to a %top section. But the LFS side of this is really not an issue,
as if dpkg has to parse a > 2GiB deferred triggers file, then
something is very wrong...

Also there's several sides to LFS support, one is using the LFS API
which dpkg has been using for a very long time, the other is using
correct types when dealing with file sizes/offsets, or never slurping
or mmaping into memory a file that can be large. These last two are
the ones dpkg has been failing in some cases in the past, making it
not support large files correctly.

> Sorry for the nonsense.

Well this uncovered a bug, so not that much. :)

thanks,
guillem



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to