Date: Sun, 4 Dec 2011 01:29:43 -0600 From: Sergio Tam <tam.sergio@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: Major version changes using portupgrade? Message-ID: <CA%2Bau=tcgQz06-TOoeKLwJJHVSYAM6zqKo4K6p8PwjEEJ52r1WA@mail.gmail.com> In-Reply-To: <CA97ECCB-550A-48D0-84B1-8A99C8EA549E@conundrum.com> References: <CA97ECCB-550A-48D0-84B1-8A99C8EA549E@conundrum.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2011/12/2 Matthew Pounsett <matt@conundrum.com>: > > 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 <format:bdb_btree> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bau=tcgQz06-TOoeKLwJJHVSYAM6zqKo4K6p8PwjEEJ52r1WA>