MySQL 5.1.58, double */mysql/mysql for include and lib dirs, missing patches and broken 07110 patch

If you’ve hit any issues after updating to dev-db/mysql-5.1.58 in the tree or the mysql overlay, please test out the new dev-db/mysql-5.1.58-r1. The list of issues you may have hit include packages failing to build by not finding mysql.h, failing to link by not finding -lmysqld, getting an error for missing mysql user and or group or if you used the overlay in between the initial error and the final resolution, failing to apply patch 07110.

The list of bugs that have been fixed by the revbump include:

This should all be fixed now. If you hit any of these issues again, please reopen the respective bugs and or poke me about it.

My apologies for this “mess”, but this was the first release using the new eclasses, mysql-v2 and mysql-autotools to be put in the tree.

This means we’re getting little testing from the community on the ebuilds in the mysql overlay. I’m going to ask for volunteers to improve this, but I’ll leave that for the next blog post.

Gentoo on FOSDEM 2011

Now that FOSDEM 2011 has finished and I’m back to Portugal, I thought I should write a few words about our presence there.
Like on the last few years, we were fortunate enough to have a very good presence there with many Gentoo developers attending the event. It was very rewarding to meet again everyone that I’ve met in the past 2 years and to meet all those that were there for their first time or that I met for the first time. We had 26 people for the Saturday dinner. Thank you very much Guy Martin (gmsoft) for saving us after the plans for the 2 other restaurants got busted. This time we also got 16 people for the Sunday dinner.
I think the discussions we had in our talks were very interesting and look forward to continue them with the rest of the community. So let’s see where we go with Roy’s proposal to reform the Foundation and to open up the community, if we can find new ways to promote Gentoo and, of particular interest to me, if we get more automation in Gentoo. I’ll try to do some work with Andrew and Raúl in the Release Engineering team to address some of the issues that I talked about in my “Releng and catalyst” presentation. I will also try to resume the discussion I started from council with the arch teams to identify hardware requirements and asking for input about arch work. With some contacts we established in FOSDEM, I hope we can soon have more “horse power” for the arch work and that we can have automated testing systems.
In case you weren’t able to attend our talks at FOSDEM or that you want to review them again, thanks to the great work of the OpenSuSE TV team, you can check them at YouTube:

New amarok-2.3.1-r1 ebuild, merged amarok and amarok-utils and embedded mysql status

After another long season without any blog entries, I’m here to write about the recently added to the tree media-sound/amarok-2.3.1-r1 ebuild.

This masked ebuild merges the amarok/amarok-utils features again. The features of the old ebuilds are set by the player and utils use flags. The ebuild has both enabled by default and will force the use of the player use flag if the utils use flag is disabled.
I’ve taken this chance to add the dependency support for the dev-db/mariadb package, but I haven’t tested it myself yet. This fixes bug 320807. I’ve also added a patch that should fix the requirement to build x11-libs/qt-gui and x11-libs/qt-qt3support with the accessibility use flag – bug 319803. I’ve also appended the minimal-toc flag to see if amarok will build for ppc64 and let us finally close bug 280552.
I’m going to drop most of the old amarok/amarok-utils ebuilds from the tree and plan to ask for amarok-2.3.1-r1 to be marked stable very soon.
A very important point for anyone running the stable ebuild is that since amarok-, the embedded use flag was dropped from IUSE defaults, which means that unless you activate it explicitly, amarok won’t use or support libmysqld (the mysql embedded server). This change is the consequence of the substantial changes from the mysql-5.0 to mysql-5.1 source code, that broke our libmysqld shared patch work – bug 238847. At this time we haven’t been able to port our old patch to mysql-5.1 yet. The work on this can be tracked on bug 306315. Because amarok[embedded] will force the use of mysql-5.0 and thus a downgrade from mysql-5.1, I won’t add the embedded use flag to IUSE defaults until the port is complete – any help on the porting is most welcomed. You can read more about the consequences of this change and why it was done in bug 310897.
If downgrading to mysql-5.0 is not an option for you, all you need is to configure amarok to use the external mysql database. Please read the amarok WIKI for details on how to configure the external db and migrate your data from the embedded database. The ebuild notifies you about this in the pkg_postinst warnings if you don’t activate the embedded use flag.

Amarok-2.2.0/1 and >=binutils-2.20

I’ve just bumped media-sound/amarok in the tree to 2.2.1-r1 which includes some missing deps.
Even though 2.2.1 hit the tree before the official release, I’m a few days behind in the bump and unmasking it – the mask should be out when you read this.
Unfortunately, amarok-2.2.0 and amarok-2.2.1 segfault on start when built with >=binutils-2.20 even though they have no issue starting with >=binutils-2.20 if built with a previous version of binutils – see bug #290662 for more details.
While the issue isn’t solved, here is a quick workaround:

# emerge -1 =binutils-2.19.1-r1 && emerge -1 amarok && emerge -1 binutils

compiz KDE support and libcompizconfig

This is a quick note for anyone using compiz, that x11-wm/compiz-0.7.8-r3 will allow KDE-4.3.0 and that the KDE use flags were updated now that KDE-4 has become the “default” KDE version and that 3.5 is approaching its final days.
As such, the kde use flag will add support for KDE-4.X and the kde3 use flag will add support for KDE-3.5. So be sure to check your use flags for compiz.
I plan to move compiz-0.7.8-r3 from the overlay to the tree in a few hours.

