17

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?
Arthur Ulfeldt
  • 90,827
  • 27
  • 201
  • 284

2 Answers2

28

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.

user318904
  • 2,968
  • 4
  • 28
  • 37
7

find-debuginfo.sh separates the dwarf debuginfo from main binaries/libraries into separate files, which can be packaged into separate FOO-debuginfo subrpms. That way, a user not interested in debugging doesn't have to install the -debuginfo and thus save disk space.

fche
  • 2,641
  • 20
  • 28