Z compression not yet supported (Was: mk-origtargz)

Joachim Breitner nomeata at debian.org
Thu May 15 14:05:42 UTC 2014


Hi,

Am Donnerstag, den 15.05.2014, 11:42 +0200 schrieb Andreas Tille:
> then I used the (Z compression enabled patched)
> 
>    mk-origtargz --repack --compress xz <path>/src.tar.Z
> 
> and obtained
> 
>    liboptimization-java_0.1.orig.tar.xz
> 
> However, if I try
> 
> $ LANG=C tar -taf liboptimization-java_0.1.orig.tar.xz 
> Blas_f77.java
> Fmin.java
> Fmin_methods.java
> Fzero.java
> Fzero_methods.java
> Lmder_fcn.java
> Lmdif_fcn.java
> Minpack_f77.java
> README
> Uncmin_f77.java
> tar: Skipping to next header
> disclaimer
> tar: Exiting with failure status due to previous errors

the problem is not related to the compression code. If I first repack to
xz without Files-Excluded, and then repack from that with
Files-Excluded, I get the same error:

$ mk-origtargz --repack --compress xz ../src.tar.xz 
Successfully repacked ../src.tar.xz as ../liboptimization-java_0.1.orig.tar.xz, deleting 22 files from it.
$ tar taf ../liboptimization-java_0.1.orig.tar.xz
Blas_f77.java
Fmin.java
Fmin_methods.java
Fzero.java
Fzero_methods.java
Lmder_fcn.java
Lmdif_fcn.java
Minpack_f77.java
README
Uncmin_f77.java
tar: Springe zum nächsten Kopfteil.
disclaimer
tar: Beende mit Fehlerstatus aufgrund vorheriger Fehler


The problem is a bug in tar:

$ uncompress src.tar.Z
$ md5sum src.tar 
0479635930f6816549878a3139b49a72  src.tar
$ tar tf src.tar
Blas_f77.class
Blas_f77.java
Console.class
Console.java
Fmin.class
Fmin.java
FminTest.class
FminTest.java
Fmin_methods.class
Fmin_methods.java
Fzero.class
Fzero.java
FzeroTest.class
FzeroTest.java
Fzero_methods.class
Fzero_methods.java
LmderTest_f77.class
LmderTest_f77.java
Lmder_fcn.class
Lmder_fcn.java
LmdifTest_f77.class
LmdifTest_f77.java
Lmdif_fcn.class
Lmdif_fcn.java
Minpack_f77.class
Minpack_f77.java
README
UncminTest_f77.class
UncminTest_f77.java
Uncmin_f77.class
Uncmin_f77.java
Uncmin_methods.class
Uncmin_methods.java
copyright
disclaimer
$ tar --delete --file src.tar copyright
$ tar tf src.tar
Blas_f77.class
Blas_f77.java
Console.class
Console.java
Fmin.class
Fmin.java
FminTest.class
FminTest.java
Fmin_methods.class
Fmin_methods.java
Fzero.class
Fzero.java
FzeroTest.class
FzeroTest.java
Fzero_methods.class
Fzero_methods.java
LmderTest_f77.class
LmderTest_f77.java
Lmder_fcn.class
Lmder_fcn.java
LmdifTest_f77.class
LmdifTest_f77.java
Lmdif_fcn.class
Lmdif_fcn.java
Minpack_f77.class
Minpack_f77.java
README
UncminTest_f77.class
UncminTest_f77.java
Uncmin_f77.class
Uncmin_f77.java
tar: Springe zum nächsten Kopfteil.
tar: Beende mit Fehlerstatus aufgrund vorheriger Fehler

mk-origtargz could possibly print a warning. Added that (giving not the
very nicest output, but it should not occur too often).

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata at debian.org | ICQ# 74513189 | GPG-Keyid: F0FBF51F
  JID: nomeata at joachim-breitner.de | http://people.debian.org/~nomeata

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20140515/9e081dbf/attachment-0001.sig>


More information about the devscripts-devel mailing list