27 Oct
2009
27 Oct
'09
12:18
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