Libreoffice emerged fine. Then I switched to unstable and got an emerge error on (among other things) libreoffice.

So I switched libreoffice back to stable and tried again. Didn't work, needed some perl module, installed that, then tried emerge a fourth time, now I get the following error:

Code:

-----------------------------------------------------------------------
Oh dear - something failed during the build - sorry !
For more help with debugging build errors, please see the section in:
http://wiki.documentfoundation.org/Development

Hi, i presume you did unmerge the unstable version and its dependencies ie run

Code:

emerge --depclean -p

and rip off the crap the unstable libreoffice installed, might be that perl module you installed for the unstable version or something similar.

This doesn't seem to work for me for the following reason:

Code:

# emerge --depclean -p

* Always study the list of packages to be cleaned for any obvious
* mistakes. Packages that are part of the world set will always
* be kept. They can be manually added to this set with
* `emerge --noreplace <atom>`. Packages that are listed in
* package.provided (see portage(5)) will be removed by
* depclean, even if they are part of the world set.
*
* As a safety measure, depclean will not remove any packages
* unless *all* required dependencies have been resolved. As a
* consequence, it is often necessary to run `emerge --update
* --newuse --deep @world` prior to depclean.

Calculating dependencies... done!
* Dependencies could not be completely resolved due to
* the following required packages not being installed:
*
* >=dev-libs/icu-4.8.1.1:0/51.1= pulled in by:
* app-office/libreoffice-4.0.4.2
*
* >=app-text/poppler-0.16:0/35=[xpdf-headers(+),cxx] pulled in by:
* app-office/libreoffice-4.0.4.2
*
* Have you forgotten to do a complete update prior to depclean? The
* most comprehensive command for this purpose is as follows:
*
* emerge --update --newuse --deep --with-bdeps=y @world
*
* Note that the --with-bdeps=y option is not required in many
* situations. Refer to the emerge manual page (run `man emerge`)
* for more information about --with-bdeps.
*
* Also, note that it may be necessary to manually uninstall
* packages that no longer exist in the portage tree, since it may
* not be possible to satisfy their dependencies.