]> git.ipfire.org Git - pakfire.git/commitdiff
QA: Allow linking to /usr.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 2 Nov 2011 14:34:42 +0000 (15:34 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 2 Nov 2011 14:34:42 +0000 (15:34 +0100)
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.

scripts/quality-agent.d/050-root-links-to-usr

index 98385c5b8149932328fe8cb5ac6b9235e8269c73..33d134aeb26c0ce04cc8415cd3e83be5b8e17e22 100755 (executable)
@@ -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