How to custom build a debuginfo package for rpm built from binaries?

913 Views Asked by At

I want to build my main rpm from binaries, not source, this is already done, but now I need to generate a debug-info rpm package to come with my main rpm

I want to do something as simple as

objcopy --debug-only mybinary => put that into mybinary-debuginfo.rpm

Is that possible with Rpmbuild?

1

There are 1 best solutions below

0
On BEST ANSWER

@DanilaVershinin was right the binaries are stripped and the debug_info was packaged correctly (you can rely on them being stripped and debug_info separated if they are installed as binaries)

It was a tiny change that I had to put in my .spec file:

%define _debugsource_template %{nil}

It is not present in any documentation so might be unstable