Re: [opensuse-packaging] How can I get usable debugsource packages?
27 Oct
2009
27 Oct
'09
13:56
On 10/27/2009 02:30 PM, Andreas Jaeger wrote: > On Tuesday 27 October 2009 13:18:37 Dave Plater wrote: > >> On 10/27/2009 12:49 PM, 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 : >>>>>> <debuginfo> >>>>>> <enable/> >>>>>> </debuginfo> >>>>>> >>>>>> into my project meta but I still get empty debugsource packages : >>>>>> |Preparing packages for installation... >>>>>> >>>>>> rosegarden-qt4-debuginfo-10.02-60.1 >>>>>> rosegarden-qt4-debugsource-10.02-60.1 >>>>>> rosegarden-qt4-10.02-60.1 >>>>>> ... 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"? >>>> >>>> Andreas >>>> >> I saw -g mentioned in my searches but couldn't quite understand where it >> was used. I inserted my own C and CXXFLAGS in an attempt to get >> -fno-strict-aliasing flag to work but my other projects use >> $RPM_OPT_FLAGS and also build empty debugsource packages. I've changed >> back to plain $RPM_OPT_FLAGS and still no joy. >> $RPM_OPT_FLAGS expand to :- >> + export 'CFLAGS=-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 >> -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g' >> + CFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 >> -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g' >> + export 'CXXFLAGS=-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 >> -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g' >> + CXXFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 >> -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g' >> which seems to have a -g at the end and there's no sign of strip >> anywhere in the spec file. The project is home:plater rosegarden-qt4 if >> you want to take a look. >> > Looking here: > https://build.opensuse.org/package/live_build_log?arch=x86_64&package=rosegarden- > qt4&project=home%3Aplater&repository=openSUSE_11.2 > > I see that it uses "-g0" which means no debuginfo. So, CXXFLAGS gets ignored > due to the make files somehow. > > Andreas > I restored my CFLAGS string again and added -g and -ggdb to the end of it and the package still had -g0 when it compiled so I appended --enable-debug to %configure in the spec file and now it builds with DEBUG and the debugsource packages aren't empty. This still doesn't explain why other packages don't build debugsource properly but I don't need them anyway. The only explanation are the lines in configure.ac for release packages that says :- ------>RELEASEFLAGS="$RELEASEFLAGS -g0 -O2 -Wall -pipe" <------>MINIMAL_CFLAGS="$MINIMAL_CFLAGS -g0 -O0" Thanks Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
5507
Age (days ago)
5507
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dave Plater