summaryrefslogtreecommitdiffstats
path: root/build/linux
diff options
context:
space:
mode:
authorglider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-14 17:03:20 +0000
committerglider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-14 17:03:20 +0000
commit767cbccaa9735a646193b50e69b686fc0139df5e (patch)
treef6540588195af7308a80f324ac3ca0757754b70e /build/linux
parentc59b6315e6eccd34ee9955725441e0bb9309c49f (diff)
downloadchromium_src-767cbccaa9735a646193b50e69b686fc0139df5e.zip
chromium_src-767cbccaa9735a646193b50e69b686fc0139df5e.tar.gz
chromium_src-767cbccaa9735a646193b50e69b686fc0139df5e.tar.bz2
Fix sysroot_ld_path.sh to correctly process the included configs.
The $included_files var contains a list of paths relative to the sysroot. However calling `ls $included_files` gives us a list of paths relative to the host system root, which is obviously wrong. We need to do `ls $root$included_files` instead. BUG=324207 R=thestig@chromium.org CC=sl.ostapenko@samsung.com Review URL: https://codereview.chromium.org/163103003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251356 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/linux')
-rwxr-xr-xbuild/linux/sysroot_ld_path.sh22
1 files changed, 13 insertions, 9 deletions
diff --git a/build/linux/sysroot_ld_path.sh b/build/linux/sysroot_ld_path.sh
index 74553c9..4b8bf73 100755
--- a/build/linux/sysroot_ld_path.sh
+++ b/build/linux/sysroot_ld_path.sh
@@ -46,15 +46,19 @@ process_ld_so_conf() {
echo "$ENTRY" | grep -qs ^include
if [ $? -eq 0 ]; then
local included_files=$(echo "$ENTRY" | sed 's/^include //')
- if ls $included_files >/dev/null 2>&1 ; then
- for inc_file in $included_files; do
- echo $inc_file | grep -qs ^/
- if [ $? -eq 0 ]; then
- process_ld_so_conf "$root" "$root$inc_file"
- else
- process_ld_so_conf "$root" "$(pwd)/$inc_file"
- fi
- done
+ echo "$included_files" | grep -qs ^/
+ if [ $? -eq 0 ]; then
+ if ls $root$included_files >/dev/null 2>&1 ; then
+ for inc_file in $root$included_files; do
+ process_ld_so_conf "$root" "$inc_file"
+ done
+ fi
+ else
+ if ls $(pwd)/$included_files >/dev/null 2>&1 ; then
+ for inc_file in $(pwd)/$included_files; do
+ process_ld_so_conf "$root" "$inc_file"
+ done
+ fi
fi
continue
fi