On Tue, 21 Jun 2016, Thomas Boerger wrote:
Hi,
I just want to inform you that I have created a new macro named go_nostrip at https://github.com/openSUSE/golang-packaging/pull/3.
This macro should be used within the packages which use golang-packaging to disable the stripping of golang binaries to avoid issues related to that. Beside that it disables also useless debug sub-packages.
So if you create a package for some golang related tool please use this macro. Under the hood it just calls one undefine and one define:
%undefine _build_create_debug %define __arch_install_post export NO_BRP_STRIP_DEBUG=true
If you want to know more about those options read https://en.opensuse.org/openSUSE:Packaging_guidelines#Debuginfo and https://github.com/golang/go/issues/1242.
Unfortunately it is impossible to use this from the gcc6 package to disable debug stripping just for libgo (I remember a working hack was to remove the executable bits from it, rpm will add it back at packaging time and due to a implementation detail debug-stripping will not be applied). You still get -debuginfo packages IIRC and you _do_ want to have -debugsource packages (I hope you preserve those as well?). Thus, an exclude pattern would have been more useful, like BRP_STRIP_DEBUG_EXCLUDE=libgo*.so* Thanks, Richard. -- Richard Biener <rguenther@suse.de> SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org