Re: [opensuse-packaging] How can I get usable debugsource packages?
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. Thanks Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
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 -- Andreas Jaeger, Program Manager openSUSE, aj@{novell.com,opensuse.org} Twitter: jaegerandi | Identica: jaegerandi SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
participants (2)
-
Andreas Jaeger
-
Dave Plater