From owner-freebsd-stable@FreeBSD.ORG Fri Jan 23 07:02:06 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4302316A4CE for ; Fri, 23 Jan 2004 07:02:06 -0800 (PST) Received: from saturn.criticalmagic.com (saturn.criticalmagic.com [68.213.16.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B3AC43D41 for ; Fri, 23 Jan 2004 07:02:03 -0800 (PST) (envelope-from richardcoleman@mindspring.com) Received: from mindspring.com (titan.criticalmagic.com [68.213.16.23]) by saturn.criticalmagic.com (Postfix) with ESMTP id E5DD03BD10; Fri, 23 Jan 2004 10:02:02 -0500 (EST) Message-ID: <40113772.5080707@mindspring.com> Date: Fri, 23 Jan 2004 10:02:10 -0500 From: Richard Coleman Organization: Critical Magic, Inc. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: babjak@neuron.tuke.sk References: <20040123142944.GA29470@neuron.tuke.sk> In-Reply-To: <20040123142944.GA29470@neuron.tuke.sk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-stable@freebsd.org Subject: Re: correct way to cvsup ports for -stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: richardcoleman@mindspring.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2004 15:02:06 -0000 If you are talking about updating the ports tree on a single machine via cvsup, then it's easy. Just make a copy of /usr/share/examples/cvsup/ports-supfile and update the name of the cvsup mirror in this config file (say cvsup3.freebsd.org). Then the command "cvsup -g -L 2 ports-supfile" will get you an updated tree. That's it. If you use portupgrade to manage your ports (recommended), you will then need to execute "portsdb -Uu" to rebuild your INDEX.db file. To answer your question below, there is only one ports tree. So, even if you are following -STABLE for the base code, you will still follow the HEAD tag (-CURRENT) for the ports tree. So you generally cvsup twice, once for /usr/src and once for /usr/ports. The ports tree is generally pretty stable, so it works out just fine. There are refinements to this procedure if you have many machines or want to keep a copy of the whole CVS tree (for looking at CVS logs, etc). Read the development(7) man page for an example. Richard Coleman richardcoleman@mindspring.com Jozef Babjak wrote: > Hi! > > A similar topic has been disscused here several days ago, but I still don't > understand, how correctly update ports tree via cvsup. I have installed > 4.9-release. I upgraded to -stable according to > /usr/share/examples/cvsup/stable-supfile (I have changed only '*default > host=...' line, all rest I kept untouched) and I done make world and kernel... > I understand well how to upgrade system, but my questions about ports are: > > 1) Is it ok to upgrade ports, or do I have keep ports instaled from -release CD? > > 2) If I should upgrade ports, how exactly? Which file from examples I should use > and how I need to modify it? There is nothing about ports upgrade in > stable-supfile and ports-supfile deals about -current. Is it enough to use > cvs-supfile from examples directory, change a cvsup server and comment out > 'doc-all' and 'cvsroot-all', isn't it? > > Sorry for (maybe) stupid questions; I read comments in stable-supfile and > handbook, but this is still not clear for me. > > Jozef