DEFAULT_VERSIONS and pkg
Baptiste Daroussin
bapt at FreeBSD.org
Wed Jul 20 19:40:01 UTC 2016
On Wed, Jul 20, 2016 at 03:38:07PM -0400, Randy Westlund wrote:
> I'm using postgres 9.5 and psycopg2. When I run 'pkg upgrade', it tries
> to replace postgres 9.5 with 9.3.
>
> > root at rannoch:/ # pkg upgrade
> > Updating FreeBSD repository catalogue...
> > FreeBSD repository is up-to-date.
> > All repositories are up-to-date.
> > Updating database digests format: 100%
> > Checking for upgrades (1 candidates): 100%
> > Processing candidates (1 candidates): 100%
> > Checking integrity... done (2 conflicting)
> > - postgresql93-client-9.3.13 conflicts with postgresql95-client-9.5.3 on /usr/local/bin/clusterdb
> > - postgresql93-client-9.3.13 conflicts with postgresql95-client-9.5.3 on /usr/local/bin/clusterdb
> > Checking integrity... done (0 conflicting)
> > The following 4 package(s) will be affected (of 0 checked):
> > Installed packages to be REMOVED:
> > postgresql95-server-9.5.3
> > postgresql95-client-9.5.3
> > New packages to be INSTALLED:
> > postgresql93-client: 9.3.13
> > Installed packages to be REINSTALLED:
> > py27-psycopg2-2.6.1_1 (direct dependency changed: python27)
> > Number of packages to be removed: 2
> > Number of packages to be installed: 1
> > Number of packages to be reinstalled: 1
> > The operation will free 19 MiB.
> > Proceed with this action? [y/N]: N
>
> I have pgsql=9.5 set in DEFAULT_VERSIONS:
>
> > root at rannoch:/ # cat /etc/make.conf
> > DEFAULT_VERSIONS+= pgsql=9.5
>
> Does pkg ignore DEFAULT_VERSIONS?
>
> I've reinstalled psycopg2 from ports, but pkg still wants to reinstall
> it anyway. This is on 10.3-RELEASE-p5 with pkg 1.8.7.
DEFAULT_VERSIONS is a ports only thing nothing to do with pkg, it is to decide
what dependency will be used when building packages. Once built you cannot
switch them
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20160720/533af87f/attachment.sig>
More information about the freebsd-ports
mailing list