2010-11-05 16:07:58 +01: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-11-05 16:07:58 +01:00
|
|
|
@@ -284,7 +285,9 @@ class BinariesCheck(AbstractCheck.Abstra
|
2010-10-14 14:32:03 +02:00
|
|
|
continue
|
2008-04-17 04:52:37 +02:00
|
|
|
|
2010-10-14 14:32:03 +02:00
|
|
|
# stripped ?
|
|
|
|
- if 'not stripped' in pkgfile.magic:
|
|
|
|
+ if 'not stripped' in pkgfile.magic and \
|
2010-11-05 16:07:58 +01:00
|
|
|
+ (os.environ.get('BUILD_DIR', '') == '' or
|
|
|
|
+ os.environ.get('BUILD_DEBUG', '') != ''):
|
2010-10-14 14:32:03 +02:00
|
|
|
printWarning(pkg, 'unstripped-binary-or-object', fname)
|
2008-04-17 04:52:37 +02:00
|
|
|
|
2010-10-14 14:32:03 +02:00
|
|
|
# inspect binary file
|
2010-11-05 16:07:58 +01:00
|
|
|
@@ -581,6 +584,12 @@ form, make sure that rpmbuild does not s
|
2010-07-02 16:09:25 +02:00
|
|
|
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
|