[git commit master] tar compability modes for dpkg

Denys Vlasenko vda.linux at googlemail.com
Mon Mar 15 22:55:26 UTC 2010


commit: http://git.busybox.net/busybox/commit/?id=820874ed3872877601ee95adc275bda215f2d320
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

I've found couple of deb files which require old tar compability modes
to be unpacked. This patch allows me to enable them for dpkg without
enabling tar.

Signed-off-by: Kim B. Heino <Kim.Heino at bluegiga.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 archival/Config.in |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/archival/Config.in b/archival/Config.in
index 9e2e88c..c99896b 100644
--- a/archival/Config.in
+++ b/archival/Config.in
@@ -214,8 +214,6 @@ config TAR
 	  create compressed archives. It's probably the most widely used
 	  UNIX archive program.
 
-if TAR
-
 config FEATURE_TAR_CREATE
 	bool "Enable archive creation"
 	default y
@@ -227,7 +225,7 @@ config FEATURE_TAR_CREATE
 config FEATURE_TAR_AUTODETECT
 	bool "Autodetect compressed tarballs"
 	default n
-	depends on FEATURE_SEAMLESS_Z || FEATURE_SEAMLESS_GZ || FEATURE_SEAMLESS_BZ2 || FEATURE_SEAMLESS_LZMA
+	depends on TAR && (FEATURE_SEAMLESS_Z || FEATURE_SEAMLESS_GZ || FEATURE_SEAMLESS_BZ2 || FEATURE_SEAMLESS_LZMA)
 	help
 	  With this option tar can automatically detect compressed
 	  tarballs. Currently it works only on files (not pipes etc).
@@ -243,7 +241,7 @@ config FEATURE_TAR_FROM
 config FEATURE_TAR_OLDGNU_COMPATIBILITY
 	bool "Support for old tar header format"
 	default N
-	depends on TAR
+	depends on TAR || DPKG
 	help
 	  This option is required to unpack archives created in
 	  the old GNU format; help to kill this old format by
@@ -252,7 +250,7 @@ config FEATURE_TAR_OLDGNU_COMPATIBILITY
 config FEATURE_TAR_OLDSUN_COMPATIBILITY
 	bool "Enable untarring of tarballs with checksums produced by buggy Sun tar"
 	default N
-	depends on TAR
+	depends on TAR || DPKG
 	help
 	  This option is required to unpack archives created by some old
 	  version of Sun's tar (it was calculating checksum using signed
@@ -262,7 +260,7 @@ config FEATURE_TAR_OLDSUN_COMPATIBILITY
 config FEATURE_TAR_GNU_EXTENSIONS
 	bool "Support for GNU tar extensions (long filenames)"
 	default y
-	depends on TAR
+	depends on TAR || DPKG
 	help
 	  With this option busybox supports GNU long filenames and
 	  linknames.
@@ -291,8 +289,6 @@ config FEATURE_TAR_NOPRESERVE_TIME
 	  With this option busybox supports GNU tar -m
 	  (do not preserve time) option.
 
-endif #tar
-
 config UNCOMPRESS
 	bool "uncompress"
 	default n
-- 
1.6.3.3



More information about the busybox-cvs mailing list