From 60a848a921859d249d8eccf7b4a9c0cdc7a2ed8b Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 17 Dec 2011 21:40:06 +0100 Subject: [PATCH] Remove "root links to /usr" test. 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 | 32 --------------------- 1 file changed, 32 deletions(-) delete mode 100755 tools/quality-agent.d/050-root-links-to-usr 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 index 33d134aeb..000000000 --- a/tools/quality-agent.d/050-root-links-to-usr +++ /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 -- 2.39.5