After trying to convert from xorg 1.3.0.0-r6 (stable) to 1.5.3 I gave up and removed all the stuff added to /etc/portage/package.keywords for xorg-server-1.5.3. Then I did: # emerge -uaD world There were 3 packages: xf86-input-keyboard-1.1.1, xf86-input-mouse-1.2.3, and xf86-video-vesa-1.3.0 that were built before xorg-server-1.3.0.0-r6. They could not be built properly becuase the header files required were for xorg-server-1.5.3 I think that xorg-server must be installed before xf86-input-keyboard, xf86-input-mouse, and xf86-video-vesa. Reproducible: Always Steps to Reproduce: 1.Add to /etc/portage/package.keywords: ~x11-base/xorg-server-1.5.3 ~x11-libs/pixman-0.12.0 ~x11-proto/xproto-7.0.13 ~x11-apps/xauth-1.0.3 ~x11-libs/libXrender-0.9.4 ~x11-proto/renderproto-0.9.3 ~x11-proto/xextproto-7.0.3 ~x11-libs/libXau-1.0.4 ~x11-libs/libXext-1.0.4 ~x11-proto/inputproto-1.4.4 ~x11-libs/xtrans-1.2.2 ~x11-misc/xkeyboard-config-1.3 ~media-libs/mesa-7.2_rc1 ~x11-proto/printproto-1.0.4 ~x11-libs/libdrm-2.4.1 ~x11-libs/libX11-1.1.5 ~x11-proto/xf86driproto-2.0.4 ~x11-libs/libXxf86vm-1.0.2 ~x11-apps/mesa-progs-7.1 ~x11-apps/rgb-1.0.3 ~x11-apps/xinit-1.0.8-r3 ~x11-proto/randrproto-1.2.2 ~x11-libs/libXfont-1.3.3 ~x11-drivers/xf86-input-keyboard-1.3.1 ~x11-drivers/xf86-video-vesa-2.0.0 ~x11-drivers/xf86-input-mouse-1.3.0 ~x11-misc/xkeyboard-config-1.4 2. emerge -uD world 3. rm /etc/portage/package.keywords 4. emerge -uD world Actual Results: Step 4 will compile xf86-input-keyboard-1.1.1, xf86-input-mouse-1.2.3, and xf86-video-vesa-1.3.0 before xorg-server-1.3.0.0-r6. It will not work properly because the wrong header files are used. Expected Results: Compile xorg-server-1.3.0.0-r6 followed by xf86-input-keyboard-1.1.1, xf86-input-mouse-1.2.3, and xf86-video-vesa-1.3.0
But that's what it does, using PDEPEND[1]. Originally, xorg-server was merged before building those drivers. Also, generally Gentoo does not support downgrading. [1] http://devmanual.gentoo.org/general-concepts/dependencies/index.html#post-merge-dependencies