Bug 193602 - qt4: useless debuginfo package
qt4: useless debuginfo package
Product: Fedora
Classification: Fedora
Component: qt4 (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Rex Dieter
Fedora Extras Quality Assurance
Depends On:
Blocks: 193601
  Show dependency treegraph
Reported: 2006-05-30 17:27 EDT by Ville Skyttä
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-06-27 12:07:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ville Skyttä 2006-05-30 17:27:25 EDT
qt4's debuginfo package is useless:

$ rpm -qlp
(contains no files)

More info: http://fedoraproject.org/wiki/Packaging/Debuginfo
Comment 1 Rex Dieter 2006-06-08 09:02:02 EDT
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.
Comment 2 Rex Dieter 2006-06-08 16:38:05 EDT
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.
Comment 3 Rex Dieter 2006-06-08 16:40:37 EDT
It appears (un)setting
works too.
Comment 4 Michael Möllney 2006-06-22 18:12:15 EDT
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:
and analog files.
Shouldn't this be also in this debuginfo???

or is the qt4-devel the right rpm?
Comment 5 Rex Dieter 2006-06-22 18:15:10 EDT
qt4 as-is isn't built with debug libraries (only ./configure --release).  If you
want/need that, please file another report.
Comment 6 Rex Dieter 2006-06-27 12:07:10 EDT
Comment 7 Rex Dieter 2006-06-27 12:18:57 EDT
Re: comment #4 and comment #5, see bug #196513

Note You need to log in before you can comment on or make changes to this bug.