From owner-freebsd-arch@FreeBSD.ORG Sat Aug 27 21:16:13 2005 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7B0316A41F for ; Sat, 27 Aug 2005 21:16:13 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd3mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8893B43D46 for ; Sat, 27 Aug 2005 21:16:13 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd3mr6so.prod.shaw.ca (pd3mr6so-qfe3.prod.shaw.ca [10.0.141.21]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0ILW00IYVGEYHIA0@l-daemon> for freebsd-arch@freebsd.org; Sat, 27 Aug 2005 15:16:10 -0600 (MDT) Received: from pn2ml9so.prod.shaw.ca ([10.0.121.7]) by pd3mr6so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0ILW0039SGEYS3K0@pd3mr6so.prod.shaw.ca> for freebsd-arch@freebsd.org; Sat, 27 Aug 2005 15:16:10 -0600 (MDT) Received: from [192.168.0.60] (S0106006067227a4a.vc.shawcable.net [24.87.209.6]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0ILW001I2GEXTF@l-daemon> for freebsd-arch@freebsd.org; Sat, 27 Aug 2005 15:16:10 -0600 (MDT) Date: Sat, 27 Aug 2005 14:16:09 -0700 From: Colin Percival To: Peter van Dijk Message-id: <4310D819.9080903@freebsd.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en X-Enigmail-Version: 0.92.0.0 User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050724) Cc: freebsd-arch@freebsd.org Subject: re: portsnap base thought X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2005 21:16:14 -0000 Peter van Dijk wrote: > portsnap requires that the /usr/ports on a machine was created with > portsnap extract, before it will allow you to portsnap update. > > Suggestion: make the portstree as delivered in 6.0-RELEASE (on the CD > etc.) compatible with portsnap extract, so people can use portsnap > from a base CD install without having to fetch the portstree through > portsnap first. I do realise this might bloat the CD image by about > 50 megabytes (because of /var/db/portsnap) but I think it's worth it. There are two quite separate issues here: 1. When "portsnap fetch" is first run, portsnap needs to download a compressed snapshot of the entire tree (roughly 35MB). 2. If you try to run "portsnap update" against a ports tree which was not created with "portsnap extract", portsnap will refuse to run because it doesn't know which files in the ports tree need to be updated. The solution to the first problem is to ship a copy of /var/db/portsnap on the release images; this would add roughly 35MB to the release size, but it would also allow 28MB to be reclaimed by not shipping ports.tgz (and instead extracting it using portsnap). The solution to the second problem is to ship a copy of the ports tree which contains an appropriate /usr/ports/.portsnap.INDEX file; this would add roughly 600kB. Given that portsnap currently only has about 1500-2000 users (it's hard to get an accurate estimate since people tend not to update their ports trees as often during the freeze, but I'm fairly confident the number is in that range) it doesn't seem reasonable to make major changes to how releases are done yet; but assuming the usage of portsnap increases significantly over the next year, this is certainly something to consider for 7.0-R. Colin Percival