Date: Fri, 2 Dec 2011 05:19:03 -0500 From: Matthew Pounsett <matt@conundrum.com> To: freebsd-questions@freebsd.org Subject: Major version changes using portupgrade? Message-ID: <CA97ECCB-550A-48D0-84B1-8A99C8EA549E@conundrum.com>
next in thread | raw e-mail | index | archive | help
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 <format:bdb_btree> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA97ECCB-550A-48D0-84B1-8A99C8EA549E>
