glibc: sync install script with Arch Linux [core]

locale-gen is now called on each update. The update to 2.22-4 broke locales
so force an update by raising the pkgrel to 4.1.
This commit is contained in:
Michael Lass 2016-02-18 18:40:07 +01:00
parent 76b8808b25
commit af027102c3
2 changed files with 10 additions and 10 deletions

View file

@ -16,7 +16,7 @@ noautobuild=1
pkgname=glibc pkgname=glibc
pkgver=2.22 pkgver=2.22
pkgrel=4 pkgrel=4.1
pkgdesc="GNU C Library" pkgdesc="GNU C Library"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="http://www.gnu.org/software/libc" url="http://www.gnu.org/software/libc"

View file

@ -2,21 +2,21 @@ infodir=usr/share/info
filelist=(libc.info{,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11}) filelist=(libc.info{,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11})
post_upgrade() { post_upgrade() {
#if [[ $(vercmp 2.22-3 $2) = 1 ]]; then
locale-gen
#fi
ldconfig -r . ldconfig -r .
if [[ $(vercmp 2.22-1 $2) = 1 ]]; then [[ -x usr/bin/install-info ]] || return 0
locale-gen
fi
[ -x usr/bin/install-info ] || return 0
for file in ${filelist[@]}; do for file in ${filelist[@]}; do
usr/bin/install-info $infodir/$file.gz $infodir/dir 2> /dev/null install-info $infodir/$file.gz $infodir/dir 2> /dev/null
done done
} }
pre_remove() { pre_remove() {
[ -x usr/bin/install-info ] || return 0 [[ -x usr/bin/install-info ]] || return 0
for file in ${filelist[@]}; do for file in ${filelist[@]}; do
usr/bin/install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
done done
} }