big pacman db update
[cinan.git] / root / var / lib / pacman / local / glibc-2.11-1 / install
blob691209c8c9536b5c8f615c0ed41a5ab1fbd26fff
1 infodir=/usr/share/info
2 filelist=(libc.info libc.info-1 libc.info-2 libc.info-3 libc.info-4 libc.info-5 libc.info-6 libc.info-7 
3           libc.info-8 libc.info-9 libc.info-10 libc.info-11)
5 pre_upgrade() {
6 if [ "`uname -m`" = "x86_64" ]; then
7  if [ "`vercmp $2 2.4`" -lt 0 ]; then
8    cat << _EOF
9   ==> glibc oldpkgver < 2.4 detected!
10   ==> 
11   ==> ATTENTION x86_64 USERS:
12   ==>
13   ==> We now switch from the former lib-linking to pure /lib support. To get rid
14   ==> of all lib64 directories we have removed the link /lib -> /lib64 and
15   ==> /usr/lib -> /usr/lib64.
16   ==> 
17   ==> We have also rebuilt all packages we know that still used lib64 directories.
18   ==> Now all should go to /lib directories.
19   ==> 
20   ==> Internally we have removed the link and then mv /lib64 /lib. Same to /usr/lib64.
21   ==> /lib64 and /usr/lib64 shouldn't exist anymore. If any package still installs to
22   ==> /lib64 or /usr/lib64 let us know.
23   ==>
24 _EOF
26 # now the moving
27 rm -rf /lib/tls && echo "/lib/tls removed"
28 ldconfig -r .
29 rm -f /usr/lib
30 mv /usr/lib64 /usr/lib && echo "/usr/lib64 moved"
31 rm -f /lib
32 mv /lib64 /lib && echo "/lib64 moved"
34  fi
38 post_upgrade() {
39   ldconfig -r .
40   [ -x /sbin/init ] && init u
42   if [ "`vercmp $2 2.3.6`" -lt 0 ]; then
43     cat << _EOF
44   ==> ATTENTION INTERNATIONAL USERS:
45   ==>
46   ==> Locales are no longer included in the glibc package.
47   ==> They are generated by /usr/sbin/locale-gen depending on the contents
48   ==> of /etc/locale.gen.
49   ==> glibc will try to autodetect the required locales now, if you need
50   ==> additional locales, please enable them in /etc/locale.gen and run
51   ==> /usr/sbin/locale-gen
52   ==>  
53 _EOF
54     # Check active locales, enable the ones that are in use
55     loc=("$LANG"
56          "`grep '^LOCALE=' etc/rc.conf | awk -F '=' '{ print $2 }'`")
57     for l in "${loc[@]}"; do
58       if [ ! -z "${l}" ]; then
59         line="`grep -i "^#${l}[[:space:]]" etc/locale.gen`"
60         if [ ! -z "${line}" ]; then
61           sed -i -e "s|${line}|${line/\#/}|" etc/locale.gen
62         fi
63       fi
64     done
65   fi
67   usr/sbin/locale-gen
69 # fix CHOST for arch64
70 if [ "`uname -m`" = "x86_64" ]; then
71  if [ "`vercmp $2 2.4`" -lt 0 ]; then
72   sed -i s/'x86_64-pc-linux-gnu'/'x86_64-unknown-linux-gnu'/ /etc/makepkg.conf && \
73   echo "in /etc/makepkg.conf CHOST has been changed to \"x86_64-unknown-linux-gnu\""
75   # we remove files from glibc 2.3.6 that are not removed automatically
76   rm -f /lib/ld-2.3.* && echo "removing unneeded old files"
77   rm -f /lib/libBrokenLocale-2.3.*
78   rm -f /lib/libNoVersion*
79   rm -f /lib/libanl-2.3.*
80   rm -f /lib/libc-2.3.*
81   rm -f /lib/libcidn-2.3.*
82   rm -f /lib/libcrypt-2.3.*
83   rm -f /lib/libdl-2.3.*
84   rm -f /lib/libm-2.3.*
85   rm -f /lib/libnsl-2.3.*
86   rm -f /lib/libnss1*
87   rm -f /lib/libnss_compat-2.3.*
88   rm -f /lib/libnss_dns-2.3.*
89   rm -f /lib/libnss_dns.so.1
90   rm -f /lib/libnss_files-2.3.*
91   rm -f /lib/libnss_files.so.1
92   rm -f /lib/libnss_hesiod-2.3.*
93   rm -f /lib/libnss_nis-2.3.*
94   rm -f /lib/libnss_nis.so.1
95   rm -f /lib/libnss_nisplus-2.3.*
96   rm -f /lib/libpthread-0.10.so
97   rm -f /lib/libresolv-2.3.*
98   rm -f /lib/librt-2.3.*
99   rm -f /lib/libutil-2.3.*
100   rm -fR /lib/nosegneg
101   #rm -fR /usr/include/asm
102   #rm -fR /usr/include/linux
103   rm -fR /usr/include/ntpl
104   rm -f /usr/lib/libNoVersion*
105   rm -f /usr/lib/libc_stubs.a
106   rm -f /usr/lib/libnss1*
107   rm -f /usr/lib/libnss_compat.so.1
108   rm -f /usr/lib/libnss_dns.so.1
109   rm -f /usr/lib/libnss_files.so.1
110   rm -f /usr/lib/libnss_nis.so.1
111   rm -fR /usr/lib/nptl
112   rm -f /usr/sbin/nscd_nischeck
113   rm -fR /usr/share/zoneinfo/SystemV
114   rm -fR /usr/share/zoneinfo/posix/SystemV
115   rm -fR /usr/share/zoneinfo/right/SystemV
116   ldconfig -r .
117  fi
120  [ -x usr/bin/install-info ] || return 0
121  for file in ${filelist[@]}; do
122     usr/bin/install-info $infodir/$file.gz $infodir/dir 2> /dev/null
123  done
126 pre_remove() {
127   [ -x usr/bin/install-info ] || return 0
128   for file in ${filelist[@]}; do
129     usr/bin/install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
130   done