From owner-freebsd-ports@FreeBSD.ORG Wed Jan 19 00:58:06 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8DF7106572F for ; Wed, 19 Jan 2011 00:58:06 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [IPv6:2001:470:a803::1]) by mx1.freebsd.org (Postfix) with ESMTP id 8202D8FC16 for ; Wed, 19 Jan 2011 00:58:06 +0000 (UTC) Received: from mail.geekcn.org (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 71ED5A59A09; Wed, 19 Jan 2011 08:58:05 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by mail.geekcn.org (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with LMTP id 9YlYWZXu-qN6; Wed, 19 Jan 2011 08:57:59 +0800 (CST) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 509B8A597E1; Wed, 19 Jan 2011 08:57:58 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:subject:references:in-reply-to:x-enigmail-version:openpgp: content-type:content-transfer-encoding; b=gVB30LuCK51frgREu2CpDXDdXjSEMFQrGWEVZhkqiJqGwCib2xrRij9FyMhZlCt87 H+MUWiENKdd63cy/1jlOA== Message-ID: <4D363713.3090305@delphij.net> Date: Tue, 18 Jan 2011 16:57:55 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.16) Gecko/20101210 Thunderbird/3.0.11 ThunderBrowse/3.3.4 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <733587.400.qm@web110310.mail.gq1.yahoo.com> In-Reply-To: <733587.400.qm@web110310.mail.gq1.yahoo.com> X-Enigmail-Version: 1.0.1 OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Returning with question about SELECTIVELY updating ports tree X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2011 00:58:07 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 01/18/11 15:43, Mark Terribile wrote: >> From: Xin LI >> Subject: Re: Returning with question about SELECTIVELY updating ports tree > >> On 01/18/11 15:00, Mark Terribile wrote: >> [...] >>> So: How do I upgrade my ports system selectively, >> without wiping out everything? >> You can actually portsnap extract a part of the ports >> tree. e.g.: >> >> portsnap extract net/openldap24-server >> >> BUT, keep in mind that this might be more tricky than a >> normal portsnap >> update, as you may miss certain dependency. > >> Xin LI > > Xin, > > Will that work on the first extract? If not, am I back to the original problem: wiping things out at random? As long as you do 'portsnap extract category/portname' it will only affect directories matching that. E.g. 'net/openldap' would match net/openldap*. There is no "first extract" when you do it this way. > Is that what I really want to achieve? Or do I want to extract the control files (INDEX?) and then update the ports one at a time? INDEX is not a critical file, if you really need that, you should probably generate it manually. > It sounds like the only sane way to use portsnap is to run portsnap when the OS is first installed, before even building the first port. Not quite but I (personally) always do that. 'portsnap extract' is required before 'portsnap update' but not a partial extract nor fetching update. Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iQEcBAEBCAAGBQJNNjcTAAoJEATO+BI/yjfBhgsIAJ4Atudcot6L+rSHM/uR3dpu KQ3sGHOAV0f/T0384w1I8IT06oRmTNx7xk0FoLfMQzw2aX8qpbH1L5ZylDvKSKOy Hh7S0y4QHkjbL0pcPMFp3mi606WdmHWobRPsWqSzOJB7l9zGHLAcT5yp6b2mwiMP MupmW8GDbbphWzZ3HcQkC/VEmR1ifQ5m9LBpvOuvY77AUnElBoYfbcSF4xiBB3oV RdtRkYfnQczjq0pZa0wsj4OWjj1HaHwzDDqSb0GvUSHV7z+98WY/yVq0XaVYUf7s F64pvgBUUpk+ubIPwSv7E1KdyTJzEfY3+52tInZMzIaUs5ehgCxz7cGp3AtlhkE= =vACb -----END PGP SIGNATURE-----