I have both "X" and "cups" in my USE setting. I tried to emerge cups without it being initially installed. The merge fails on compiling gimp-print because the cups library could not be found. This appears to be because the cups ebuild rdepends on ghostscript and the ghostscript ebuild depends on gimp-print if "X" is in the USE setting. Of course, gimp-print tries to use cups because "cups" is in the USE setting. Relevant ebuild files: /usr/portage/net-print/cups-1.1.15-r2.ebuild /usr/portage/app-text/ghostscript/ghostscript-7.05.5.ebuild /usr/portage/media-gfx/gimp-print/gimp-print-4.2.2.ebuild As a workaround, I merged the older cups-1.1.14-r4.ebuild (which does not depend on ghostscript) and then remerged cups.
*** This bug has been marked as a duplicate of 8527 ***