From owner-freebsd-current@FreeBSD.ORG Wed Aug 27 14:01:26 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EBC9DE80; Wed, 27 Aug 2014 14:01:25 +0000 (UTC) Received: from udns.ultimatedns.net (unknown [IPv6:2602:d1:b4d6:e600:4261:86ff:fef6:aa2a]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B54C83568; Wed, 27 Aug 2014 14:01:25 +0000 (UTC) Received: from udns.ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.5/8.14.5) with ESMTP id s7RE2WEm009331; Wed, 27 Aug 2014 07:02:39 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) Received: (from www@localhost) by udns.ultimatedns.net (8.14.5/8.14.5/Submit) id s7RE2Q1r009324; Wed, 27 Aug 2014 07:02:26 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net ([2602:d1:b4d6:e600:4261:86ff:fef6:aa2a]) (UDNSMS authenticated user chrish) by ultimatedns.net with HTTP; Wed, 27 Aug 2014 07:02:27 -0700 (PDT) Message-ID: In-Reply-To: <134A4303-3421-4A7B-9EB6-74D58B939217@kientzle.com> References: <134A4303-3421-4A7B-9EB6-74D58B939217@kientzle.com> Date: Wed, 27 Aug 2014 07:02:27 -0700 (PDT) Subject: Re: did tar(1) loose xz compression support in 11? From: "Chris H" To: "Tim Kientzle" User-Agent: UDNSMS/2.0.3 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd hackers , freebsd current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2014 14:01:26 -0000 > > On Aug 26, 2014, at 11:05 AM, Chris H wrote: > >> Greetings, >> I'm currently testing 11. My build / install is from about 2 days ago. >> I generally use xz compression, when creating archives. But when I >> attempt the following: >> >> tar -cvJ --options xz:9 -f ./archive-name.tar.xz ./file >> >> it returns the following: >> >> tar: Undefined option: `xz:9' >> >> This has always worked in previous versions. Has the syntax changed, >> and the man(1) pages just haven't caught up? > > I can’t see any evidence in libarchive’s source that this ever worked. > > However, there was some work done recently to improve error reporting from the options > processor. It’s quite possible that —options xz:9 used to just be ignored and now it’s > reporting an error. > > Tim On a hunch. I performed a similar test. I added STAGE to the following port. So I'll test here. # tar -cvJ --options xz:9 -f posadis-xz9.tar.xz ./posadis/ a ./posadis a ./posadis/files a ./posadis/pkg-plist a ./posadis/Makefile a ./posadis/distinfo a ./posadis/pkg-descr a ./posadis/files/patch-Makefile.in a ./posadis/files/patch-configure.in # tar -cvJ --options xz:1 -f posadis-xz1.tar.xz ./posadis/ a ./posadis a ./posadis/files a ./posadis/pkg-plist a ./posadis/Makefile a ./posadis/distinfo a ./posadis/pkg-descr a ./posadis/files/patch-Makefile.in a ./posadis/files/patch-configure.in unlike the previous examples, and arguments. I used the v switch. Presuming that would provide feedback on any anomalous usage. However. The following proves otherwise: # ls -la -rw-r--r-- 1 root wheel 2380 Aug 27 06:47 posadis-xz1.tar.xz -rw-r--r-- 1 root wheel 2380 Aug 27 06:47 posadis-xz9.tar.xz (performed on a RELENG_9 box) As one can see, nothing (compression level(s)) were UNchanged. So the verdict is in; the _recent_ changes provide the needed feedback where anomalous usage is concerned. Short version; tar now works correctly -- it's fixed. :) Humble opinion; the man(1) pages could be somewhat more concise. Humble request; would it be possible to make [bsd]tar(1) honor the short-hand version of options? Thank you, Tim, and everyone else, for all your thoughtful replies. --Chris > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > >