You are not logged in.

#1 2008-01-13 07:21:49

blu3ness
Member
From: Edmonton, Canada
Registered: 2007-12-28
Posts: 169

lcd font packages conflicting with original packages

Hello all, Today after upgrading pacman I tried to do pacman -Syu after changing all my config files to be using .pacnew versions.

And I was greeted with these messages

:: cairo conflicts with cairo-lcd. Remove cairo-lcd? [Y/n] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: cairo: conflicts with cairo-lcd

I love those lcd packages and they make the font look crispy clear, I'm wondering what are the workarounds for this problem? (yes I want to keep cairo-lcd and upgrade other stuff cool)


Archlinux on Compaq Presario v5000 laptop smile

Offline

#2 2008-01-13 07:30:01

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: lcd font packages conflicting with original packages

The PKGBUILD should contain:

provides=('cairo')

Offline

#3 2008-01-13 09:12:54

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: lcd font packages conflicting with original packages

It already contained that line. But with pacman 3.1, this isn't enough anymore.
The problem is that a few packages require a specific version of cairo, for example : depends=('cairo>=1.4.10')
For the providers of cairo (eg cairo-lcd) to satisfy this dependency, the provides line MUST specify a version. For example :

provides=('cairo 1.4.12')

See http://bugs.archlinux.org/task/9162


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#4 2008-01-13 10:08:18

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: lcd font packages conflicting with original packages

Hmm, that sucks. The version should be there as a *default*, with an override for the rare cases when the default causes a problem.

Offline

#5 2008-01-13 10:56:14

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: lcd font packages conflicting with original packages

brebs wrote:

Hmm, that sucks. The version should be there as a *default*, with an override for the rare cases when the default causes a problem.

Is it really that bad? How many packages really need to be fixed? Apparently not too much.
For now, only a few unofficial packages seem concerned : cairo-lcd , qtmod, and maybe a few others kdemod packages.
I don't think it's that hard to fix, you just need to notice the maintainers of these packages and be patient.
Since cairo-lcd is a community package, this can be reported on flyspray, and already is.
For kdemod, you must have a look at their project.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#6 2008-01-14 10:06:57

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

Re: lcd font packages conflicting with original packages

shining wrote:

How many packages really need to be fixed? Apparently not too much.

Nope:
- cairo-lcd
- libxft-lcd
- freetype2-lcd

These I had to remove before I could upgrade my system yesterday. Glad I'm not the only one and even more glad that I, after having made these changes will not be doing this with every update (i.e. almost every night wink)

Zl.

Offline

#7 2008-01-14 17:02:44

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: lcd font packages conflicting with original packages

This is much better:

provides=("cairo $pkgver")

Although I still think that $pkgver should be the default version to include, unless one is specified.

Offline

#8 2008-01-15 00:12:05

blu3ness
Member
From: Edmonton, Canada
Registered: 2007-12-28
Posts: 169

Re: lcd font packages conflicting with original packages

what about the other packages? namely libxft-lcd, freetype2-lcd, do they only need the version number in their PKGBUILD?

Update

The answer is yes tongue Thanks all.

Last edited by blu3ness (2008-01-15 00:59:20)


Archlinux on Compaq Presario v5000 laptop smile

Offline

#9 2008-01-15 11:20:31

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: lcd font packages conflicting with original packages

I have bad news, there are problems with this syntax.

For example if an user forgot to put quotes in the PKGBUILD :

provides=(cairo 1.4.12)

This would be seen as two different provisions by makepkg : cairo and 1.4.12.

For a similar reason, db scripts like repo-add are confused by this syntax and don't handle it properly.
repo-add could be fixed, but we would still have problems with the above case where quotes were forgotten.
The other scripts dealing with these provide arrays would also need to be checked.

That's why we are considering changing the syntax to the following :

provides=(cairo=1.4.12)

pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#10 2008-01-16 18:21:10

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: lcd font packages conflicting with original packages

Well, it looks like my whole system is victim to this. Why? Because this is 60% AUR & kdeMOD! lol No big updates yet so it's not much of a PITA. For most that have no conflicts, just adding --nodeps does it. But for those that do have conflict, a rebuild is required.

But at the end of the day, what this means is, practically, every single Arch Linux package must be updated to reflect the new standard. Arghh..lately i've been failing too much. Encountering segfaults with 1 application and namcap is always complaining about an integer on every package built. Too used to a perfect system, life as a geek begins now.


I need real, proper pen and paper for this.

Offline

#11 2008-01-16 18:44:55

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: lcd font packages conflicting with original packages

Every single Arch Linux package uses provisions? That can't be right smile And all packages don't use versioned dependencies either.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#12 2008-01-16 18:51:16

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: lcd font packages conflicting with original packages

hmm yeah you're right now that i think of it..didn't understand what was going on initially. too sad of my failure sad


I need real, proper pen and paper for this.

Offline

#13 2008-01-17 00:37:59

cromo
Member
From: Czestochowa, Poland
Registered: 2006-09-20
Posts: 87

Re: lcd font packages conflicting with original packages

Have a look at the reopening request I filed here: http://bugs.archlinux.org/task/9162

Last edited by cromo (2008-01-17 00:39:17)

Offline

#14 2008-01-17 01:09:49

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: lcd font packages conflicting with original packages

Show your qt-enhanced PKGBUILD - it's not on AUR.

Offline

#15 2008-01-17 07:09:35

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: lcd font packages conflicting with original packages

Ok let me clarify my understanding. Basically, if a depends in a PKGBUILD is a specific version eg. depends=('qt>=3.3.8') then if it provides qt, the provision must also follow that syntax as in provides=('qt>=3.3.8') and that's all there is to it..right?


I need real, proper pen and paper for this.

Offline

#16 2008-01-17 07:14:32

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: lcd font packages conflicting with original packages

Wrong. See example.

Offline

#17 2008-01-17 07:44:11

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: lcd font packages conflicting with original packages

I tried to explain why we don't use the same syntax for provisions and dependencies here :
http://bugs.archlinux.org/task/9171#comment23526

However, as I explained above, 3.1.1 will use '=' instead of ' ' for separating the name and the version. But you still won't be able to use '>=', '<=', etc.. Only '='.
This will of course be documented in the man page (man PKGBUILD), but is also already on the wiki :
http://wiki.archlinux.org/index.php/The … guidelines


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#18 2008-01-17 09:05:30

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: lcd font packages conflicting with original packages

Thanks. So it's exact now. I get it, because this way it makes more sense as normally a package which provides another package above or equal to one version it should conform to that exact version. That way many potential discrepencies can be avoided.

Last edited by schivmeister (2008-01-17 09:10:45)


I need real, proper pen and paper for this.

Offline

#19 2008-01-17 10:53:39

cromo
Member
From: Czestochowa, Poland
Registered: 2006-09-20
Posts: 87

Re: lcd font packages conflicting with original packages

brebs wrote:

Show your qt-enhanced PKGBUILD - it's not on AUR.

You'll find it here: http://kdemod.ath.cx/svn/branches/kde3/qt-enhanced/
/var/lib/pacman/local/qt-enhanced-3.3.8-16/depends has

%PROVIDES%
qt 3.3.8
just to be sure.

Offline

#20 2008-01-17 11:03:30

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: lcd font packages conflicting with original packages

Speculating wildly, maybe you need to reinstall it with pacman 3.1.0-1

Offline

#21 2008-01-17 11:38:35

cromo
Member
From: Czestochowa, Poland
Registered: 2006-09-20
Posts: 87

Re: lcd font packages conflicting with original packages

It's been installed with 3.1.0

Anyway, poppler's problem seems gone, however I still have similar issue with kdemod-kdelibs:
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (nie udało się usatysfakcjonować zależności)
:: amarok-engine-xine: requires kdelibs>=3.5.7
:: gwenview: requires kdelibs>=3.5.7
:: k3b: requires kdelibs>=3.5.6
:: krename: requires kdelibs>=3.3.0

kdemod-kdelibs's pkgbuild is here: http://kdemod.ath.cx/svn/branches/kde3/kdelibs/PKGBUILD
It seems fine. I reinstalled kdemod-kdelibs package, but it didn't help.

EDIT. OK, removing all of these packages with their dependencies, reinstalling kdemod-kdelibs and installing the packages again helped. This still however seems a weird problem.

Last edited by cromo (2008-01-17 13:17:44)

Offline

#22 2008-01-17 14:25:39

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: lcd font packages conflicting with original packages

cromo wrote:

EDIT. OK, removing all of these packages with their dependencies, reinstalling kdemod-kdelibs and installing the packages again helped. This still however seems a weird problem.

That's a bit strange indeed. How were you installing the packages? With pacman -U or -S?
If you were using -S, problems are expected, because the tool for building the sync db (repo-add) is broken and doesn't support versioned provisions correctly.
If you were using -U, then I don't know. You could run the testdb tool, to check your system doesn't have broken dependencies.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#23 2008-01-19 08:22:24

bionnaki
Member
Registered: 2006-09-05
Posts: 289

Re: lcd font packages conflicting with original packages

I am also having this trouble, but with the ubuntu packages:

:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
archlinuxfr is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...
:: freetype2 conflicts with freetype2-ubuntu. Remove freetype2-ubuntu? [Y/n] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: freetype2: conflicts with freetype2-ubuntu

not exactly sure how to solve this.

Offline

#24 2008-01-19 08:36:02

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: lcd font packages conflicting with original packages

First do a quick check:

$  pacman -Qi freetype2-ubuntu | grep Prov
Provides       : freetype2 2.3.5

And a sanity check:

$ grep prov /var/abs/local/freetype2-ubuntu/PKGBUILD 
provides=('freetype2 2.3.5')

Then do a reinstall:

pacman -Rd freetype2-ubuntu
cd /var/abs/local/freetype2-ubuntu
makepkg -fi --asroot

Offline

#25 2008-01-19 11:48:54

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: lcd font packages conflicting with original packages

Why the extra effort in this case? One could pacman -Sd or pacman -Sud, no?


I need real, proper pen and paper for this.

Offline

Board footer

Powered by FluxBB