1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
--- a/PKGBUILD 2018-03-06 06:01:42.289066523 +0100
+++ b/PKGBUILD 2018-03-06 06:01:42.289066523 +0100
@@ -6,21 +6,21 @@
# NOTE: valgrind requires rebuilt with each major glibc version
pkgbase=glibc
-pkgname=(glibc lib32-glibc)
-pkgver=2.26
-pkgrel=11
+pkgname=(glibc)
+[ "x@MULTILIB@" != "xenable" ] || pkgname+=(lib32-glibc)
+pkgver=2.27
+pkgrel=1
arch=(x86_64)
url='http://www.gnu.org/software/libc'
license=(GPL LGPL)
-makedepends=(git gd lib32-gcc-libs)
options=(!strip staticlibs)
_commit=de51f431ed6226ec68ca76e578f2cbd55b6262cb
-source=(git+https://sourceware.org/git/glibc.git#commit=${_commit}
+source=(https://ftp.gnu.org/gnu/glibc/glibc-$pkgver.tar.gz
locale.gen.txt
locale-gen
lib32-glibc.conf
bz20338.patch)
-md5sums=('SKIP'
+md5sums=('527bc6270e37ab97314a3af0b7b83db8'
'07ac979b6ab5eeb778d55f041529d623'
'476e9113489f93b348b21e144b6a8fcf'
'6e052f1cb693d5d3203f50f9d4e8c33b'
@@ -29,6 +29,7 @@ md5sums=('SKIP'
prepare() {
mkdir -p glibc-build lib32-glibc-build
+ ln -s glibc-$pkgver glibc
cd glibc
local i; for i in ${source[@]}; do
@@ -49,7 +50,7 @@ build() {
--enable-add-ons
--enable-bind-now
--enable-lock-elision
- --enable-multi-arch
+ --@MULTILIB@-multi-arch
--enable-obsolete-nsl
--enable-obsolete-rpc
--enable-stack-protector=strong
@@ -84,6 +85,8 @@ build() {
echo "CXX += -D_FORTIFY_SOURCE=2" >> configparms
make
+ [ "x@MULTILIB@" == "xenable" ] || return 0
+
cd "$srcdir/lib32-glibc-build"
export CC="gcc -m32 -mstackrealign"
export CXX="g++ -m32 -mstackrealign"
@@ -117,16 +120,6 @@ build() {
}
-check() {
- cd glibc-build
-
- # remove fortify in preparation to run test-suite
- sed -i '/FORTIFY/d' configparms
-
- # some failures are "expected"
- make check || true
-}
-
package_glibc() {
pkgdesc='GNU C Library'
depends=('linux-api-headers>=4.10' tzdata filesystem)
@@ -177,7 +170,7 @@ package_glibc() {
strip $STRIP_STATIC usr/lib/lib{anl,BrokenLocale,c{,_nonshared},crypt}.a \
usr/lib/lib{dl,g,ieee,mcheck,nsl,pthread{,_nonshared}}.a \
usr/lib/lib{resolv,rpcsvc,rt,util}.a \
- usr/lib/lib{m-${pkgver},mvec{,_nonshared}}.a
+ usr/lib/lib{m-${pkgver},mvec{,_nonshared}}.a || true
strip $STRIP_SHARED usr/lib/lib{anl,BrokenLocale,cidn,crypt}-${pkgver}.so \
usr/lib/libnss_{compat,db,dns,files,hesiod,nis,nisplus}-*.so \
|