From owner-freebsd-questions@FreeBSD.ORG Sun Dec 4 04:18:34 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 882731065673 for ; Sun, 4 Dec 2011 04:18:34 +0000 (UTC) (envelope-from matt@kaywinnit.conundrum.com) Received: from kaywinnit.conundrum.com (mail2.conundrum.com [67.215.196.38]) by mx1.freebsd.org (Postfix) with ESMTP id 5B5308FC13 for ; Sun, 4 Dec 2011 04:18:33 +0000 (UTC) Received: from chani.conundrum.com ([216.235.10.34]) by kaywinnit.conundrum.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1RWQCt-000Fea-FJ; Fri, 02 Dec 2011 10:19:03 +0000 From: Matthew Pounsett Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Fri, 2 Dec 2011 05:19:03 -0500 To: freebsd-questions@freebsd.org Message-Id: Mime-Version: 1.0 (Apple Message framework v1251.1) X-Mailer: Apple Mail (2.1251.1) Sender: matt@kaywinnit.conundrum.com X-SA-Exim-Connect-IP: 216.235.10.34 X-SA-Exim-Mail-From: matt@kaywinnit.conundrum.com X-SA-Exim-Scanned: No (on kaywinnit.conundrum.com); SAEximRunCond expanded to false Subject: 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 04:18:34 -0000 I'm trying to do a major version upgrade of postgres from 8.4 to 9.1. = I've dumped the db and uninstalled the postgres-server port, and I'd = like to use portupgrade to handle the client upgrade, since it has a = number of dependencies that probably should be recompiled against the = new client libs (and I'd like to keep the package's +REQUIRED_BY file = properly updated anyway). I was expecting the following to work: sudo portupgrade -rf -o databases/postgresql91-client = databases/postgresql84-client However, I'm running into a problem where the ports makefiles, and by = extension portupgrade, are detecting that the two packages conflict, and = so the 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. Does anyone have any suggestions? Thanks! -- [1]=20 [Updating the pkgdb in /var/db/pkg ... - 140 packages = found (-1 +0) (...) done] ---> Upgrading 'postgresql-client-8.4.8' to 'postgresql-client-9.1.1_1' = (databases/postgresql91-client) ---> Building '/usr/ports/databases/postgresql91-client' =3D=3D=3D> Cleaning for postgresql-client-9.1.1_1 cd /usr/ports/databases/postgresql91-client && make config; =3D=3D=3D> postgresql-client-9.1.1_1 conflicts with installed = package(s):=20 postgresql-client-8.4.8 They install files into the same place. You may want to stop build with Ctrl + C. =3D=3D=3D> Vulnerability check disabled, database not found =3D=3D=3D> License check disabled, port has not defined LICENSE =3D=3D=3D> Found saved configuration for postgresql-client-9.1.1_1 =3D> postgresql-9.1.1.tar.bz2 doesn't seem to exist in = /usr/ports/distfiles/postgresql. =3D> Attempting to fetch = ftp://ftp.se.postgresql.org/pub/databases/relational/postgresql/source/v9.= 1.1/postgresql-9.1.1.tar.bz2 postgresql-9.1.1.tar.bz2 100% of 14 MB 1349 kBps = 00m00s =3D=3D=3D> postgresql-client-9.1.1_1 conflicts with installed = package(s):=20 postgresql-client-8.4.8 They will not build together. Please remove them first with pkg_delete(1). *** Error code 1 Stop in /usr/ports/databases/postgresql91-client. *** Error code 1 Stop in /usr/ports/databases/postgresql91-client. ** Command failed [exit code 1]: /usr/bin/script -qa = /tmp/portupgrade20111202-57604-1bstor4-0 env UPGRADE_TOOL=3Dportupgrade = UPGRADE_PORT=3Dpostgresql-client-8.4.8 UPGRADE_PORT_VER=3D8.4.8 make ** Fix the problem and try again.