From owner-freebsd-questions@FreeBSD.ORG Sun Dec 4 07:29:46 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFE17106564A for ; Sun, 4 Dec 2011 07:29:45 +0000 (UTC) (envelope-from tam.sergio@gmail.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 698738FC17 for ; Sun, 4 Dec 2011 07:29:45 +0000 (UTC) Received: by lahv2 with SMTP id v2so2526517lah.13 for ; Sat, 03 Dec 2011 23:29:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=sOOsc496MUL0wbS3bpQdW/eao+LgkOGXaSM6GWp2s6U=; b=T7NAEyeFUW8oAlLc9xIKqJMImae5LUMd4QPsJ2QUuRrD6HxYNwuLlfMs105lzGNw5d uUZ6InOLpOUY0jJVJCzcHUK+OPgjVnI7qfKi/ir3/iZNcPBlbQDRnu+57NAYFqCKU60x W612ft5LDl/ZutxoAM9XA7RHlOx8o9HEw7kg8= MIME-Version: 1.0 Received: by 10.152.146.100 with SMTP id tb4mr3066027lab.0.1322983783868; Sat, 03 Dec 2011 23:29:43 -0800 (PST) Received: by 10.152.148.130 with HTTP; Sat, 3 Dec 2011 23:29:43 -0800 (PST) In-Reply-To: References: Date: Sun, 4 Dec 2011 01:29:43 -0600 Message-ID: From: Sergio Tam To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: Major version changes using portupgrade? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 07:29:46 -0000 2011/12/2 Matthew Pounsett : > > I'm trying to do a major version upgrade of postgres from 8.4 to 9.1. =A0= I've dumped the db and uninstalled the postgres-server port, and I'd like t= o use portupgrade to handle the client upgrade, since it has a number of de= pendencies that probably should be recompiled against the new client libs (= and I'd like to keep the package's +REQUIRED_BY file properly updated anywa= y). > > I was expecting the following to work: > sudo portupgrade -rf -o databases/postgresql91-client databases/postgresq= l84-client > > However, I'm running into a problem where the ports makefiles, and by ext= ension portupgrade, are detecting that the two packages conflict, and so th= e 9.1 client won't even build[1]. > > This seems to be the sort of situation described by the -o example in the= portupgrade man page, but I haven't been able to figure out how to make it= work. =A0Does anyone have any suggestions? > > Thanks! > > -- > > [1] > [Updating the pkgdb in /var/db/pkg ... - 140 packages = found (-1 +0) (...) done] > ---> =A0Upgrading 'postgresql-client-8.4.8' to 'postgresql-client-9.1.1_1= ' (databases/postgresql91-client) > ---> =A0Building '/usr/ports/databases/postgresql91-client' > =3D=3D=3D> =A0Cleaning for postgresql-client-9.1.1_1 > cd /usr/ports/databases/postgresql91-client && make config; > > =3D=3D=3D> =A0postgresql-client-9.1.1_1 conflicts with installed package(= s): > =A0 =A0 =A0postgresql-client-8.4.8 > > =A0 =A0 =A0They install files into the same place. > =A0 =A0 =A0You may want to stop build with Ctrl + C. > =3D=3D=3D> =A0Vulnerability check disabled, database not found > =3D=3D=3D> =A0License check disabled, port has not defined LICENSE > =3D=3D=3D> =A0Found saved configuration for postgresql-client-9.1.1_1 > =3D> postgresql-9.1.1.tar.bz2 doesn't seem to exist in /usr/ports/distfil= es/postgresql. > =3D> Attempting to fetch ftp://ftp.se.postgresql.org/pub/databases/relati= onal/postgresql/source/v9.1.1/postgresql-9.1.1.tar.bz2 > postgresql-9.1.1.tar.bz2 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0100% = of =A0 14 MB 1349 kBps 00m00s > > =3D=3D=3D> =A0postgresql-client-9.1.1_1 conflicts with installed package(= s): > =A0 =A0 =A0postgresql-client-8.4.8 > > =A0 =A0 =A0They will not build together. > =A0 =A0 =A0Please remove them first with pkg_delete(1). <---------------= -pay attention here > *** Error code 1 postgresql-client-8.4.8 make deinstall Tip. always run portaudit -F first. Regards