mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 06:01:41 +02:00
Fix *.pc files for folks who have /build/x86-mario.dev symlinked to /build/x86-mario
BUG=chromium-os:16364 TEST=Ran with symlinked directories Change-Id: I374eced27f1b0b3147b9632d5f9dd2637b0d7d28 Reviewed-on: http://gerrit.chromium.org/gerrit/2390 Reviewed-by: Daniel Erat <derat@chromium.org> Tested-by: David James <davidjames@chromium.org>
This commit is contained in:
parent
a22bde8f67
commit
f2ab143716
@ -44,7 +44,7 @@ for board_root in /build/*; do
|
||||
'(' -name 'lib*.la' -not -name 'libltdl.la' ')' -delete
|
||||
|
||||
info "Removing hard-coded paths to ${board_root} in *.pc files"
|
||||
sudo find "${board_root}" -type f -name '*.pc' | xargs sudo \
|
||||
sudo find "${board_root}/usr" -type f -name '*.pc' | xargs sudo \
|
||||
sed -i -e "s|${board_root}/|/|g"
|
||||
fi
|
||||
done
|
||||
|
15
chroot_version_hooks.d/5_symlink_pc_update
Normal file
15
chroot_version_hooks.d/5_symlink_pc_update
Normal file
@ -0,0 +1,15 @@
|
||||
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
for board_root in /build/*; do
|
||||
if [ -h "${board_root}" ]; then
|
||||
board=$(basename "${board_root}")
|
||||
info "Removing hard-coded paths to ${board_root} in *.pc files"
|
||||
sudo find "${board_root}/usr" -type f -name '*.pc' | xargs sudo \
|
||||
sed -i -e "s|${board_root}/|/|g"
|
||||
fi
|
||||
done
|
||||
|
||||
info "Chroot upgraded to version 5: fix symlinked *.pc files"
|
||||
exit 0
|
Loading…
x
Reference in New Issue
Block a user