If media-libs/libfpx-1.2.0.12 is installed and one tries to install graphicsmagick, it causes random C++ dependency errors and the perl modules breaks.
Fixed in cvs in 1.1.7-r2.