Bug#754203: mk-origtargz (Was: Problem with *.zip archives)

Andreas Tille tille at debian.org
Tue Sep 16 13:42:32 UTC 2014


Hi Joachim,

On Tue, Sep 16, 2014 at 02:43:35PM +0200, Joachim Breitner wrote:
> Am Dienstag, den 16.09.2014, 14:11 +0200 schrieb Andreas Tille:
> > I wonder whether anybody is working on this.  I might try with my poor
> > Perl skills but since I consider the problem very easy to fix it might
> > be more straightforward if some proper Perl code gets in initially.
> 
> I tried to fix it (by simply making sure it believes jar files are zip
> files, even if "file --mime" has a different name for them):
> 
> -- Successfully repacked ../VarScan.v2.3.7.source.jar as ../varscan_2.3.7.orig.tar.xz, deleting 17 files from it.

I confirm that this works nicely as expected. :-)
Thanks a lot for the quick fix.

However, while suspecting this is not an uscan / mk-origtargz issue
I noticed when I do

   git import-orig --pristine-tar varscan_2.3.7.orig.tar.xz

git strips the first dir level (as usual) from this tarball which in
this case is wrong.  I see two options to solve this:

  1. enable mk-origtargz to add a "zero-level dir" like

        varscan-2.3.7+dfsg/net/sf/...

  2. try to teach git import-orig to not skip the top level dir
     (no idea whether this is just implemented)

I guess this issue will happen in several JAR archives.  What do you
think?

Kind regards

       Andreas.

-- 
http://fam-tille.de



More information about the devscripts-devel mailing list