From owner-freebsd-questions@FreeBSD.ORG Mon Oct 20 06:35:13 2003 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 4BE4216A4B3 for ; Mon, 20 Oct 2003 06:35:13 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5127943FBD for ; Mon, 20 Oct 2003 06:35:11 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h9KDYCDK020232 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 20 Oct 2003 14:34:44 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id h9KDYBI7020227; Mon, 20 Oct 2003 14:34:11 +0100 (BST) (envelope-from matthew) Date: Mon, 20 Oct 2003 14:34:03 +0100 From: Matthew Seaman To: carmoda Message-ID: <20031020133402.GA9712@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , carmoda , freebsd-questions@freebsd.org References: <3F946A80.3050208@carmoda.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline In-Reply-To: <3F946A80.3050208@carmoda.com> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: errors with dependant packages while installing ports. 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: Mon, 20 Oct 2003 13:35:13 -0000 --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 20, 2003 at 11:06:40PM +0000, carmoda wrote: > I seem to get failures just about every time i try to install anything: >=20 > in particular errors with dependant packages: >=20 > "An older version of whatever/whatever is already installed..." >=20 > now, on attempts to update any of these dependancy packages i break my=20 > system... so. do i just accept i cannot update or run certain things, or= =20 > is there some trick t this i am missing...? >=20 > please 'CC' me as i am on digest mode... This is the main problem that portupgrade(1) solves: package dependency ordering. Generally what happens is that a port looks for, say, a particular version of a shared library. If you've got an older version of the shared library installed, the test to find the particular shared library will fail, and the ports system will try and re-install the dependent package. As you've discovered, trying to install a package on top of an older version of itself generates errors. The trick is to update the dependencies first, and then the ports that depend on them. It's also a good rule of thumb to take all your ports/packages from a consistent source: ie. always use the packages directory for your particular release from the FTP servers, or always install from a freshly cvsup(1)'d ports tree. That isn't a hard and fast rule, but it generally helps you to avoid this sort of version mismatch thing if you stick to it as closely as you can. Note that sometimes a port providing a particular shared library may have any number of dependents, and they can be broken by your updating the shared library. The gettext port seems to be a prime offender in this reguard, as witnessed by the regular floods of messages to this list about 'libintl.so.N not found'. portupgrade(1) gets around that shared library problem by keeping a copy of old version of shlibs in /usr/local/lib/compat/pkg and there will generally be a heads-up e-mail to freebsd-ports@... when some particularly important port gets updated. 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 --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/k+RKdtESqEQa7a0RAl3PAJ9P+rAW982kB3dMHB5By1IyGrUJCgCggpzZ uttSZxZqPHf0Y6Uuu9nSxLk= =jTFT -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi--