Mailinglist Archive: opensuse-buildservice (248 mails)

< Previous Next >
Re: [opensuse-buildservice] Re: [opensuse-packaging] How can I get usable debugsource packages?
  • From: Dave Plater <davejplater@xxxxxxxxx>
  • Date: Wed, 28 Oct 2009 16:22:52 +0200
  • Message-id: <4AE853BC.3030806@xxxxxxxxx>
On 10/28/2009 11:32 AM, Hans-Peter Jansen wrote:
On Tuesday 27 October 2009, 11:49:58 Andreas Jaeger wrote:

On Tuesday 27 October 2009 11:47:38 Dave Plater wrote:

Hi, I've googled and searched other package's spec files and build logs
but I cant seem to get usable debugsource rpms for my home:plater
rosegarden-qt4 package. I've written :

I think, adding %debug_package to the spec file is enough.

into my project meta but I still get empty debugsource packages :
|Preparing packages for installation...

... running 01-check-debuginfo
... testing for empty debuginfo packages
! rosegarden-qt4-debugsource-10.02-60.1.x86_64.rpm: no debug sources,
deleting package
! rosegarden-qt4-debuginfo-10.02-60.1.x86_64.rpm: WARNING: this
probably means the debug information is invalid

What am I missing?

Are you using $RPM_OPT_FLAGS which includes "-g" to produce debug output?
Or do you remove the debug output somewhere using "strip"?

If rosegarden use qmake, then that's the culprit. qmake is notorious at
boiling it's own kind of (letter-) soup.

Here's what I do for python-qt4, which relies on qmake for _some_ parts,
in order to get the full debug info:

sed -i "s/designer plugin release warn/designer plugin debug warn/"
python --confirm-license --qsci-api --debug
# fix the qmake generated Makefiles, if they exist
for mf in qpy/*/Makefile designer/Makefile; do
[ -f "$mf" ] && sed -i "s/^CFLAGS.*$/CFLAGS = $RPM_OPT_FLAGS
\$(DEFINES)/g" $mf
make %{?jobs:-j %jobs}

I hope, you get an idea..


The culprit turned out to be I made a patch to modify the
build flags, it was overriding everything. I also had to add
--enable-debug to %configure as well.
Dave P
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >