Gentoo/Layman/eix -update problems.

`eix` is possibly the most handy tool in the (gentoo) world. Rather than having to use `emerge -s` to search through portage (or any of your overlays), `eix` keeps a database of the contents and returns search results up to 100 times faster than using emerge.

Sadly, it seems that if you add an overlay to gentoo (for example `layman -a jokey`) and then run `eix-update`, it does not include the newly added overylay, even though it re-scans the default portage tree and any other overlays you might have installed. This, is very annoying!

This is also the second time I’ve been hit by this problem, and as I can’t remember how it was fixed the first time1, it seemed like a good idea to mention it here.

So here we go. We are going to use the overlay jokey as it has a copy of Sun’s Virtualbox in it that I’m after, so:

`layman -a jokey` -this adds the overlay.`update-eix-layman add` -this is the command we want, to get eix to add the new overlay into its database
`eix –in-overlay jokey` -now shows the contents of the overlay. woop!

Actually, I remember bits.
I remember telling someone to use it over IRC in #gentoo recently (ish), and it turns out my chat log is just over 450MB for that channel, so its taking a little while to grep, especially as I can’t remember what I’m looking for ↩

Explanation: If your /etc/make.conf does not source layman/make.conf,
then the layman overlays are not considered as part of you PORTDIR_OVERLAY;
in this case, they are are usually not added to your eix database and thus
cannot be found with eix.
However, you might want to add/remove them temporarily to your eix database
without changing your /etc/make.conf. This is the purpose of this script.
This script is also meant as an example how to use eix-functions.sh.

The following commands are provided:

add: Add the local layman overlays to the eix database
remove: Remove the local layman overlays from the eix database.