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

Side by Side Diff: chrome/installer/linux/common/symlinks.include

Issue 674703002: Linux: Dynamically load libudev. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scoped_udev
Patch Set: rebase to head, which includes third_party/libudev already Created 6 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 unified diff | Download patch
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | chrome/installer/linux/debian/build.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 NSS_FILES="libnspr4.so.0d libplds4.so.0d libplc4.so.0d libssl3.so.1d \ 1 NSS_FILES="libnspr4.so.0d libplds4.so.0d libplc4.so.0d libssl3.so.1d \
2 libnss3.so.1d libsmime3.so.1d libnssutil3.so.1d" 2 libnss3.so.1d libsmime3.so.1d libnssutil3.so.1d"
3 3
4 add_nss_symlinks() { 4 add_nss_symlinks() {
5 get_lib_dir 5 get_lib_dir
6 for f in $NSS_FILES 6 for f in $NSS_FILES
7 do 7 do
8 target=$(echo $f | sed 's/\.[01]d$//') 8 target=$(echo $f | sed 's/\.[01]d$//')
9 if [ -f "/$LIBDIR/$target" ]; then 9 if [ -f "/$LIBDIR/$target" ]; then
10 ln -snf "/$LIBDIR/$target" "@@INSTALLDIR@@/$f" 10 ln -snf "/$LIBDIR/$target" "@@INSTALLDIR@@/$f"
11 elif [ -f "/usr/$LIBDIR/$target" ]; then 11 elif [ -f "/usr/$LIBDIR/$target" ]; then
12 ln -snf "/usr/$LIBDIR/$target" "@@INSTALLDIR@@/$f" 12 ln -snf "/usr/$LIBDIR/$target" "@@INSTALLDIR@@/$f"
13 else 13 else
14 echo $f not found in "/$LIBDIR/$target" or "/usr/$LIBDIR/$target". 14 echo $f not found in "/$LIBDIR/$target" or "/usr/$LIBDIR/$target".
15 exit 1 15 exit 1
16 fi 16 fi
17 done 17 done
18 } 18 }
19 19
20 remove_nss_symlinks() { 20 remove_nss_symlinks() {
21 for f in $NSS_FILES 21 for f in $NSS_FILES
22 do 22 do
23 rm -rf "@@INSTALLDIR@@/$f" 23 rm -rf "@@INSTALLDIR@@/$f"
24 done 24 done
25 } 25 }
26 26
27 # Fedora 18 now has libudev.so.1. http://crbug.com/145160 27 remove_udev_symlinks() {
28 # Same for Ubuntu 13.04. http://crbug.com/226002 28 rm -rf "@@INSTALLDIR@@/libudev.so.0"
29 LIBUDEV_0=libudev.so.0
30 LIBUDEV_1=libudev.so.1
31
32 add_udev_symlinks() {
33 get_lib_dir
34 if [ -f "/$LIBDIR/$LIBUDEV_0" -o -f "/usr/$LIBDIR/$LIBUDEV_0" -o -f "/lib/$LIB UDEV_0" ]; then
35 return 0
36 fi
37
38 if [ -f "/$LIBDIR/$LIBUDEV_1" ]; then
39 ln -snf "/$LIBDIR/$LIBUDEV_1" "@@INSTALLDIR@@/$LIBUDEV_0"
40 elif [ -f "/usr/$LIBDIR/$LIBUDEV_1" ];
41 then
42 ln -snf "/usr/$LIBDIR/$LIBUDEV_1" "@@INSTALLDIR@@/$LIBUDEV_0"
43 else
44 echo "$LIBUDEV_1" not found in "$LIBDIR" or "/usr/$LIBDIR".
45 exit 1
46 fi
47 } 29 }
48
49 remove_udev_symlinks() {
50 rm -rf "@@INSTALLDIR@@/$LIBUDEV_0"
51 }
OLDNEW
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | chrome/installer/linux/debian/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698