[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#725492: linux-source: deb file contains data.tar.gz instead of data.tar



On Thu, 2013-12-05 at 12:06 +0100, Roland Stigge wrote:
> Hi,
> 
> I'm now also hit by this issue (some packages at debian-ports.org can't
> be built due to build-dep linux-source-3.11 not being listed in Packages).
> 
> > I asked on #debian-ftp a while back and was advised to use -Zgzip -z0
> > which is accepted but has the problem you're reporting.  (The dpkg
> > documentation now says this is equivalent to -Znone, but obviously
> > that's not quite true!)
> 
> The difference seems to be that -Znone results in a data.tar (rejected
> by lintian) and -Zgzip -z0 results in the same file but called
> data.tar.gz. The latter is actally not a gzip file and clearly breaks
> apt-ftparchive.
>
> A workaround would be to ignore gunzip errors in apt (apt-ftparchive)
> and retry data.tar.gz as data.tar. But this would be rather ugly.

But bug-compatible with dpkg and dak. :-)

> However, a file called data.tar.gz which isn't really gz is misleading.
> Maybe you can consider -z1 instead of -z0? (gzip -0 isn't really supported).

In a quick test gzip -1 doesn't take very long and doesn't increase the
size (it actually reduces it by a few KB).

And there seems to be a consensus that uncompressed data.tar is correct
and should be accepted once some tools are fixed (#718329, #718330,
#718331).

I'll switch to gzip -1 for now.  Sorry for the trouble.

Ben.

-- 
Ben Hutchings
Lowery's Law:
             If it jams, force it. If it breaks, it needed replacing anyway.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: