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

Re: qmapshack for debian



On 08/05/2014 11:37 PM, Jaromír Mikeš wrote:
> $ git-import-orig --pristine-tar
> /home/mira/PACKAGING/qmapshack_0.2.0+ds1.orig.tar.xz
> What is the upstream version? [0.2.0+ds1]
> tar: Skipping to next header
> tar: Exiting with failure status due to previous errors
> gbp:error: Couldn't unpack
> "/home/mira/PACKAGING/qmapshack_0.2.0+ds1.orig.tar.xz": it exited with 2
> 
> Any idea?

To be honest, no I don't.

The repacking seems to create a corrupted tarball or something like that.

Running mk-origtargz manually shows the command that failed:

mk-origtargz --repack --compress xz ../qmapshack-0.2.0.tar.gz
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
mk-origtargz: error: tar --list --auto-compress --file
../qmapshack_0.2.0+ds1.orig.tar.xz gave error exit status 2
debian/rules:21: recipe for target 'get-orig-source' failed
make: *** [get-orig-source] Error 2

The repacked tarball can be listed, but reports an error near the end:

$ tar --list --auto-compress --file ../qmapshack_0.2.0+ds1.orig.tar.xz
2>&1 | tail -5
qmapshack-0.2.0/templates/header.h
qmapshack-0.2.0/GpxExamples/basecamp.gpx
tar: Skipping to next header
qmapshack-0.2.0/mkfile
tar: Exiting with failure status due to previous errors

A diff between the upstream and repacked tarballs show two additional
files missing from the repacked tarball:

tar -taf ../qmapshack-0.2.0.tar.gz > /tmp/qmapshack.upstream
tar -taf ../qmapshack_0.2.0+ds1.orig.tar.xz > /tmp/qmapshack.upstream 2>&1
diff -u /tmp/qmapshack.{upstream,repacked}  | tail -10
-qmapshack-0.2.0/.hg/hgrc
-qmapshack-0.2.0/.hg/cur-message.txt
-qmapshack-0.2.0/.hg/cache/branch2-served
-qmapshack-0.2.0/.hg/undo.bookmarks
 qmapshack-0.2.0/GpxExamples/basecamp.gpx
-qmapshack-0.2.0/GpxExamples/qlandkarte.gpx
-qmapshack-0.2.0/CMakeLists.txt
+tar: Skipping to next header
 qmapshack-0.2.0/mkfile
+tar: Exiting with failure status due to previous errors

It's not specific to the xz compression, because with just --repack the
the repackaged .tar.gz has the same problem:

tar -taf ../qmapshack_0.2.0+ds1.orig.tar.gz 2>&1 | tail -5
qmapshack-0.2.0/templates/header.h
qmapshack-0.2.0/GpxExamples/basecamp.gpx
tar: Skipping to next header
qmapshack-0.2.0/mkfile
tar: Exiting with failure status due to previous errors

I guess it's a bug in mk-origtargz.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/E88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1


Reply to: