Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Unified Diff: build/linux/sysroot_scripts/sysroot-creator.sh

Issue 1531513002: Include /usr/lib/pkgconfig files in sysroot image (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/linux/sysroot_scripts/sysroot-creator.sh
diff --git a/build/linux/sysroot_scripts/sysroot-creator.sh b/build/linux/sysroot_scripts/sysroot-creator.sh
index cdbb03658e2b8643bb478e67e94cb651655263c2..39c787f5a16ae68f9f9fef2f5046b256ee74932c 100644
--- a/build/linux/sysroot_scripts/sysroot-creator.sh
+++ b/build/linux/sysroot_scripts/sysroot-creator.sh
@@ -262,9 +262,8 @@ HacksAndPatchesAmd64() {
# This is for chrome's ./build/linux/pkg-config-wrapper
# which overwrites PKG_CONFIG_PATH internally
- SubBanner "Package Configs Symlink"
- mkdir -p ${INSTALL_ROOT}/usr/share
- ln -s ../lib/x86_64-linux-gnu/pkgconfig ${INSTALL_ROOT}/usr/share/pkgconfig
+ SubBanner "Move pkgconfig scripts"
+ mv ${INSTALL_ROOT}/usr/lib/x86_64-linux-gnu/pkgconfig ${INSTALL_ROOT}/usr/lib/
SubBanner "Adding an additional ld.conf include"
LD_SO_HACK_CONF="${INSTALL_ROOT}/etc/ld.so.conf.d/zz_hack.conf"
@@ -286,9 +285,8 @@ HacksAndPatchesI386() {
# This is for chrome's ./build/linux/pkg-config-wrapper
# which overwrites PKG_CONFIG_PATH internally
- SubBanner "Package Configs Symlink"
- mkdir -p ${INSTALL_ROOT}/usr/share
- ln -s ../lib/i386-linux-gnu/pkgconfig ${INSTALL_ROOT}/usr/share/pkgconfig
+ SubBanner "Move pkgconfig scripts"
+ mv ${INSTALL_ROOT}/usr/lib/i386-linux-gnu/pkgconfig ${INSTALL_ROOT}/usr/lib/
SubBanner "Adding an additional ld.conf include"
LD_SO_HACK_CONF="${INSTALL_ROOT}/etc/ld.so.conf.d/zz_hack.conf"
@@ -310,9 +308,9 @@ HacksAndPatchesARM() {
# This is for chrome's ./build/linux/pkg-config-wrapper
# which overwrites PKG_CONFIG_PATH internally
- SubBanner "Package Configs Symlink"
- mkdir -p ${INSTALL_ROOT}/usr/share
- ln -s ../lib/arm-linux-gnueabihf/pkgconfig ${INSTALL_ROOT}/usr/share/pkgconfig
+ SubBanner "Move pkgconfig files"
+ mv ${INSTALL_ROOT}/usr/lib/arm-linux-gnueabihf/pkgconfig \
+ ${INSTALL_ROOT}/usr/lib/
}
@@ -329,9 +327,9 @@ HacksAndPatchesMips() {
# This is for chrome's ./build/linux/pkg-config-wrapper
# which overwrites PKG_CONFIG_PATH internally
- SubBanner "Package Configs Symlink"
- mkdir -p ${INSTALL_ROOT}/usr/share
- ln -s ../lib/mipsel-linux-gnu/pkgconfig ${INSTALL_ROOT}/usr/share/pkgconfig
+ SubBanner "Move pkgconfig files"
+ mv ${INSTALL_ROOT}/usr/lib/mipsel-linux-gnu/pkgconfig \
+ ${INSTALL_ROOT}/usr/lib/
}
@@ -362,7 +360,15 @@ InstallIntoSysroot() {
SubBanner "Extracting to ${INSTALL_ROOT}"
dpkg --fsys-tarfile ${package}\
- | tar -xf - --exclude=./usr/share -C ${INSTALL_ROOT}
+ | tar -xf - -C ${INSTALL_ROOT}
+
+ done
+
+ # Prune /usr/share, leaving only pkg-config
+ for name in ${INSTALL_ROOT}/usr/share/*; do
+ if [ "${name}" != "${INSTALL_ROOT}/usr/share/pkgconfig" ]; then
+ rm -r ${name}
+ fi
done
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698