You are not logged in.

#1 2009-04-29 17:35:52

ash
Member
Registered: 2008-12-17
Posts: 134

[solved] why does pacman ignore the 'provides' of installed package ?

i took a package 'pikachu 1.0.1-2' from extra

i rewrote the .PKGINFO inside so that the new package is

name = ashs-pikachu
ver = 1.0.1-2
conflict = pikachu
provides = pikachu=1.0.1

i installed this package on my system

now i try to install 'raichu-2.0' from extra

raichu depends on 'pikachu' (no version specified)

when i pacman -S raichu it wants to install pikachu from extra and completely ignores that i allready have ashs-pikachu

how do i make it understand tht it can work with my customized package ?

Last edited by ash (2009-04-29 19:17:47)

Offline

#2 2009-04-29 17:55:04

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [solved] why does pacman ignore the 'provides' of installed package ?

You need a conflicts= line too.

Also, I don't think provides= is meant to be used with package versions, but I might be wrong.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2009-04-29 17:59:05

ash
Member
Registered: 2008-12-17
Posts: 134

Re: [solved] why does pacman ignore the 'provides' of installed package ?

the line is conflict= and not conflicts=. only this way the conflicts are shown in pacman -Qip. its also the way i saw it in another arch package (qt-4.X i think)

i saw the provides= used with version in another arch package (qt-4.X)

i tried to add replaces= without version and it still does not work

Offline

#4 2009-04-29 18:11:35

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [solved] why does pacman ignore the 'provides' of installed package ?

Check the db entry in /var/lib/pacman/local to make sure it's been entered as you intended.

Also.. what exactly are you trying to achieve?

Offline

#5 2009-04-29 18:11:45

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [solved] why does pacman ignore the 'provides' of installed package ?

If you run pacman -Qii ashs-pikachu does it show the proper provides?

If you've got everything set up properly, this may be a pacman bug unless I'm missing something.

Offline

#6 2009-04-29 18:14:28

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Re: [solved] why does pacman ignore the 'provides' of installed package ?

which package is it? and can you paste -Qi output?


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

#7 2009-04-29 18:16:12

ash
Member
Registered: 2008-12-17
Posts: 134

Re: [solved] why does pacman ignore the 'provides' of installed package ?

pacman -Qii ashs-pikachu
Name : ashs-pikachu
Version : 1.0.1-2
. .
. .
Provides : pikachu=1.0.1
. . 
. .
Conflicts With : pikachu
Replaces : pikachu
. . 
. .

Offline

#8 2009-04-29 18:17:23

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [solved] why does pacman ignore the 'provides' of installed package ?

Try

provides=('pikachu=1.0.1')
conflicts=('pikachu')

I've seen version numbers in provides lines and have used them myself when creating PKGBUILDs (including in pacpan).

*edit*
Post the database files themselves (/var/lib/pacman/local/ashs-pikachu-1.0.1-2/*).

Last edited by Xyne (2009-04-29 18:18:46)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#9 2009-04-29 19:23:07

ash
Member
Registered: 2008-12-17
Posts: 134

Re: [solved] why does pacman ignore the 'provides' of installed package ?

issue solved

raichu also did depend on some other packages. one of them wanted explicitly the original pikachu

if i try to install mudkip (that depends on pikachu only) pacman uses ashs-pikachu

Offline

Board footer

Powered by FluxBB