]> git.ipfire.org Git - pakfire.git/commitdiff
Remove "root links to /usr" test.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 17 Dec 2011 20:40:06 +0000 (21:40 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 17 Dec 2011 20:40:06 +0000 (21:40 +0100)
This is not supported by systemd, so we don't
need to make this extra work.

tools/quality-agent.d/050-root-links-to-usr [deleted file]

diff --git a/tools/quality-agent.d/050-root-links-to-usr b/tools/quality-agent.d/050-root-links-to-usr
deleted file mode 100755 (executable)
index 33d134a..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="Check for binaries in /bin or /sbin that link to /usr/..."
-
-function check() {
-       local ret=0
-
-       for file in $(find ${BUILDROOT}/{bin,lib,sbin}/* 2>/dev/null); do
-               [ -f "${file}" ] || continue
-               log DEBUG "  ${file}"
-
-               interpreter=$(file_get_interpreter ${file})
-               if [ ! -e "${interpreter}" ]; then
-                       continue
-               fi
-
-               libs=$(ldd ${file})
-               if grep -q /usr/lib <<<${libs}; then
-                       log WARN "${file} links to libs in /usr/lib..."
-                       while read lib; do
-                               log WARN "  ${lib}"
-                       done <<<${libs}
-                       ret=1
-               fi
-       done
-
-       return ${ret}
-}
-
-run