Add QA check for libtool libraries in Python site-packages directories.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Fri, 13 Aug 2010 14:52:54 +0000 (16:52 +0200)
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Fri, 13 Aug 2010 14:52:54 +0000 (16:52 +0200)
bin/misc-functions.sh

index 4e8b1b766defababf658cf52d0d78b4aa2e37bd6..c965495b64ea7b8345c615848c33768844b57ae0 100755 (executable)
@@ -558,6 +558,15 @@ install_qa_check() {
                vecho -ne '\a\n'
        fi
 
+       f=$(find "${D}"usr/lib*/python*/site-packages -name '*.la' 2>/dev/null | sed "s:${D}:/:")
+       if [[ -n ${f} ]] ; then
+               vecho -ne '\a\n'
+               eqawarn "QA Notice: Libtool libraries have been found in Python site-packages"
+               eqawarn "           directories. These files should not be installed."
+               eqawarn "${f}"
+               vecho -ne '\a\n'
+       fi
+
        # Portage regenerates this on the installed system.
        rm -f "${D}"/usr/share/info/dir{,.gz,.bz2}