You are not logged in.

#1 2009-11-02 18:46:06

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Upgrade and libxft-lcd problem

Hi, smile
In order to have fonts look better on my laptop LCD, i've followed the wiki: http://wiki.archlinux.org/index.php/Fon … 2_packages
So basically i removed cairo and libxft (with the -d option) and installed libxft from [community] and cairo-lcd and fontconfig-lcd from AUR.

Yesterday i tried to upgrade with pacman -Syu and the ouput said something like:

libxft-lcd conflicts with libxft, remove libxft-lcd? [Y/n]

I said no but i was unable to go on with the upgrade.

So basically, this is what i've done: i removed libxft-lcd (with the -d option), upgraded (no problems), then removed (-d) libxft and reinstalled libxft-lcd.

So, have i done the right thing?
Everything works great but i'm not totally sure...why does libxft-lcd causes these kind of problems? It is better to stay with libxft?

Thank you for any help! big_smile

Last edited by rent0n (2009-11-02 18:47:12)


rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686

Offline

#2 2009-11-02 19:18:11

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,799
Website

Re: Upgrade and libxft-lcd problem

xterm requires libxft >= 2.1.14 while libxft-lcd is still at 2.1.13 and therefore only provides libxft = 2.1.13

your system may be fine after your steps, i don't know.  but the actual fix would be for the libxft-lcd maintainer to bump that version to align with the updated libxft.  then all would be smooth.

i've just swapped libxft-lcd out for libxft, i'll revert this when the above happens.

Offline

#3 2009-11-02 19:43:19

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: Upgrade and libxft-lcd problem

Ok, so clear. Thank you very much. smile
I'll come back to libxft then (for now).


rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686

Offline

#4 2009-11-02 22:12:17

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,577

Re: Upgrade and libxft-lcd problem

libxft-lcd doesn't build as 2.1.14 yet, but I just edited /var/lib/pacman/local/libxft-lcd-2.1.13/depends to make it provide libxft=2.1.14, and all is good.
Not a proper fix, obviously.

Offline

#5 2009-11-02 23:47:14

Heema
Member
From: Egypt
Registered: 2008-08-12
Posts: 62

Re: Upgrade and libxft-lcd problem

Ranguvar wrote:

libxft-lcd doesn't build as 2.1.14 yet, but I just edited /var/lib/pacman/local/libxft-lcd-2.1.13/depends to make it provide libxft=2.1.14, and all is good.
Not a proper fix, obviously.

should i do your fix or wait for an update ?

the problem with waiting for an update is that the package is orphan and the aur is out of date too  sad

Offline

#6 2009-11-03 02:14:10

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,577

Re: Upgrade and libxft-lcd problem

Depends on how much you like -lcd packages.  If you feel you could fix problems caused if apps all of a sudden start breaking (just switch back to libxft, likely), then use my fix.

Offline

#7 2009-11-03 02:37:15

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Upgrade and libxft-lcd problem

Heema wrote:
Ranguvar wrote:

libxft-lcd doesn't build as 2.1.14 yet, but I just edited /var/lib/pacman/local/libxft-lcd-2.1.13/depends to make it provide libxft=2.1.14, and all is good.
Not a proper fix, obviously.

should i do your fix or wait for an update ?

the problem with waiting for an update is that the package is orphan and the aur is out of date too  sad

You can update it yourself. Is not hard. You gonna need to edit the patch because some things changed in the source code of 2.1.14. I did it if you like you get it at  http://dpaste.com/115584/ , with this patch I got a working libxft-lcd-2.1.14

EDIT: dpaste fu**** the patch. An updated link http://fma.if.usp.br/~kazuo/xorg-lib-li … lter.patch

Last edited by kazuo (2009-11-03 17:10:44)

Offline

#8 2009-11-03 03:38:00

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,577

Re: Upgrade and libxft-lcd problem

Excellent, thanks kazuo!  Can you describe the changes you made and why?  I'll send it in to a mailing list and try to get libxft-lcd bumped up smile

Offline

#9 2009-11-03 04:24:50

Pastor
Member
From: Surgut, Russia
Registered: 2009-01-24
Posts: 2

Re: Upgrade and libxft-lcd problem

Not work for me sad When I try use this patch, get the following errors:

[pastor@ideapad libXft-2.1.14]$ patch -Np1 < lcd.patch
patching file src/xftglyphs.c
Hunk #1 FAILED at 21.
Hunk #2 succeeded at 939 with fuzz 2 (offset 879 lines).
Hunk #3 FAILED at 1246.
Hunk #4 FAILED at 1263.
Hunk #5 FAILED at 1296.
Hunk #6 FAILED at 1332.
Hunk #7 FAILED at 1411.
Hunk #8 FAILED at 1458.
Hunk #9 FAILED at 1481.
Hunk #10 FAILED at 1556.
Hunk #11 FAILED at 1580.
Hunk #12 FAILED at 1601.
Hunk #13 FAILED at 1612.
12 out of 13 hunks FAILED -- saving rejects to file src/xftglyphs.c.rej

//wbr

Offline

#10 2009-11-03 09:13:29

Heema
Member
From: Egypt
Registered: 2008-08-12
Posts: 62

Re: Upgrade and libxft-lcd problem

kazuo wrote:
Heema wrote:
Ranguvar wrote:

libxft-lcd doesn't build as 2.1.14 yet, but I just edited /var/lib/pacman/local/libxft-lcd-2.1.13/depends to make it provide libxft=2.1.14, and all is good.
Not a proper fix, obviously.

should i do your fix or wait for an update ?

the problem with waiting for an update is that the package is orphan and the aur is out of date too  sad

You can update it yourself. Is not hard. You gonna need to edit the patch because some things changed in the source code of 2.1.14. I did it if you like you get it at  http://dpaste.com/115584/ , with this patch I got a working libxft-lcd-2.1.14

could you update the aur package with your fix  http://aur.archlinux.org/packages.php?ID=22091  ?

Offline

#11 2009-11-03 16:58:31

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Upgrade and libxft-lcd problem

Ranguvar wrote:

Excellent, thanks kazuo!  Can you describe the changes you made and why?  I'll send it in to a mailing list and try to get libxft-lcd bumped up smile

I redid the patch manually. Some lines are inserted/removed from the 2.1.14 code so two hooks failed. In the PKGBUILD the only change needed is to update the version.

Pastor wrote:

Not work for me sad When I try use this patch, get the following errors:

Ahhh! Blame dpaste, it fucked the patch! I link to it again http://fma.if.usp.br/~kazuo/xorg-lib-li … lter.patch

MD5SUM 15375a2ef718cb5f89701639c9b23982

Heema wrote:

could you update the aur package with your fix  http://aur.archlinux.org/packages.php?ID=22091  ?

I cant, I only have a x86_64 cant compile a i686 package to update the lib32 package

Offline

#12 2009-11-03 17:52:22

Heema
Member
From: Egypt
Registered: 2008-08-12
Posts: 62

Re: Upgrade and libxft-lcd problem

i used the PKGBUILD from here http://bbs.archlinux.org/viewtopic.php?pid=647779
but i replaced the patch with yours

Offline

#13 2009-11-03 18:45:12

makimaki
Member
From: Ireland
Registered: 2009-04-02
Posts: 109

Re: Upgrade and libxft-lcd problem

Thanks kazuo, I used your pastebin patch and it worked perfectly on 2.1.14 for me.


====* -- Joke
    O
    \|/ --- Me
    / \             Whooooosh

Offline

#14 2009-11-04 04:47:20

Pastor
Member
From: Surgut, Russia
Registered: 2009-01-24
Posts: 2

Re: Upgrade and libxft-lcd problem

kazuo wrote:
Pastor wrote:

Not work for me sad When I try use this patch, get the following errors:

Ahhh! Blame dpaste, it fucked the patch! I link to it again http://fma.if.usp.br/~kazuo/xorg-lib-li … lter.patch
MD5SUM 15375a2ef718cb5f89701639c9b23982

Thanks, all working now smile

And my PKGBUILD:

# Contributor: mightyjaym <jm.ambrosino@free.fr>

pkgname=libxft-lcd
pkgver=2.1.14
pkgrel=3
pkgdesc="FreeType-based font drawing library for X (with custom LCD filter)"
arch=('i686' 'x86_64')
url="http://xorg.freedesktop.org/"
license=('GPL')
depends=('fontconfig' 'libxrender')
conflicts=('libxft' 'libxft-ubuntu')
provides=("libxft=$pkgver")
makedepends=('pkgconfig')
options=('!libtool')
source=(http://xorg.freedesktop.org/releases/individual/lib/libXft-${pkgver}.tar.bz2 xorg-lib-libXft-lcd-filter.patch)
md5sums=('254e62a233491e0e1251636536163e20'
         '15375a2ef718cb5f89701639c9b23982')

build() {
    cp ${srcdir}/xorg-lib-libXft-lcd-filter.patch ${srcdir}/libXft-${pkgver}
    cd ${startdir}/src/libXft-${pkgver}
    patch -Np1 -i ${startdir}/src/xorg-lib-libXft-lcd-filter.patch || return 1
    ./configure --prefix=/usr --sysconfdir=/etc
    make || return 1
    make DESTDIR=${startdir}/pkg install || return 1
    }

Last edited by Pastor (2009-11-04 05:01:05)


//wbr

Offline

#15 2009-11-05 21:18:30

jordz
Member
Registered: 2006-02-01
Posts: 250

Re: Upgrade and libxft-lcd problem

Thank you for the new patch smile

Offline

Board footer

Powered by FluxBB