Following my attempts to deal with bug 259715, I broke libcompizconfig again – bug 278146. Although I’ve masked libcompizconfig-0.8.2-r2 sometime ago, it was unmasked long enough to break the config files for enough users. If you still have ccsm / compiz failing for you, you need to downgrade to libcompizconfig-0.8.2 and to remove the contents of ~/.config/compiz/compizconfig/. I’m still working on removing the bundled iniparser from libcompizconfig.

amarok-2, amd64 and mysql

As some of you may have noticed, the amarok-2 ebuilds have not been keyworded ~amd64 because of the mysql issue. Tonight, we’ve got a step closer to fix that.
Ive been working on a patch for mysql to get libmysqld to be built as a shared lib for over 2 months now. I’ve added an initial patch on January 3rd. Tonight, I was able to finally get a working patch for mysql-5.0.76:

atlantis@lap64 ~/kde $ ls -la /usr/lib64/mysql/libmysqld.*
-rw-r–r– 1 root root 9447588 Mar 29 01:39 /usr/lib64/mysql/libmysqld.a
-rwxr-xr-x 1 root root 1088 Mar 29 01:38 /usr/lib64/mysql/
lrwxrwxrwx 1 root root 18 Mar 29 01:39 /usr/lib64/mysql/ ->
lrwxrwxrwx 1 root root 18 Mar 29 01:39 /usr/lib64/mysql/ ->
-rwxr-xr-x 1 root root 5054576 Mar 29 01:39 /usr/lib64/mysql/

This patch needs to be properly tested and will likely get some clean-ups, but it’s working locally. This has taken a considerable amount of work and time from me, but has only been possible thanks to Diego E. “Flameeyes” Pettenò – kudos to him.
AFAIK, this means that Gentoo is the first distro to include a shared lib libmysqld and after Robin “robbat2” Johnson, cleans the patch and he’s happy with it, we’ll try to get it upstream.
I’ve delayed this post a few hours trying to get amarok-2.0.2 building, but it’s still failing because of qtscriptgenerator. However, it is already linking to libmysqld though:

lap64 amarok_build # pwd
lap64 amarok_build # scanelf -n lib/
ET_DYN,,,,,,,,,,,, lib/

If you like to see it with a “prettier output”:

lap64 amarok_build # ls lib/ | xargs scanelf -L -n -q -F ‘%n #F’ | tr , ‘ ‘ | xargs qfile -C | sort -u
dev-db/mysql (/usr/lib64/
kde-base/kdelibs (/usr/kde/4.2/lib64/
kde-base/kdelibs (/usr/kde/4.2/lib64/
kde-base/kdelibs (/usr/kde/4.2/lib64/
kde-base/kdelibs (/usr/kde/4.2/lib64/
sys-devel/gcc (/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/
sys-libs/glibc (/lib64/
sys-libs/glibc (/lib64/
x11-libs/qt-core (/usr/lib64/qt4/
x11-libs/qt-dbus (/usr/lib64/qt4/
x11-libs/qt-gui (/usr/lib64/qt4/

I’m trying some of the patches in the amarok + qt4.5 bug and will hopefully get it to build soon. So it seems we might be able to have a amarok2+amd64 party in Gentoo soon B)


atlantis@lap64 /home/gentoo-cvs/jmbsvicetto/media-sound/amarok $ qlist -IUv amarok
media-sound/amarok-1.4.10-r2 (amazon ipod kde mp4 musicbrainz mysql njb opengl python visualization)
media-sound/amarok-2.0.2 (cdaudio ipod kdeprefix mp3tunes mp4 njb opengl)

I think a party is due in #gentoo-kde!! 😀 I’m going to update the amarok ebuild in the overlay in a minute. So, let’s PARTY!!!

Cairo-Dock in the destkop-effects overlay

After another “short” break in my blog posts and just a few days late, I’m here to let anyone willing to try out cairo-dock that version has been sitting in the desktop-effects overlay for sometime now.

commit edd596311612d17a6ec482a9cc8b47086a74be20
Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <>
Date:   Sat Dec 20 13:45:34 2008 -0100

    Added cairo-dock- - thanks to Bill Smith <sememmon at gmail dot com> for the ebuild.

I’ll be testing version 2.0.0-beta2.1 in the next days, so expect to see updated ebuilds soon. It would be helpful to get some feedback about cairo-dock to evaluate if it would be a good addition to the tree or not.
Thanks Bill for nagging me about this and sorry for the delay.

KDE-4.2 is now unmasked

To give an update on my last blog entry, after some work in the missing ebuilds and patches and after reviewing the KDE project page and the 4.X guide, I’ve removed the package.mask entry for 4.2.0. So after the file is propagated to the mirrors, you’ll be able to update to 4.2.0.
As always, we hope you have much fun, but if you find any snags, let us know in #gentoo-kde or in bugzilla. Before you fill any bugs, please double check the KDE-4.X Guide[1] and search in bugzilla for the bug. As we already have some open bugs[2], you may want to start there.

[1] –
[2] –


It’s been a long time since I’ve last blogged about KDE, so let me bring some “fresh news”.
The Gentoo KDE team is getting ready to put the 4.2.0 release[1] in the tree as soon as the tarballs are available. The ebuilds are already available in the kde-testing[2] overlay and I’ve added yesterday the mask[3] to the tree.
Anyone wishing to install or upgrade to the 4.2.0 release should read carefully the KDE 4.X guide[4]. We’ll be reviewing this guide carefully to “smooth” the upgrade from 4.1 to 4.2.

[1] –
[2] –;a=summary
[3] –
[4] –

PS – In case you don’t know how KDE releases work, you won’t be able to upgrade until the tarballs are officially released into the KDE mirrors. So don’t try to use the ebuilds in the overlay if you don’t have access to the tarballs and instead be sure to wait for them to hit the tree.