configure's tar ustar test can fail on Solaris

David Shaw dshaw at jabberwocky.com
Wed Jul 12 04:51:20 CEST 2006


On Tue, Jul 11, 2006 at 11:05:34AM -0700, Rich Wales wrote:
> David Shaw wrote:
> 
> >>   $_mytar -cf - conftest.txt | ( strings || cat ) | grep -q ustar
> > 
> > Does cat actually solve the problem here?  If the problem is that Sun
> > grep doesn't grep within binary data, then cat won't un-binary the
> > tarball.
> 
> How about "cat -v", maybe?

Good idea.  I don't know how common cat -v is, but at least FreeBSD,
Linux, and Solaris have it.

The thing is, the 'ustar' string is always at the same byte offset in
the file.  I'm wondering if "head -c 262 | tail -c 5" would do it, or
some sed or awk magic...

David



More information about the Gnupg-devel mailing list