Rebuild meta-package on Gentoo

September 21, 2008 · Posted in Gentoo, Linux · 2 Comments 

For those who want to rebuild a meta package in gentoo , I have some bad news. Its not possible on portage 2.1.

There are some workarounds on this but still you will end up rebuilding many useless packages

Lets assume you want to rebuild kde-meta:3.5 meta package

  1. You can use emerge -eav kde-meta:3.5. If you try this you will see that you will emerge more than 500 packages. This is overkill
  2. You can use a custom script.This script will find any package in kde-base category with 3.5 slot and rebuild it. Much better than before
    for i in $(qlist -C -I -L -S kde-base/*:3.5);do emerge $i;done
  3. Unmask and emerge portage-2.2 and use sets
    In portage 2.2 there are no meta packages but sets. So if you want to rebuild kde3.5 you need to do the following

    emerge @kde3-x

    Sets can be found under /usr/portage/sets/

GreekBloggers.com
Patras Wireless Metropolitan Network
Planet Hellug
iloog
forum hellug