Browse Source

sde-build: check for broken symlinks on postflist

user/chris/test/patchcksum
Alejandro Mery 13 years ago
parent
commit
af18b8dd91
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      lib/functions.in

+ 15
- 0
lib/functions.in

@ -308,6 +308,19 @@ function run_check() {
fi
}
# make symlinks relative
#
postflist_dirty_symlinks() {
local dfn= ffn=
echo "Processing symlink corrections ..."
while read fn; do
local ffn="$root/$fn"
if [ -L "$ffn" -a ! -e "$ffn" ]; then
echo_warning "broken symlink: $fn"
fi
done < "$builddir/flist.txt"
}
# move the static libs from lib to usr/lib and correct the libdir used
# inside the .la file
#
@ -1213,6 +1226,8 @@ init_vars_and_hooks()
[ "$SDECFG_DO_CHECK" = 1 ] && hook_add inmake 6 'run_check'
hook_add postflist 3 'postflist_dirty_symlinks'
# no static lib corrections at toolchain stage
atstage toolchain || hook_add postflist 3 'postflist_static_lib'

Loading…
Cancel
Save