Major version changes using portupgrade?

Matthew Pounsett matt at
Sun Dec 4 04:18:34 UTC 2011

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?



[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'
===>  Cleaning for postgresql-client-9.1.1_1
cd /usr/ports/databases/postgresql91-client && make config;

===>  postgresql-client-9.1.1_1 conflicts with installed package(s): 

      They install files into the same place.
      You may want to stop build with Ctrl + C.
===>  Vulnerability check disabled, database not found
===>  License check disabled, port has not defined LICENSE
===>  Found saved configuration for postgresql-client-9.1.1_1
=> postgresql-9.1.1.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/postgresql.
=> Attempting to fetch
postgresql-9.1.1.tar.bz2                      100% of   14 MB 1349 kBps 00m00s

===>  postgresql-client-9.1.1_1 conflicts with installed package(s): 

      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=portupgrade UPGRADE_PORT=postgresql-client-8.4.8 UPGRADE_PORT_VER=8.4.8 make
** Fix the problem and try again.

More information about the freebsd-questions mailing list