From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnout Vandecappelle (Essensium/Mind) Date: Wed, 12 Apr 2017 11:38:40 +0200 Subject: [Buildroot] [PATCH 06/53] check-host-rpath: no longer check $(HOST_DIR)/usr/{bin, sbin} In-Reply-To: <20170412093928.1006-1-arnout@mind.be> References: <20170412093928.1006-1-arnout@mind.be> Message-ID: <20170412093928.1006-7-arnout@mind.be> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Since $(HOST_DIR)/usr/{bin,sbin} are now symlinks to $(HOST_DIR)/{bin,sbin}, it makes no sense to check them - they are already covered. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- support/scripts/check-host-rpath | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support/scripts/check-host-rpath b/support/scripts/check-host-rpath index 29bec012fc..e2b7c8cf8c 100755 --- a/support/scripts/check-host-rpath +++ b/support/scripts/check-host-rpath @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# This script scans $(HOST_DIR)/{,usr/}{bin,sbin} for all ELF files, and checks +# This script scans $(HOST_DIR)/{bin,sbin} for all ELF files, and checks # they have an RPATH to $(HOST_DIR)/{,usr/}lib if they need libraries from # there. @@ -26,7 +26,7 @@ main() { printf "*** ERROR: package %s installs executables without proper RPATH:\n" "${pkg}" fi printf "*** %s\n" "${file}" - done < <( find "${hostdir}"/{,usr/}{bin,sbin} -type f -exec file {} + 2>/dev/null \ + done < <( find "${hostdir}"/{bin,sbin} -type f -exec file {} + 2>/dev/null \ |sed -r -e '/^([^:]+):.*\.*\.*/!d' \ -e 's//\1/' \ ) -- 2.11.0