scripts: normalize.sh: Fix a racing case

Change-Id: I1835a31f2c9f5818e3b9f87eb4571f1467e1fcdd
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
Jeffy Chen 2022-07-26 19:14:15 +08:00
parent 6e1c5cbcf5
commit b87e06a005

View file

@ -20,14 +20,16 @@ for lib in $LIBS; do
# 'found local symbol in global part of symbol table'
#
# depends on lief (pip3 install lief)
readelf -s $lib 2>&1 | grep -q Warning && \
readelf -s $lib 2>&1 | grep -wq Warning && \
scripts/fixup_dynsym.py $lib&
done
wait
for lib in $LIBS; do
# Normalize library name
mv $lib "${lib%/*}/$(scripts/parse_name.sh --format $lib)" 2>/dev/null
done
# Update debian control and rules
scripts/update_debian.sh
wait