Emerge of kde-base/systemsettings-4.5.4 fails with USE=kdeenablefinal. Reproducible: Always Steps to Reproduce: 1. include kdeenablefinal in /etc/make.conf:USE= 2. create /etc/portage/profile/use.mask with the line "-kdeenablefinal" 3. emerge -uDNav world Actual Results: In file included from /usr/include/qt4/QtCore/QDir:1, from /var/tmp/portage/kde-base/systemsettings-4.5.4/work/systemsettings-4.5.4/kcontrol/keyboard/xkb_helper.cpp:22, from /var/tmp/portage/kde-base/systemsettings-4.5.4/work/systemsettings-4.5.4_build/kcontrol/keyboard/kcm_keyboard_final_cpp.cpp:8: /usr/include/qt4/QtCore/qdir.h:107: fel: expected identifier before numeric constant /usr/include/qt4/QtCore/qdir.h:107: fel: expected "}" before numeric constant /usr/include/qt4/QtCore/qdir.h:107: fel: expected unqualified-id before numeric constant . . . Expected Results: successful installation of the package
Created attachment 258006 [details, diff] clean up the namespace after including headers from X.org This patch fixes the build error by cleaning up the namespace after including headers from X.org. Also sent to kde-devel.
Created attachment 258072 [details, diff] use #include <fixx11h.h> to clean up the namespace after including x11 headers Use #include <fixx11h.h>, as suggested by Oswald Buddenhagen, to clean up the namespace after including X11 headers. This fixes the build for me, and is better than the previous patch. Also sent to kde-devel.
Still fails with kde-base/systemsettings-4.5.5.
Fix committed to upstream trunk and 4.6.
4.6 in tree, should be fixed