Differences between revisions 4 and 5
Revision 4 as of 2014-02-18 13:19:34
Size: 1877
Comment: ask and archipel-* were misclassified because of an error in my setup
Revision 5 as of 2015-01-06 20:21:38
Size: 1820
Editor: Lunar
Comment: issue has been fixed!
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
When a filename is longer than 99 characters, tar will add a member name `././@LongLink`. Its modification time is the time is currently set to
the time when tar was started.
When a filename is longer than 99 characters, tar will add a member name `././@LongLink`. Its modification time used to be the time when tar was started.

The issue has been [[http://git.gag.com/?p=debian/tar;a=blob;f=ChangeLog;h=6db572bb80239796988c50cf9ac6239ba02ba6ee;hb=0d5b2668cfe67844f4f37932bb9103affed93295#l11|fixed in tar 1.27.1]].
Line 42: Line 43:
Is that value important? Can we always set `mtime` to 0? Otherwise, tar should use the value of the `--mtime` flag when it is set.

= Packages known to be affected =

||'''Source''' ||'''Tested version''' ||
||[[DebianPts:haskell-data-default-class]] ||0.0.1-1 ||
Add a `Build-Depends` on `tar (>= 1.27.1)`.

When a filename is longer than 99 characters, tar will add a member name ././@LongLink. Its modification time used to be the time when tar was started.

The issue has been fixed in tar 1.27.1.

See create.c:546.

Reference: What exactly is the GNU Tar longlink trick? on ?StackOverflow

Detection

This one was tricky to figure out.

Comparing the output of hachoir-metadata --raw --quality=1 --maxlen=0 (from python-hachoir-metadata) works.

$ diff -u8 <(hachoir-metadata --raw --quality=1 --maxlen=0 <(xzcat /tmp/d1.tar.xz )) <(hachoir-metadata --raw --quality=1 --maxlen=0 <(xzcat /tmp/d2.tar.xz))
--- /dev/fd/63  2014-02-14 13:11:41.001750806 +0100
+++ /dev/fd/62  2014-02-14 13:11:41.005750927 +0100
@@ -79,17 +79,17 @@
 - file_type: Normal disk file
 - last_modification: 2014-02-14 08:14:12
 file[11]:
 - author: root (uid=0), group root (gid=0)
 - filename: ././@LongLink
 - file_size: 104
 - file_attr: -rw-r--r-- (644)
 - file_type: 76
-- last_modification: 2014-02-14 08:29:02
+- last_modification: 2014-02-14 11:25:52
 file[12]:
 - author: root (uid=0), group root (gid=0)
 - filename: ./usr/lib/haskell-packages/ghc/lib/data-default-class-0.0.1/ghc-7.6.3/libHSdata-default-class-0.0.1_
 - file_size: 3946
 - file_attr: -rw-r--r-- (644)
 - file_type: Normal disk file
 - last_modification: 2014-02-14 08:14:12
 file[13]:

Solution

Add a Build-Depends on tar (>= 1.27.1).