[opensuse-packaging] Enable debuginfo packages when rebuilding src rpm files locally
Hi there, We'd like to use the `rpmbuild --rebuild foo.src.rpm` command to rebuild our existing source rpm files on OpenSUSE Leap 15.1. It works but it does not strip the binary ELF files nor does it generate any debuginfo sub-packages. The same source rpm files work fine on Fedora, RHEL, CentOS, and Amazon Linux, at least. How to enable debuginfo generation with the rpmbuild toolchain please? We prefer not using the public build farm services online since we also have our own build farm and some of the packages are proprietary. Thanks for your attention and help. Best, Yichun -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hi,
How to enable debuginfo generation with the rpmbuild toolchain please?
I use /usr/lib/rpm/find-debuginfo.sh in the %install section of the .spec file and it works. so long MUFTI -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Okt 03 2019, Yichun Zhang <yichun@openresty.com> wrote:
How to enable debuginfo generation with the rpmbuild toolchain please?
You need add --define '_build_create_debug 1' to the rpmbuild commandline. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Andreas Schwab
-
J. Scheurich
-
Yichun Zhang