In the ignored LDFLAGS check, filter out anything under /usr/lib/debug/ in
authorZac Medico <zmedico@gentoo.org>
Sat, 6 Sep 2008 21:23:17 +0000 (21:23 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 6 Sep 2008 21:23:17 +0000 (21:23 -0000)
order to avoid duplicate warnings for splitdebug files. Thanks to Cardoe for
the suggestion.

svn path=/main/trunk/; revision=11497

bin/misc-functions.sh

index 12e8b7e0b2b02a6aa52ef889e4f902d275428eb5..1a0af4490f0972e4a612d239f687eac47187d01f 100755 (executable)
@@ -179,7 +179,10 @@ install_qa_check() {
                                                set -${shopts}
                                        fi
                                fi
-                               sed -e "/^\$/d" -e "s#^#/#" -i "${T}"/scanelf-ignored-LDFLAGS.log
+                               # Filter anything under /usr/lib/debug/ in order to avoid
+                               # duplicate warnings for splitdebug files.
+                               sed -e "s#^usr/lib/debug/.*##" -e "/^\$/d" -e "s#^#/#" \
+                                       -i "${T}"/scanelf-ignored-LDFLAGS.log
                                f=$(<"${T}"/scanelf-ignored-LDFLAGS.log)
                                if [[ -n ${f} ]] ; then
                                        vecho -ne '\a\n'