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)
6 if [ "`uname -m`" = "x86_64" ]; then
7 if [ "`vercmp $2 2.4`" -lt 0 ]; then
9 ==> glibc oldpkgver < 2.4 detected!
11 ==> ATTENTION x86_64 USERS:
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.
17 ==> We have also rebuilt all packages we know that still used lib64 directories.
18 ==> Now all should go to /lib directories.
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.
27 rm -rf /lib/tls && echo "/lib/tls removed"
30 mv /usr/lib64 /usr/lib && echo "/usr/lib64 moved"
32 mv /lib64 /lib && echo "/lib64 moved"
40 [ -x /sbin/init ] && init u
42 if [ "`vercmp $2 2.3.6`" -lt 0 ]; then
44 ==> ATTENTION INTERNATIONAL USERS:
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
54 # Check active locales, enable the ones that are in use
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
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.*
81 rm -f /lib/libcidn-2.3.*
82 rm -f /lib/libcrypt-2.3.*
83 rm -f /lib/libdl-2.3.*
85 rm -f /lib/libnsl-2.3.*
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.*
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
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
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
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