From owner-freebsd-questions@FreeBSD.ORG Thu Apr 22 08:01:58 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0F2916A4CE for ; Thu, 22 Apr 2004 08:01:57 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7072C43D55 for ; Thu, 22 Apr 2004 08:01:56 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i3MF1i05055155 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 22 Apr 2004 16:01:44 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i3MF1iii055154; Thu, 22 Apr 2004 16:01:44 +0100 (BST) (envelope-from matthew) Date: Thu, 22 Apr 2004 16:01:44 +0100 From: Matthew Seaman To: Richard Bradley Message-ID: <20040422150144.GF26669@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Richard Bradley , "Andrew L. Gould" , freebsd-questions@freebsd.org References: <200404221341.17612.rtb27@cam.ac.uk> <200404220829.28558.algould@datawok.com> <200404221457.53576.rtb27@cam.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Bqc0IY4JZZt50bUr" Content-Disposition: inline In-Reply-To: <200404221457.53576.rtb27@cam.ac.uk> User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version devel-20040420, clamav-milter version 0.70k X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Keeping Ports synchronised with Packages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2004 15:01:58 -0000 --Bqc0IY4JZZt50bUr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 22, 2004 at 02:57:53PM +0100, Richard Bradley wrote: > Perhaps I am confused about the terminology here - by "packages" I mean= =20 > precompiled programs, and by "ports" I mean source code & make files for = the=20 > same programs. Yes -- that's the correct terminology. But there's no real difference other than that: the pkg is built by compiling the port, and you can freely mix software derived from either source on your system. =20 > I want to keep my programs up to date, and I want to use precompiled vers= ions=20 > as much as possible because it can take hours to compile a large program.= =20 > However some programs don't have packages, or the packages won't install= =20 > because I have used the ports system and other, required, programs are ou= t of=20 > sync. Absolutely. Now, where are you getting the pre-compiled packages =66rom? If it's from one of the 4-Disk FreeBSD CD Rom sets, then yes, you're going to have problems with file versions as there have been updates to a number of major software systems gone into the ports tree in the 4 months or so since 4.9-RELEASE. On the other hand, if you're downloading the packages from the ftp sites, you should be within a week or two of the latest versions. Take a look at, eg: http://www.mirror.ac.uk/sites/ftp.freebsd.org/pub/FreeBSD/ports/i386/pa= ckages-4-stable/Latest/ (if you want to access that server for your FTP'ing needs, it's also known as ftp2.uk.freebsd.org) That shows you all of the packages for 4-STABLE that have been updated since 4.9-RELEASE came out. (There's a similar directory structure for the 5.x packages). Looks like there was a new batch produced on 11th April, including the KDE packages: http://www.mirror.ac.uk/sites/ftp.freebsd.org/pub/FreeBSD/ports/i386/pa= ckages-4-stable/Latest/kde.tgz That gets you kde-3.2.1_1 The ports tree is currently at kde-3.2.2 -- like you say, a minor version number behind. Unfortunately, that's just the way things are: the project only has a limited capacity to keep compiling new packages when ports get updated, especially since they're producing packages for both 4.x and 5.x at the moment. Also, sometime soon the new package set for 4.10-RELEASE will be produced, which means compiling *everything* in the ports tree from scratch. You should be able to get all of the dependencies of KDE etc. as precompiled packages -- using: # pkg_add -r kde will try and download everything required. =20 I should note that you're particularly unlucky right now with both KDE and Gnome having gone through some major updates just recently. Usually the lag between the port coming out and the updated package doesn't affect such a large proportion of all of the available ports/packages. =20 > If I use `portupgrade -PP` (i.e. forcing it to use packages) it (almost)= =20 > always fails because there are never precompiled packages of the same ver= sion=20 > as my (cvsup'ed) ports tree.=20 >=20 > In the same way, `portupgrade -P` (i.e. try to use packages) is equivalen= t to=20 > `portupgrade` (i.e. compile from source) because of the version lag in th= e=20 > packages as compared to the ports. >=20 > One solution might be to get cvsup to check out slightly older versions o= f the=20 > port tree that matches up with the available packages. However this doesn= 't=20 > seem possible. As someone else commented, you can hold various packages inside pkgtools.conf -- that means portupgrade won't even attempt to upgrade them. Or you can tell portupgrade that you want certain ports to be installed either preferentially or exclusively via packages -- see the section in /usr/local/etc/pkgtools.conf on USE_PKGS and USE_PKGS_ONLY. If you enter the names of the really big packages that you never want to spend time compiling in one or other of those arrays, then you can let portupgrade upgrade everything else around them. You will find that certain ports are marked as 'ignored' if they depend on a port where there isn't the latest version of a package available yet, but that includes a lot of ports that wouldn't need to be upgraded anyhow. You can certainly check out a backdated version of the ports tree via cvsup(1) -- eg. to get the ports tree from 1st April just add: *default date=3D2004.04.01.12.00 to your supfile. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --Bqc0IY4JZZt50bUr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAh95YdtESqEQa7a0RAkWRAJ9yUGjY2EI/mxQuHloWPJqd04x2DgCaA84d rwmGyenOKKY0N0G1r2Prqho= =TU1+ -----END PGP SIGNATURE----- --Bqc0IY4JZZt50bUr--