Install KeepassX-0.4.1 on Gentoo

At the moment, there is a bug in keepassx-0.4.1 that prevents keepassx from installing. The problem is that qt3support doesn't have the version that matches the rest of the qt-xx packages. And as a result, we see ebuild "blocks" that we don't have a way to satisfy the dependencies.

It turned out that the solution is quiet simple. As stated in the bug report, qt3support is not needed at all. So all we need to do is to create a custom ebuild that doesn't depend on qt3support.

Follow this post on using custom ebuilds, here are the steps:

  1. Create the folder in your portage overlay tree
    # mkdir -p /usr/local/portage/app-admin/keepassx
  2. set that folder in /etc/make.conf:
    PORTDIR_OVERLAY=/usr/local/portage
  3. # cd /usr/local/portage/app-admin/keepassx
  4. # wget -O keepassx-0.4.1.ebuild 'http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/app-admin/keepassx/keepassx-0.4.1.ebuild?rev=1.1'
  5. # ebuild keepassx-0.4.1.ebuild digest
  6. edit the file keepassx-0.4.1.ebuild and remove "[qt3support]" in the DEPEND lines.
  7. install the package as usual:
    # emerge -av keepassx