bug 156397 is back in 6.5.2 because the build_with_use is gone. betelgeuse@pena /usr/portage/media-libs/mesa $ grep with_use * mesa-6.5.1-r4.ebuild: if ! built_with_use x11-libs/libX11 xcb; then betelgeuse@pena /usr/portage/media-libs/mesa $ i686-pc-linux-gnu-gcc -c -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa/main -I../../../src/mesa/glapi -I../../../src/mesa/drivers/dri/common `pkg-config --cflags libdrm` -O2 -march=nocona -pipe -fomit-frame-pointer -fno-strict-aliasing -fPIC -m32 -DGLX_USE_TLS -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER -DDEFAULT_DRIVER_DIR=\"/usr/lib/dri\" glxext.c -o glxext.o glxext.c:67:26: error: X11/Xlib-xcb.h: No such file or directory glxext.c:712: warning: initialization from incompatible pointer type glxext.c:714: warning: initialization from incompatible pointer type glxext.c:719: warning: initialization from incompatible pointer type glxext.c:722: warning: initialization from incompatible pointer type glxext.c: In function '__glXFlushRenderBuffer': glxext.c:1289: warning: initialization makes pointer from integer without a cast glxext.c: In function '__glXSendLargeChunk': glxext.c:1340: warning: initialization makes pointer from integer without a cast make[3]: *** [glxext.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.2/work/Mesa-6.5.2/src/glx/x11' make[2]: *** [subdirs] Error 1 make[2]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.2/work/Mesa-6.5.2/src' make[1]: *** [default] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.2/work/Mesa-6.5.2' make: *** [linux-dri-x86] Error 2 !!! ERROR: media-libs/mesa-6.5.2 failed. Call stack: ebuild.sh, line 1611: Called dyn_compile ebuild.sh, line 968: Called qa_call 'src_compile' environment, line 3437: Called src_compile mesa-6.5.2.ebuild, line 220: Called die !!! Build failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/media-libs/mesa-6.5.2/temp/build.log'.
*** Bug 166601 has been marked as a duplicate of this bug. ***
Fixed, thanks.