[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Untangling tar...
From: Rob Landley <rob () landley ! net>
Date: 2005-08-30 2:46:27
Message-ID: 200508292146.27449.rob () landley ! net
[Download RAW message or body]
So, the fix that went into 1.01 recently added bzip2 support to tar (by
calling bzip2 as an external executable). But it's dependent on -z support
rather than -j support.
I'm trying to untangle the CONFIG option tree for tar, and preferably prune
it, and my brain is hurting. I started by trying to collapse together
TAR_GZIP and TAR_BZIP2 into TAR_ZIP, and it broke because the "create" and
"extract" logic are sort of independent but not really. We shell out to
external commands for the create case, but in the extract case we use the
built-in functionality to recognize the header type, and pulling on any of
the dangling threads of this reveals an enormous tangle underneath.
Apparently, making -z and -j be the same option forces the build to suck in
the gzip and bunzip2 logic...
Is there anybody here who currently understands this code? I'd really rather
avoid going through it with a chainsaw, but making minor changes here keeps
breaking seemingly unrelated things. (In _theory_ tar -z and -j support
don't require built-in gzip/gunzip/bzip/bunzip because it can shell out. In
practice, it's not that simple...)
Rob
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic