From owner-freebsd-stable@FreeBSD.ORG Thu Jan 15 06:13:04 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 16CB716A4CE for ; Thu, 15 Jan 2004 06:13:04 -0800 (PST) Received: from hermes.pressenter.com (hermes.pressenter.com [69.58.128.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45CBE43D1F for ; Thu, 15 Jan 2004 06:13:01 -0800 (PST) (envelope-from nospam@hiltonbsd.com) Received: from [69.58.129.184] (helo=daggar.sbgnet.local) by hermes.pressenter.com with smtp (Exim 3.35 #1) id 1Ah8F0-000076-00; Thu, 15 Jan 2004 08:12:59 -0600 Date: Thu, 15 Jan 2004 08:12:55 -0600 From: Stephen Hilton To: Tillman Hodgson Message-Id: <20040115081255.428a385f.nospam@hiltonbsd.com> In-Reply-To: <20040115131844.GL415@seekingfire.com> References: <20040114172740.GA24901@memnoch.jk.homeunix.net> <20040115091632.GA74072@ruminary.org> <20040115131844.GL415@seekingfire.com> X-Mailer: Sylpheed version 0.9.8a (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-stable@freebsd.org Subject: Re: ANy difference between 5.X ports tree and 4.X ports tree ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2004 14:13:04 -0000 On Thu, 15 Jan 2004 07:18:44 -0600 Tillman Hodgson wrote: > On Thu, Jan 15, 2004 at 01:16:32AM -0800, clark shishido wrote: > > On Thu, Jan 15, 2004 at 09:42:38AM +0100, Dag-Erling Sm?rgrav wrote: > > > John Kennedy writes: > > >> There are *lots* of differences between 4.x, 5.x and current given some > > > > > > there is no "more or less". there is only one ports tree, and a > > > freshly updated ports tree on a 4.9 box is exactly the same as a > > > freshly updated ports tree on a 5.2 box. > > > > the actual CVS tree yes, but from a user perspective where some > > packages may build on 4-STABLE and not on 5-CURRENT there are > > differences, that's why separate INDEX and INDEX-5 ports listings > > exist where some ports will build under 4-STABLE but not 5-CURRENT. > > > > One behavioral difference which I like is "make package" where > > *.tgz packages are 4-STABLE and *.tbz packages are 5-CURRENT. > > It's because of that that I NFS export two copies of the ports tree, one > for 4.X and one for 5.X. Otherwise the INDEXes were clobbering each > other and /usr/ports/packages was ... interesting. I also have both i386 > and sparc64 machines, which is yet another twist on packages. > > I'd love to reclaim the disk the disk space by running only a single > ports tree. I'd also love to have the build server (which is -STABLE) > perform the all the INDEX making. Is there a clean way to do this? > I am also interested in a solution for this. I use portupgrade and can "make index" from 4.9 and get the INDEX file, then "make index" from a 5.2 box and get INDEX-5, but the "portsdb -u" step seems to make a common INDEX.db from 5.2 INDEX-5 or from the 4.9 INDEX file. In the man page for portsdb there is an environment option for "PORTS_DBDIR". If I set my environment options in the pkgtools.conf file for the 4.9 and 5.2 boxes to place the INDEX.db in /var/db/pkg and rm the INDEX.db from the /usr/ports directory then each machine should have its "version appropriate" INDEX.db file in its /var/db/pkg dir. Snipped from my /usr/local/etc/pkgtools.conf files: FreeBSD 5.2 ------------------------------------------ ENV['PORTSDIR'] ||= '/usr/ports' ENV['PORTS_INDEX'] ||= ENV['PORTSDIR'] + '/INDEX-5' ENV['PKG_DBDIR'] ||= '/var/db/pkg' ENV['PKG_TMPDIR'] ||= '/var/tmp' ENV['PORTS_DBDIR'] ||= ENV['PKG_DBDIR'] ENV['PACKAGES'] ||= ENV['PORTSDIR'] + '/packages' ENV['PKG_PATH'] ||= ENV['PACKAGES'] + '/All' ------------------------------------------ FreeBSD 4.9 ------------------------------------------ ENV['PORTSDIR'] ||= '/usr/ports' ENV['PORTS_INDEX'] ||= ENV['PORTSDIR'] + '/INDEX' ENV['PKG_DBDIR'] ||= '/var/db/pkg' ENV['PKG_TMPDIR'] ||= '/var/tmp' ENV['PORTS_DBDIR'] ||= ENV['PKG_DBDIR'] ENV['PACKAGES'] ||= ENV['PORTSDIR'] + '/packages' ENV['PKG_PATH'] ||= ENV['PACKAGES'] + '/All' ------------------------------------------ This seems to work for me, but would like some feedback as to whether this is the correct way to accomplish this. Regards, Stephen Hilton nospam@hiltonbsd.com