Bug#751688: apt-utils: xz support is gone.
On Fri, Mar 04, 2016 at 08:57:44PM +0000, Colin Watson wrote:
> Control: tag -1 patch
>
> On Sun, Jun 15, 2014 at 06:10:39PM +0200, Christian Marillat wrote:
> > Packages::Compress seems to not work anymore with xz compression.
> >
> > Only . (uncompressed), gzip and bzip2 seems to work, xz now return errors
> > (see at the bottom).
> >
> > Same error with Sources::Compress
> >
> > Christian
> >
> >
> > $ apt-ftparchive generate apt.conf
> > dists/unstable/main/binary-amd64/:E: write, still have 32768 to write but
> > couldn't
> > E: IO to subprocess/file failed - write (0: Success)
> > E: write, still have 32768 to write but couldn't
>
> The same bug hit the Ubuntu archive when we tried to add xz support
> recently. I finally got round to tracking this down. The problem is
> that the liblzma-based write code needs the same tweaks that the read
> code already has to cope with the situation where lzma_code returns zero
> the first time through because avail_out is zero, but will do more work
> if called again.
>
> The following patch ports the read tweaks to the write code as closely
> as possible (including matching comments etc.), and it's working fine
> for me now.
Can you format it with format-patch, with commit message consisting of
a summary and a long description? That would be really nice.
--
Debian Developer - deb.li/jak | jak-linux.org - free software dev
When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to (`inline'). Thank you.
Reply to: