Archive for November, 2009

Gentoo Portage: libxcb and broken libraries

Saturday, November 14th, 2009

When using the Gentoο distribution, updating all your installed packages should be as easy as:
# emerge -avDuN world

But, when I tried it yesterday, It wouldn’t work: It could not emerge media-libs/xine-lib.

I tried running revdep-rebuild to find any broken libraries and it found a lot of them, all missing files from libxcb. I tried to emerge it, but I realized it was part of the packages “emerge world” had already emerged.

After doing some googling, I found Gentoo libxcb 1.4 Upgrade Guide. It says you have to manually run a bash script, then revdep-rebuild and finally remove an outdated shared library file.

So, be careful when you upgrade libxcb, world or any package that depends on libxcb (I think the new Xorg >= 1.6 is one of them).

However, when things like this happen, I always wonder: Why do I have to read upgrade guides and run things manually? Isn’t emerge supposed to do this for me? I’m sure there is some kind of explanation, but isn’t there some way to get around this? Maybe an option on emerge?

Even the annoying “eselect news” doesn’t inform you about this important guide. Instead, it keeps popping up every time it finds an article that you will surely not be interested to read (an exception was the new article about KDE 3.5 and the sunset overlay).