what does find-debuginfo.sh in rpmbuild do? how can I get rid of it?

Arthur Ulfeldt picture Arthur Ulfeldt · Nov 11, 2010 · Viewed 9.6k times · Source

I have two boxes that I'm using to build a source rpm. One of them runs:

/usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/name-of-package

which adds three name.debug files to the RPM_BUID_ROOT.

the other build box does not run find-debuginfo.sh and does not generate these files.

  • What does find-debuginfo.sh do?
  • what causes it to run?
  • how can I make it not run?

Answer

user318904 picture user318904 · Nov 16, 2010

Use rpm macro magic to disable building of the debug package (place this somewhere in the spec file):

%define  debug_package %{nil}

I don't know why one of your boxes builds it and the other does not.