2010-04-28 22:41:49 +02:00
|
|
|
Index: BinariesCheck.py
|
|
|
|
===================================================================
|
|
|
|
--- BinariesCheck.py.orig
|
2008-04-17 04:52:37 +02:00
|
|
|
+++ BinariesCheck.py
|
2009-08-21 18:19:06 +02:00
|
|
|
@@ -10,6 +10,7 @@
|
|
|
|
|
|
|
|
import re
|
2008-04-17 04:52:37 +02:00
|
|
|
import stat
|
|
|
|
+import os
|
|
|
|
|
2009-08-21 18:19:06 +02:00
|
|
|
import rpm
|
|
|
|
|
2010-07-02 16:09:25 +02:00
|
|
|
@@ -271,7 +272,9 @@ class BinariesCheck(AbstractCheck.Abstra
|
2008-04-17 04:52:37 +02:00
|
|
|
|
|
|
|
# stripped ?
|
2009-09-16 18:41:21 +02:00
|
|
|
if not is_ocaml_native and not unstrippable.search(fname):
|
2010-01-27 18:18:50 +01:00
|
|
|
- if 'not stripped' in pkgfile.magic:
|
|
|
|
+ if 'not stripped' in pkgfile.magic and \
|
2010-07-02 16:09:25 +02:00
|
|
|
+ (os.environ.get('BUILD_DIR', None) == None or
|
|
|
|
+ os.environ.get('BUILD_DEBUG', None) != None):
|
2009-08-21 18:19:06 +02:00
|
|
|
printWarning(
|
|
|
|
pkg, 'unstripped-binary-or-object', fname)
|
2008-04-17 04:52:37 +02:00
|
|
|
|
2010-07-02 16:09:25 +02:00
|
|
|
@@ -585,6 +588,12 @@ form, make sure that rpmbuild does not s
|
|
|
|
that use prelink, make sure that prelink does not strip it either, usually by
|
|
|
|
placing a blacklist file in /etc/prelink.conf.d. For more information, see
|
|
|
|
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=256900#49''',
|
|
|
|
+
|
|
|
|
+'unstripped-binary-or-object',
|
|
|
|
+'''stripping debug info from binaries happens automatically according to global
|
|
|
|
+project settings. So there's normally no need to manually strip binaries.
|
|
|
|
+Left over unstripped binaries could therefore indicate a bug in the automatic
|
|
|
|
+stripping process.''',
|
|
|
|
)
|
|
|
|
|
|
|
|
# BinariesCheck.py ends here
|