Your message dated Sat, 12 Nov 2011 11:12:41 -0700
with message-id <[email protected]>
and subject line fixed
has caused the Debian Bug report #347636,
regarding please allow auto-detection of p7zipped tarballs (.tar.7z)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
347636: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=347636
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: tar
Version: 1.15.1-2
Severity: wishlist
Tags: patch upstream

Hi!

Please, could you apply this patch to make tar auto-detect 7zipped tarballs?
It adds the magic numbers in src/buffer.c so that you can do:

  tar -xf foo.tar.7z

without having to specify an uncompressor manualy.

This patch has already been sent to upstream.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL 
set to C)

-- no debconf information
diff -ur tar-1.15.1.old/src/buffer.c tar-1.15.1/src/buffer.c
--- tar-1.15.1.old/src/buffer.c	2004-12-21 16:09:24.000000000 +0100
+++ tar-1.15.1/src/buffer.c	2005-12-14 12:07:28.000000000 +0100
@@ -153,7 +153,8 @@
   ct_none,
   ct_compress,
   ct_gzip,
-  ct_bzip2
+  ct_bzip2,
+  ct_p7zip
 };
 
 struct zip_magic
@@ -170,6 +171,7 @@
   { ct_compress, "\037\235", 2, "compress", "-Z" },
   { ct_gzip,     "\037\213", 2, "gzip", "-z"  },
   { ct_bzip2,    "BZh",      3, "bzip2", "-j" },
+  { ct_p7zip,    "7z\274\257\047\034", 6, "p7zip", "--use-compress-program=p7zip" },
 };
 
 #define NMAGIC (sizeof(magic)/sizeof(magic[0]))

--- End Message ---
--- Begin Message ---
My current builds of tar are configured with --with-lzma=xz, and
automatic detection of lzma compressed archives appears to work fine for
listing and extracting operations with no compression algorithm
explicitly specified. 

Bdale

Attachment: pgp58pG9rjBIS.pgp
Description: PGP signature


--- End Message ---

Reply via email to