On 2008-04-08 12:35 +0200, Raphael Hertzog wrote:

> On Thu, 03 Apr 2008, Mathieu Malaterre wrote:
>> long file path (>100 characters) do not get installed. 
>
> For reference, while browsing the history I found this commit:
>
> commit 3252594427f5285ab4091a6beca2adaa5082a883
> Author: Wichert Akkerman <[EMAIL PROTECTED]>
> Date:   Thu Oct 21 13:36:28 1999 +0000
>
>     Add support for GNU tar extension for long filenames

Unfortunately this commit only deals with tar archives in (old) GNU
format, not with POSIX tar archives (which were only described later in
POSIX.1-2001, according to the GNU tar info docs).

> So it might have been supported once...

It still is, actually.  I took the steps to extract and uncompress the
data.tar from Mathieu's archive, and file reports it as “POSIX tar
archive”.  However, tar currently does not create POSIX archives by
default; when I repacked the data.tar, file said “POSIX tar archive
(GNU)”.  Then I reassembled the .deb with ar, and dpkg installed it
correctly.  It is attached for reference.

Mathieu, how did you create the deb?  Do you have TAR_OPTIONS set so
that tar creates POSIX archives?

> that said it hasn't caused troubles in
> several releases, so it's not really RC anyway. Downgrading to important so
> that it doesn't get in the way of testing migration or anything else.
>
> Would be nice to have it fixed for lenny though.

Especially as tar will switch to creating POSIX archives by default some
day.  We should also try to assure that dpkg-deb creates GNU tar
archives until the dpkg in the stable Debian release supports POSIX tar
archives with filenames > 99 characters.

There are files with that long (> 100 characters) names in the archive;
to see some of them, download and unzip (e.g.) Contents-i386.gz and run
the following script on it to sort it by line length (needs several 100
Megabyte RAM; beware!):

--8<---------------cut here---------------start------------->8---
#!/usr/bin/perl
my @lines = <>;
print reverse sort { length($a) <=> length($b) } @lines;
--8<---------------cut here---------------end--------------->8---

Pipe this through head -n 1000 or something like that and enjoy.

Cheers,
       Sven


Attachment: debpackage_i386.deb
Description: reassembled Debian package

Reply via email to