giblib depends on media-libs/imlib2 with USE="X", but doesn't check this dependency until the src_unpack() phase. This causes Portage to complete dependency resolution, then fail during src_unpack(). Reproducible: Always Steps to Reproduce: 1. USE="-X" emerge media-libs/imlib2 2. emerge -av media-libs/giblib Actual Results: giblib's dependency on media-libs/imlib2 is satisfied, so building continues. It then fails in the src_unpack phase, asking the user to re-emerge Imlib2 with USE="X" Expected Results: Dependencies should be in DEPEND, not in src_unpack(). Attaching a patch in a moment.
Created attachment 241241 [details, diff] Updates ebuild to EAPI-2 and adds USE dependency
Hi, no need to do the check in src_unpack, use EAPI-2's src_prepare. No need to do the check, portage assures +X on this dep. Anyway, do you have a build.log displaying the error? Michael
Created attachment 241255 [details] build.log My patch removes the check from src_unpack, and instead adds DEPEND=">=media-libs/imlib2-1.0.3[X]", so I'm not sure what your comment is in reference to.
*** Bug 359055 has been marked as a duplicate of this bug. ***
fixed in 1.2.4-r1