You are not logged in.

#1 2011-04-07 08:09:41

tarakbumba
Member
From: Turkiye
Registered: 2008-07-17
Posts: 72

[SOLVED]Weird conflict with official packages and aur packages

Hi. I have enchant-zemberek installed on my system. It is my package that i'm maintaining at AUR. Yesterday i tried to install poedit which depends on enchant. Weirdly altoguh enchant-zemberek provides enchant; pacman tried to remove enchant-zemberek and instead install enchant. Otherwise it won't let me install poedit. I have updated enchant-zemberek PKGBUILD and pacman let me install poedit without forcing me to install enchant. Here is what i have in my first PKGBUILD before update:

replaces=("enchant")
provides=("enchant")
conflicts=('enchant')

And after updating;

replaces=("enchant=${pkgver}")
provides=("enchant=${pkgver}")
conflicts=('enchant')

Now, i'm wondering while an AUR package have different package name than the official one why pacman tries to replace it? Why PKGBUILD needs package version in provides tag? Say, if i want to keep my own my-abc-1.0-1.i686.pkg.tar.xz but official package abc-1.1-1.i686.pkg.tar.xz released; must i keep my package only in Ignores array? Should i report this as a bug?

Last edited by tarakbumba (2011-04-07 09:52:41)


Say what you mean, mean what you say

Offline

#2 2011-04-07 08:33:40

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

Re: [SOLVED]Weird conflict with official packages and aur packages

No, its not a bug. poedit depends on gtkspell which depends on enchant>=1.5.0 - your original custom enchant package did not provide any specific version of enchant, so pacman pulled in the repo package instead to satisfy the versioned dependency. As you have built your package with replaces=enchant, pacman also honours that.

Offline

#3 2011-04-07 09:52:17

tarakbumba
Member
From: Turkiye
Registered: 2008-07-17
Posts: 72

Re: [SOLVED]Weird conflict with official packages and aur packages

Thank you for quick reply, I have worked on rpm packgaging before. Rpms don't work this way; so i was a little bit confused but your explanation satisfied me. Thanks again, i' m marking this topic as solved.


Say what you mean, mean what you say

Offline

Board footer

Powered by FluxBB