aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-08-13 16:46:34 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-08-13 16:46:34 +0200
commitc33858cc3a7cd510163aa4a406bcf95585807da4 (patch)
treec187531a6b78a516853307db666fbb3955f18cf0 /bin/misc-functions.sh
parentRemove files generated by testCompileModules. (diff)
downloadportage-c33858cc3a7cd510163aa4a406bcf95585807da4.tar.gz
portage-c33858cc3a7cd510163aa4a406bcf95585807da4.tar.bz2
portage-c33858cc3a7cd510163aa4a406bcf95585807da4.zip
Add QA check for static libraries in Python site-packages directories.
Diffstat (limited to 'bin/misc-functions.sh')
-rwxr-xr-xbin/misc-functions.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index 9777c9954..4e8b1b766 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -542,8 +542,18 @@ install_qa_check() {
if [[ -n ${f} ]] ; then
vecho -ne '\a\n'
eqawarn "QA Notice: Byte-compiled Python modules have been found. python_mod_optimize()"
- eqawarn " and python_mod_cleanup() functions python.eclass should be used to"
- eqawarn " handle byte-compiled Python modules."
+ eqawarn " and python_mod_cleanup() functions from python.eclass should be used"
+ eqawarn " to handle byte-compiled Python modules."
+ eqawarn "${f}"
+ vecho -ne '\a\n'
+ fi
+
+ f=$(find "${D}"usr/lib*/python*/site-packages -name '*.a' 2>/dev/null | sed "s:${D}:/:")
+ if [[ -n ${f} ]] ; then
+ vecho -ne '\a\n'
+ eqawarn "QA Notice: Static libraries have been found in Python site-packages"
+ eqawarn " directories. Build system should be modified to not generate"
+ eqawarn " these files and object files generated only for these files."
eqawarn "${f}"
vecho -ne '\a\n'
fi