Fedora Linux Support Community & Resources Center
  #1  
Old 25th September 2008, 01:06 AM
FunkyRes Offline
Registered User
 
Join Date: Nov 2004
Posts: 189
disable debuginfo

Package consisting of text files that ARE platform dependent and therefore can NOT go into a noarch package.

How the smurf do I stop the debuginfo package from being created?

At the top of the spec file I've tried:

%define _enable_debug_packages %{nil}
%define __debug_package %{nil}
%define debug_package %{nil}

but it keeps building a completely worthless debug package.
I'm fairly sure one of those three did it back in fc2 days.
I know if I edit /usr/lib/rpm/rpmrc and remove /usr/lib/rpm/redhat/macros from the macro path debuginfo packages are not built - so it is something in that macro file, I just can't figure out what the bleep shuts it off for a single package build.
Reply With Quote
  #2  
Old 25th September 2008, 03:20 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
I think this line should be sufficient

Code:
%define debug_package %{nil}
put it in the %build section of the spec file.

How did you set up your build environment?

eg

Code:
sudo yum install rpmdevtools yum-utils
rpmdev-setuptree
cd ~/rpmbuild
yumdownloader --source grub
rpm -ihv grub*.src.rpm
vi SPECS/grub.spec  (add debug_package line to %build section)
rpmbuild -ba SPECS/grub.spec
This will create the grub rpm in ~/rpmbuild/RPMS/i386, and will not build a debuginfo package

(for grub build you need 'yum install ncurses-static gnu-efi)

Last edited by sideways; 25th September 2008 at 03:23 PM.
Reply With Quote
  #3  
Old 25th September 2008, 05:41 PM
FunkyRes Offline
Registered User
 
Join Date: Nov 2004
Posts: 189
I had a typo - that's all.
It's fixed now.

My build environment is actually an LFS that I am RPM bootstrapping (using the fedora redhat-config package as it really does have some nicer that stock macros in it)
Reply With Quote
Reply

Tags
debuginfo, disable

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Current GMT-time: 16:51 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat