Description of problem: Despite indications that it should be built *without* debug info by default, kdebase has debug info when built from src.rpm. Version-Release number of selected component (if applicable): kdebase-3.2.2-4.src.rpm How reproducible: very Steps to Reproduce: rpmbuild -bb --clean --target=i686 kdebase.spec Actual results: kdebase gets built with debug-info (97 meg package) Expected results: kdebase shouldn't have debug info (i386 pkg is 22 megs) Additional info: Although the spec file has '%define debug 0' at the beginning and it looks like --disable-debug is passed to ./configure, it's ignored. Also noticed there's lots of 'remember to run libtool --finish' messages and it's never run ;) I'm attaching a build log.
Created attachment 100818 [details] head of rpmbuild output
Created attachment 100819 [details] tail of rpmbuild output
Oops, sorry, forgot to mention I'm building on Core 1 if it makes a difference :)
Tried changing '--disable-debug' in specfile to '--enable-debug=no' as ./configure --help suggests, rebuilt, no luck :(
it does not have to do with kdebase! If you don't want to build package with debug info, you should have disable it in your $HOME/.rpmmacros, for example: %_topdir /home/than/rpm %_sourcedir %{_topdir}/SOURCES %_specdir %{_topdir}/SPECS %_srcrpmdir %{_topdir}/SRPMS %_rpmdir %{_topdir}/RPMS %_builddir %{_topdir}/BUILD %vendor Red Hat, Inc. %packager Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> %debug_package %{nil}
Sorry but I tried that and it doesn't make a difference. What I'm getting, regardless, is *one* package, built with debug info. What I need is a package without debug info. The error logs don't give any clue as to what the problem could be. I've also upgraded rpmbuild to the FC2 version in case that is the problem. So far it hasn't helped. As far as I can tell this behaviour has changed since test3, which built fine.
OK, I've tried so many things trying to get this to work that I'm not *exactly* sure that this is the only solution, but the one thing that has made a difference is to install the redhat-rpm-config package and edit the file '/usr/lib/rpm/redhat/macros'. I changed the variable '%_enable_debug_packages' from '1' to '0'. Now, instead of getting one package with debug info, I'm getting separate -debug packages again. In the course of testing I also upgraded several other packages, so it might also be necessary to upgrade rpm, binutils, and libselinux to the FC2 versions. I'm going to continue testing on a fresh FC1 install to see if I can figure out what the necessary packages (and missing buildreq's) are.
it's a rpm issue and not a bug in kdebase.
All packages are built by Red Hat with redhat-rpm-config installed, and setting %debug_package %{nil} works iff redhat-rpm-config is installed. Changing %_enable_debug_packages is an alternative means to the same goal. I see no other rpm problem here. Reopen if I'm wrong.