On Thu, Mar 22, 2012 at 8:10 AM, Ammler
So how can I turn debuginfo off for such a package?
osc build --disable-debuginfo
if you disable debug, do you then need to strip again or will rpm still strip the binary and just remove the debug files?
Hi, NM, %debug_package %{nil} does not work, rpmbuild will tell you: error: Package already exists: %package debugsource yet Guido's --disable-debuginfo works very well. To Ammler: I'm redistributing binaries, so the libraries have already been stripped. But if you build without --disable-debuginfo, some of the outputs are: extracting debug info from /home/abuild/rpmbuild/BUILDROOT/Livestation-3.1.0-1.x86_64/opt/Livestation/Livestation.bin *** WARNING: No build ID note found in /home/abuild/rpmbuild/BUILDROOT/Livestation-3.1.0-1.x86_64/opt/Livestation/Livestation.bin WARNING: /opt/Livestation/lib/libavcodec.so.52 is already stripped! WARNING: /opt/Livestation/lib/libavformat.so.52 is already stripped! WARNING: /opt/Livestation/lib/libavutil.so.50 is already stripped! extracting debug info from /home/abuild/rpmbuild/BUILDROOT/Livestation-3.1.0-1.x86_64/opt/Livestation/lib/liblive555.so *** WARNING: No build ID note found in /home/abuild/rpmbuild/BUILDROOT/Livestation-3.1.0-1.x86_64/opt/Livestation/lib/liblive555.so WARNING: /opt/Livestation/lib/libswscale.so.0 is already stripped! cpio: /build/buildd/glibc-2.8~20080505/build-tree/glibc-20080505/csu: Cannot stat: No such file or directory as you can see, it tries to strip libraries. but they're gone with --disable-debuginfo. so I think you have to strip your libraries manually because it seems no strip command is called. Thanks for all your help. Another interesting thing I saw is if you build it normally, with debuginfo on actally cause no error, but if you specify it by adding #KEEP NOSOURCE DEBUGINFO to the header section of specfile. it will stop at the end of the scriptlets I pasted. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org