On 11/24/12, William Harrington <berzerk...@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 >> vanished.) >> >> Hi, >> >> 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 <g...@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 <g...@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. > > Sincerely, > > 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: 2008-12-27 1.21 # New short option -J, an alias for --lzma (i.e., the option -J was only introduced in version 1.21) And 2009-03-05 1.22 # 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. Toni -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page