From owner-freebsd-questions@FreeBSD.ORG Sat Jan 9 21:47:17 2010 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4C251065670 for ; Sat, 9 Jan 2010 21:47:17 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ew0-f213.google.com (mail-ew0-f213.google.com [209.85.219.213]) by mx1.freebsd.org (Postfix) with ESMTP id 4867C8FC13 for ; Sat, 9 Jan 2010 21:47:16 +0000 (UTC) Received: by ewy5 with SMTP id 5so9274010ewy.14 for ; Sat, 09 Jan 2010 13:47:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type; bh=xYD7eI3Hfk09Are728vPopCi1zRUyaZS4ziCqUXUCJI=; b=j2w5wEWM7nn2bBEVFtzz7yqrBp7FBo9u7UwJBqeXdpJu9YwuLHNWp3aBn/NWhB8TiS gqHdsEOA8erSVy7RwVavejmpdWad8w0YsrDZa/5o0mjZ6XBDc7KRv5f5vLsOoluQ4woD 3mXtVrrM9tvuQiId6h/cXJyF/unB9SxYqxXuU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=YtuK36KtPkWCtlywaFWSzG0J3FBQaD+Ku4FSkXa3ErkqYNvejXogtWAkOixG+41VbM YwodOyWjl+78hQCUp/mo2mwyQABVi0AHsWN2GwU8AJGzO09RGOVXkgAunByYYXa/tNL3 iFlOAE0XfGQ/+ymaAJTAR2QyilwC6AZiFNobs= MIME-Version: 1.0 Received: by 10.216.90.21 with SMTP id d21mr1140644wef.85.1263073631486; Sat, 09 Jan 2010 13:47:11 -0800 (PST) Date: Sat, 9 Jan 2010 16:47:11 -0500 Message-ID: From: "b. f." To: andrew clarke Content-Type: text/plain; charset=ISO-8859-1 Cc: kientzle@FreeBSD.org, freebsd-questions@FreeBSD.org Subject: Re: pkgtools and xz compressor X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jan 2010 21:47:17 -0000 >I notice FreeBSD 7.2's pkg_add, pkg_create, etc don't have support for >the xz compressor, evidently due to lack of support for the xz format >in bsdtar. Does bsdtar support xz in FreeBSD 8.0? Failing that, is >xz support for the pkgtools something being looked at in future? > Yes, we know, we know. :) No, FreeBSD 8.0 does not have support for lzma compression in it's base system libarchive, although there are several ports that support it, and it could be handled by using one of them, as is done with the current USE_ZIP knob. The latest version of libarchive (imported recently into 9-CURRENT, from http://code.google.com/p/libarchive/ ) has support for lzma compression in several formats, as well as other improvements. Unfortunately, the imported version of libarchive still has lzma disabled by default, and no supporting lzma libraries were imported. You would have to ask kientzle@ why this is so. >xz's compression ratios tend to be much better than bzip2's, eg. Yes, and with faster decompression, albeit at the cost of more memory and cpu usage. But, unfortunately, portmgr@ does not seem interested in incorporating these improvements. If I recall correctly, there are one or more open PRs suggesting means of adding support, but they have been largely ignored. Some time ago, the maintainer of one widely-used port switched it over to an lzma-compressed tarball, and received a lot of criticism for doing so, including some from key committers who evidently didn't even know what lzma was. Ultimately, he had to revert to a bzip2-compressed tarball. So it may be a while before this is widely used in ports. b.