mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
core/glibc to 2.27-2
This commit is contained in:
parent
cc5c9e2806
commit
672e480e89
1 changed files with 22 additions and 29 deletions
|
@ -13,19 +13,22 @@
|
||||||
noautobuild=1
|
noautobuild=1
|
||||||
|
|
||||||
pkgname=glibc
|
pkgname=glibc
|
||||||
pkgver=2.26
|
pkgver=2.27
|
||||||
pkgrel=11
|
pkgrel=2
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
url='http://www.gnu.org/software/libc'
|
url='http://www.gnu.org/software/libc'
|
||||||
license=(GPL LGPL)
|
license=(GPL LGPL)
|
||||||
makedepends=(git gd)
|
makedepends=(git gd)
|
||||||
options=(!strip staticlibs !distcc)
|
options=(!strip staticlibs !distcc)
|
||||||
_commit=de51f431ed6226ec68ca76e578f2cbd55b6262cb
|
_commit=23158b08a0908f381459f273a984c6fd328363cb
|
||||||
source=(git://sourceware.org/git/glibc.git#commit=${_commit}
|
#source=(git+https://sourceware.org/git/glibc.git#commit=$_commit
|
||||||
|
source=(https://ftp.gnu.org/gnu/glibc/glibc-$pkgver.tar.xz{,.sig}
|
||||||
locale.gen.txt
|
locale.gen.txt
|
||||||
locale-gen
|
locale-gen
|
||||||
bz20338.patch)
|
bz20338.patch)
|
||||||
md5sums=('SKIP'
|
validpgpkeys=(7273542B39962DF7B299931416792B4EA25340F8) # Carlos O'Donell
|
||||||
|
md5sums=('898cd5656519ffbc3a03fe811dd89e82'
|
||||||
|
'SKIP'
|
||||||
'07ac979b6ab5eeb778d55f041529d623'
|
'07ac979b6ab5eeb778d55f041529d623'
|
||||||
'476e9113489f93b348b21e144b6a8fcf'
|
'476e9113489f93b348b21e144b6a8fcf'
|
||||||
'dc0d3ad59aeaaf591b085a77de6e03e9')
|
'dc0d3ad59aeaaf591b085a77de6e03e9')
|
||||||
|
@ -33,6 +36,7 @@ md5sums=('SKIP'
|
||||||
prepare() {
|
prepare() {
|
||||||
mkdir -p glibc-build
|
mkdir -p glibc-build
|
||||||
|
|
||||||
|
[[ -d glibc-$pkgver ]] && ln -s glibc-$pkgver glibc
|
||||||
cd glibc
|
cd glibc
|
||||||
|
|
||||||
local i; for i in ${source[@]}; do
|
local i; for i in ${source[@]}; do
|
||||||
|
@ -54,8 +58,6 @@ build() {
|
||||||
--enable-bind-now
|
--enable-bind-now
|
||||||
--enable-lock-elision
|
--enable-lock-elision
|
||||||
--disable-multi-arch
|
--disable-multi-arch
|
||||||
--enable-obsolete-nsl
|
|
||||||
--enable-obsolete-rpc
|
|
||||||
--enable-stack-protector=strong
|
--enable-stack-protector=strong
|
||||||
--enable-stackguard-randomization
|
--enable-stackguard-randomization
|
||||||
--disable-profile
|
--disable-profile
|
||||||
|
@ -94,6 +96,7 @@ build() {
|
||||||
echo "CC += -D_FORTIFY_SOURCE=2" >> configparms
|
echo "CC += -D_FORTIFY_SOURCE=2" >> configparms
|
||||||
echo "CXX += -D_FORTIFY_SOURCE=2" >> configparms
|
echo "CXX += -D_FORTIFY_SOURCE=2" >> configparms
|
||||||
make
|
make
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
|
@ -134,7 +137,7 @@ package() {
|
||||||
|
|
||||||
install -m755 "$srcdir/locale-gen" "$pkgdir/usr/bin"
|
install -m755 "$srcdir/locale-gen" "$pkgdir/usr/bin"
|
||||||
|
|
||||||
# create /etc/locale.gen
|
# Create /etc/locale.gen
|
||||||
install -m644 "$srcdir/locale.gen.txt" "$pkgdir/etc/locale.gen"
|
install -m644 "$srcdir/locale.gen.txt" "$pkgdir/etc/locale.gen"
|
||||||
sed -e '1,3d' -e 's|/| |g' -e 's|\\| |g' -e 's|^|#|g' \
|
sed -e '1,3d' -e 's|/| |g' -e 's|\\| |g' -e 's|^|#|g' \
|
||||||
"$srcdir/glibc/localedata/SUPPORTED" >> "$pkgdir/etc/locale.gen"
|
"$srcdir/glibc/localedata/SUPPORTED" >> "$pkgdir/etc/locale.gen"
|
||||||
|
@ -142,26 +145,16 @@ package() {
|
||||||
# ALARM: symlink ld-linux.so.3 for hard-float
|
# ALARM: symlink ld-linux.so.3 for hard-float
|
||||||
[[ $CARCH == "armv6h" || $CARCH == "armv7h" ]] && ln -s /lib/ld-${pkgver}.so ${pkgdir}/usr/lib/ld-linux.so.3
|
[[ $CARCH == "armv6h" || $CARCH == "armv7h" ]] && ln -s /lib/ld-${pkgver}.so ${pkgdir}/usr/lib/ld-linux.so.3
|
||||||
|
|
||||||
# Do not strip the following files for improved debugging support
|
if check_option 'debug' n; then
|
||||||
# ("improved" as in not breaking gdb and valgrind...):
|
find "$pkgdir"/usr/bin -type f -executable -exec strip $STRIP_BINARIES {} + 2> /dev/null || true
|
||||||
# ld-${pkgver}.so
|
find "$pkgdir"/usr/lib -name '*.a' -type f -exec strip $STRIP_STATIC {} + 2> /dev/null || true
|
||||||
# libc-${pkgver}.so
|
|
||||||
# libpthread-${pkgver}.so
|
|
||||||
# libthread_db-1.0.so
|
|
||||||
|
|
||||||
cd "$pkgdir"
|
# Do not strip these for gdb and valgrind functionality, but strip the rest
|
||||||
strip $STRIP_BINARIES usr/bin/{gencat,getconf,getent,iconv,iconvconfig} \
|
find "$pkgdir"/usr/lib \
|
||||||
usr/bin/{ldconfig,locale,localedef,nscd,makedb} \
|
-not -name 'ld-*.so' \
|
||||||
usr/bin/{pcprofiledump,pldd,rpcgen,sln,sprof} \
|
-not -name 'libc-*.so' \
|
||||||
usr/lib/getconf/*
|
-not -name 'libpthread-*.so' \
|
||||||
|
-not -name 'libthread_db-*.so' \
|
||||||
strip $STRIP_STATIC usr/lib/lib{anl,BrokenLocale,c{,_nonshared},crypt}.a \
|
-name '*-*.so' -type f -exec strip $STRIP_SHARED {} + 2> /dev/null || true
|
||||||
usr/lib/lib{dl,g,ieee,mcheck,nsl,pthread{,_nonshared}}.a \
|
fi
|
||||||
usr/lib/lib{resolv,rpcsvc,rt,util}.a
|
|
||||||
|
|
||||||
strip $STRIP_SHARED usr/lib/lib{anl,BrokenLocale,cidn,crypt}-${pkgver}.so \
|
|
||||||
usr/lib/libnss_{compat,db,dns,files,hesiod,nis,nisplus}-*.so \
|
|
||||||
usr/lib/lib{dl,m,nsl,resolv,rt,util}-${pkgver}.so \
|
|
||||||
usr/lib/lib{memusage,pcprofile,SegFault}.so \
|
|
||||||
usr/lib/{audit,gconv}/*.so || true
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue