Date: Fri, 23 Jan 2004 10:02:10 -0500 From: Richard Coleman <richardcoleman@mindspring.com> To: babjak@neuron.tuke.sk Cc: freebsd-stable@freebsd.org Subject: Re: correct way to cvsup ports for -stable Message-ID: <40113772.5080707@mindspring.com> In-Reply-To: <20040123142944.GA29470@neuron.tuke.sk> References: <20040123142944.GA29470@neuron.tuke.sk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40113772.5080707>