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

Unified Diff: chrome_linux/installer/common/symlinks.include

Issue 33333002: Roll Linux reference build to official build 30.0.1599.33 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/reference_builds/
Patch Set: Created 7 years, 2 months 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 | « chrome_linux/installer/common/rpmrepo.cron ('k') | chrome_linux/installer/common/updater » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_linux/installer/common/symlinks.include
===================================================================
--- chrome_linux/installer/common/symlinks.include (revision 0)
+++ chrome_linux/installer/common/symlinks.include (revision 0)
@@ -0,0 +1,51 @@
+NSS_FILES="libnspr4.so.0d libplds4.so.0d libplc4.so.0d libssl3.so.1d \
+ libnss3.so.1d libsmime3.so.1d libnssutil3.so.1d"
+
+add_nss_symlinks() {
+ get_lib_dir
+ for f in $NSS_FILES
+ do
+ target=$(echo $f | sed 's/\.[01]d$//')
+ if [ -f "/$LIBDIR/$target" ]; then
+ ln -snf "/$LIBDIR/$target" "@@INSTALLDIR@@/$f"
+ elif [ -f "/usr/$LIBDIR/$target" ]; then
+ ln -snf "/usr/$LIBDIR/$target" "@@INSTALLDIR@@/$f"
+ else
+ echo $f not found in "/$LIBDIR/$target" or "/usr/$LIBDIR/$target".
+ exit 1
+ fi
+ done
+}
+
+remove_nss_symlinks() {
+ for f in $NSS_FILES
+ do
+ rm -rf "@@INSTALLDIR@@/$f"
+ done
+}
+
+# Fedora 18 now has libudev.so.1. http://crbug.com/145160
+# Same for Ubuntu 13.04. http://crbug.com/226002
+LIBUDEV_0=libudev.so.0
+LIBUDEV_1=libudev.so.1
+
+add_udev_symlinks() {
+ get_lib_dir
+ if [ -f "/$LIBDIR/$LIBUDEV_0" -o -f "/usr/$LIBDIR/$LIBUDEV_0" -o -f "/lib/$LIBUDEV_0" ]; then
+ return 0
+ fi
+
+ if [ -f "/$LIBDIR/$LIBUDEV_1" ]; then
+ ln -snf "/$LIBDIR/$LIBUDEV_1" "@@INSTALLDIR@@/$LIBUDEV_0"
+ elif [ -f "/usr/$LIBDIR/$LIBUDEV_1" ];
+ then
+ ln -snf "/usr/$LIBDIR/$LIBUDEV_1" "@@INSTALLDIR@@/$LIBUDEV_0"
+ else
+ echo "$LIBUDEV_1" not found in "$LIBDIR" or "/usr/$LIBDIR".
+ exit 1
+ fi
+}
+
+remove_udev_symlinks() {
+ rm -rf "@@INSTALLDIR@@/$LIBUDEV_0"
+}
« no previous file with comments | « chrome_linux/installer/common/rpmrepo.cron ('k') | chrome_linux/installer/common/updater » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698