From owner-freebsd-current@FreeBSD.ORG Fri Dec 12 15:47:18 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3DF216A4CE; Fri, 12 Dec 2003 15:47:17 -0800 (PST) Received: from kientzle.com (h-66-166-149-50.SNVACAID.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57A6043D1D; Fri, 12 Dec 2003 15:47:16 -0800 (PST) (envelope-from kientzle@acm.org) Received: from acm.org ([66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id hBCNlFkX035812; Fri, 12 Dec 2003 15:47:15 -0800 (PST) (envelope-from kientzle@acm.org) Message-ID: <3FDA5383.3070909@acm.org> Date: Fri, 12 Dec 2003 15:47:15 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031006 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Loh John Wu References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: "'freebsd-hackers@freebsd.org'" cc: "'freebsd-current@freebsd.org'" Subject: Re: support for .tgz packages on 5.x X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kientzle@acm.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2003 23:47:18 -0000 Loh John Wu wrote: > You can do a pkg_add for a local .tgz file but pkg_add -r or > pkg_add with a URL (i.e. ftp://) path specifiedwould not work because > it automatically assumes the packages are of the .tbz variety and tries > to uncompress it as a bzip file. Yep. I've been working on a rewrite of pkg_add for about six months now. I'm making steady progress and hope to have something stable and testable early next year. > I was just wondering if there was a plan/timeline to add full support for > .tgz packages > because in the code, there are comments about adding support for tgz files. > /* XXX: need to handle .tgz also */. > Also has anyone modified the code on their system to support .tgz packages? The new pkg_add I'm working on should be an exact drop-in replacement for the current one, with a few major new features: * On-the-fly extraction. No temporary directory will be needed. The new pkg_add analyzes the package and extracts files directly to their final location. This allows you to extract packages from stdin, for instance, and nearly triples the speed. * Automatic format detection. It will "just work" with tgz and tbz packages (and be easily extended to any other variant someone may decide they need). The format detection works the same whether you're reading the package from a file, URL, or stdin. * As part of this project, I'm building a robust library for handling tar archives. As a result, we may also get a new 'tar' implementation in the bargain. Despite a serious lack of time, I am making steady progress. My goal is to have a version that's stable enough for testing early next year (February?). I'll be announcing it on -current when it's ready. Tim Kientzle