aboutsummaryrefslogtreecommitdiff
path: root/support/scripts
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2015-12-01 23:19:06 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2015-12-02 23:28:14 +0100
commitf42e262199ffc550e1a2e930cfb5e78c442e9c61 (patch)
tree3540e2ac83e7de4b1859293ee4c689ba4c702c95 /support/scripts
parente3f4ee36e881a0a2b36a4c944728e5d7431b7434 (diff)
downloadbuildroot-f42e262199ffc550e1a2e930cfb5e78c442e9c61.tar.gz
buildroot-f42e262199ffc550e1a2e930cfb5e78c442e9c61.tar.bz2
support/check-host-rpath: remove trailing '/' in host dir
Despite the comment saying so, the trailing '/' in the host directory is not removed. Note however that it is properly removed from extracted RPATH tags. This is not visible when the host directory is our default $(O)/host location, but breaks for user-supplied external host directory, when the user leaves a trailing slash in the path. Fix that. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Peter Korsgaard <jacmet@uclibc.org> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'support/scripts')
-rwxr-xr-xsupport/scripts/check-host-rpath2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/scripts/check-host-rpath b/support/scripts/check-host-rpath
index dc9e17fe57..48d69dae63 100755
--- a/support/scripts/check-host-rpath
+++ b/support/scripts/check-host-rpath
@@ -14,7 +14,7 @@ main() {
local file ret
# Remove duplicate and trailing '/' for proper match
- hostdir="$( sed -r -e 's:/+:/:g;' <<<"${hostdir}" )"
+ hostdir="$( sed -r -e 's:/+:/:g; s:/$::;' <<<"${hostdir}" )"
ret=0
while read file; do