qt4's debuginfo package is useless: $ rpm -qlp http://fedoraproject.org/extras/development/i386/debug/qt4-debuginfo-4.1.3-5.fc6.i386.rpm (contains no files) More info: http://fedoraproject.org/wiki/Packaging/Debuginfo
Looks like qmake is to blame, it uses (by default): QMAKE_STRIP = strip QMAKE_STRIPFLAGS_LIB += --strip-unneeded So, at least for the initial qt4 (rpm) build, I'll have to override these (default) values.
This will also affect all(most?) apps/libraries built against qt4 using qmake. They will also end up with useless -debuginfo rpms. For example, see texmaker-debuginfo-1.3 currently in Extras. 2 options: (1) Disable QT_STRIP (unconditionally). patch mkspecs/%{platform}/qmake.conf: QMAKE_STRIP = /bin/true (2) Create a new QMAKESPEC, named, say, debuginfo(*), cloning mkspecs/default to mkspecs/debuginfo, and then modify mkspecs/debuginfo/qmake.conf to include instead: QMAKE_STRIP = /bin/true Default behavior would stay the same (ie, include the ability to strip, which matches upstream default behavior), while allowing a different QMAKESPEC for packagers who want/need (useful) -debuginfo rpms. This would require packagers to use: qmake4 -spec debuginfo and/or set export QMAKESPEC=debuginfo before running qmake4. (*) debuginfo is the first name I came up with. Can use any new/unique name here.
It appears (un)setting QMAKE_STRIP = works too.
But where to find the qt4 debug libraries. using in the qt .pro file: CONFIG += debug makes the linker complain about: /usr/bin/ld: cannot find -lQtGui_debug I can't find the package containing: libQtGui_debug.so.4.1.3 and analog files. Shouldn't this be also in this debuginfo??? or is the qt4-devel the right rpm?
qt4 as-is isn't built with debug libraries (only ./configure --release). If you want/need that, please file another report.
Reclosing...
Re: comment #4 and comment #5, see bug #196513