You are not logged in.

#1 2009-11-20 17:32:46

intgr
Member
Registered: 2009-10-02
Posts: 44

[SOLVED] pacman wants to replace despite "provides=" line

Hi! I maintain the postgresql-testing package in AUR.

When I ran "pacman -Syu" today, it wanted to replace the postgresql-testing package with postgresql-libs:

resolving dependencies...
looking for inter-conflicts...
:: postgresql-libs conflicts with postgresql-testing. Remove postgresql-testing? [Y/n] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: postgresql-libs: conflicts with postgresql-testing

Even though the PKGBUILD has the lines:

conflicts=('postgresql-libs' 'postgresql')
provides=('postgresql-libs' 'postgresql')

I always assumed that "provides" means that, when 'postgresql-testing" is installed, any package depending on "postgresql-libs" would also accept "postgresql-testing"

Have I misunderstood something, or is this expected behavior? Is there any way to fix it?

Last edited by intgr (2009-11-21 20:12:54)

Offline

#2 2009-11-20 21:29:23

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,226
Website

Re: [SOLVED] pacman wants to replace despite "provides=" line

Perhaps related to this?
http://bugs.archlinux.org/task/16117

Offline

#3 2009-11-20 23:46:39

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,425
Website

Re: [SOLVED] pacman wants to replace despite "provides=" line

I guess something requires a specfic version of postgresql-libs.  Y can use prvodes=('foo=<version>') syntax to fix this

Offline

#4 2009-11-21 20:12:42

intgr
Member
Registered: 2009-10-02
Posts: 44

Re: [SOLVED] pacman wants to replace despite "provides=" line

Thanks, Allan. That worked! I'm just using $pkgver now:

provides=("postgresql-libs=$pkgver" "postgresql=$pkgver")

Offline

Board footer

Powered by FluxBB