[lfs-support] LFS-7.2 host system tar version
nettxzl at gmail.com
Fri Nov 23 17:22:50 PST 2012
On 11/24/12, William Harrington <berzerkula at cox.net> wrote:
> On Nov 23, 2012, at 6:33 PM, nettxzl wrote:
>> (Sorry if this comes through twice. My first attempt seems to have
>> I was starting the gcc-4.7.1 (Pass 1) build in Chap. 5 and I was
>> trying to unpack the files compressed with xz following the command
>> given there:
>> tar -Jxf ../mpfr-3.1.1.tar.xz
>> but I got this error message:
>> tar: invalid option -- J
> Tar has been able to auto-detect the compression method based on the
> extension since
> as per changelog
> 2009-09-08 Sergey Poznyakoff <gray at gnu.org.ua>
> Automatic detection of seekable archives.
> * src/buffer.c (guess_seekable_archive): New function.
> (_open_archive): Call guess_seekable_archive for archives
> open for reading.
> (new_volume): Likewise.
> * src/common.h (seek_option): New global.
> * src/tar.c (options): New option --no-seek.
> (parse_opt): --seek and --no-seek set seek_option,
> not seekable_archive.
> (decode_options): Initialize seek_option to -1.
> 2007-10-17 Sergey Poznyakoff <gray at gnu.org.ua>
> * src/suffix.c: New file. Compress format detection by archive
> suffix (when creating). Suggested by Jean-Pierre Demailly.
> * src/Makefile.am: Add suffix.c
> * src/buffer.c (magic): Add an entry for new lzma format. Proposed
> by Lasse Collin.
> * src/common.h (set_comression_program_by_suffix): New prototype.
> * src/tar.c: New options --auto-compress (-a) and --lzma
> * THANKS: Add Lasse Collin and Jean-Pierre Demailly.
> * NEWS: Update
> * doc/tar.texi: Update
> Current host system requirements require tar 1.18 which includes all
> the above. So what's the issue? Tar 1.18 was released after June 2007.
> And it includes all the above changes.
> William Harrington
But not -xz. If you look at the changelogs you pasted there is no
mention of -xz. At most they only mention -lzma which is the
predecessor to -xz.
If you look at the release logs from http://www.gnu.org/software/tar/#releases
(which I quoted in my original post)
you find the following:
# New short option -J, an alias for --lzma
(i.e., the option -J was only introduced in version 1.21)
# Support for xz compression (--xz option)
# Short option -J is reassigned as a shortcut for --xz
(And support for xz compression, and the short option -J in place of
--xz was only introduced in 1.22)
This is the only explanation I can think of for why
tar -Jxf does not work for me although I'm using tar-1.19 which is
more recent than 1.18 which is set in the host system requirements.
More information about the lfs-support