From: Michael Tremer Date: Wed, 2 Nov 2011 14:34:42 +0000 (+0100) Subject: QA: Allow linking to /usr. X-Git-Tag: 0.9.18~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc24b35154500a148dc311c12e3573241066ae2a;p=pakfire.git QA: Allow linking to /usr. Files from / were not allowed to be linked against shared libraries from /usr because there was the option to have /usr on an other partition. Now, systemd does not support that anymore and will probably never do that again, so we allow linking to /usr, but show a warning instead. --- diff --git a/scripts/quality-agent.d/050-root-links-to-usr b/scripts/quality-agent.d/050-root-links-to-usr index 98385c5b8..33d134aeb 100755 --- a/scripts/quality-agent.d/050-root-links-to-usr +++ b/scripts/quality-agent.d/050-root-links-to-usr @@ -13,14 +13,15 @@ function check() { interpreter=$(file_get_interpreter ${file}) if [ ! -e "${interpreter}" ]; then - log WARN " SKIPPED because interpreter is not available" continue fi libs=$(ldd ${file}) if grep -q /usr/lib <<<${libs}; then - log ERROR "${file} links to libs in /usr/lib..." - log ERROR " ${libs}" + log WARN "${file} links to libs in /usr/lib..." + while read lib; do + log WARN " ${lib}" + done <<<${libs} ret=1 fi done