35 |
mirror://glibc/glibc-2.12.1-i686.patch |
mirror://glibc/glibc-2.12.1-i686.patch |
36 |
mirror://glibc/glibc-2.12.1-static-shared-getpagesize.patch |
mirror://glibc/glibc-2.12.1-static-shared-getpagesize.patch |
37 |
mirror://glibc/glibc-2.12.2-ignore-origin-of-privileged-program.patch |
mirror://glibc/glibc-2.12.2-ignore-origin-of-privileged-program.patch |
38 |
|
mirror://glibc/glibc-2.12.2-binutils-2.21.patch |
39 |
) |
) |
40 |
|
|
41 |
# glibc don't like strong CFLAGS |
# glibc don't like strong CFLAGS |
71 |
[[ -z ${ALT_HEADERS} ]] && export ALT_HEADERS="/usr/include" |
[[ -z ${ALT_HEADERS} ]] && export ALT_HEADERS="/usr/include" |
72 |
|
|
73 |
# kernel support |
# kernel support |
74 |
export ENABLE_KERNEL=2.6.18 |
export ENABLE_KERNEL=2.6.27 |
75 |
|
|
76 |
SPLIT_PACKAGES="eglibc eglibc-dev" |
SPLIT_PACKAGES="eglibc eglibc-dev" |
77 |
|
|
283 |
# see: http://www.exploit-db.com/exploits/15274/ |
# see: http://www.exploit-db.com/exploits/15274/ |
284 |
mpatch glibc-2.12.2-ignore-origin-of-privileged-program.patch || die |
mpatch glibc-2.12.2-ignore-origin-of-privileged-program.patch || die |
285 |
|
|
286 |
|
# http://sourceware.org/bugzilla/show_bug.cgi?id=12403 |
287 |
|
if [[ ${ARCH} = x86_64 ]] |
288 |
|
then |
289 |
|
sed -i '/__ASSUME_PRIVATE_FUTEX/d' glibc/sysdeps/unix/sysv/linux/kernel-features.h || die |
290 |
|
fi |
291 |
|
|
292 |
|
# fixes build with newer binutil (>= 2.21) |
293 |
|
# see: http://sourceware.org/bugzilla/show_bug.cgi?id=12343 |
294 |
|
mpatch glibc-2.12.2-binutils-2.21.patch || die |
295 |
|
|
296 |
|
# binutils patch needs reconf |
297 |
|
autoconf --force || die |
298 |
|
|
299 |
# fix permissions on some of the scripts |
# fix permissions on some of the scripts |
300 |
chmod u+x ${SRCDIR}/scripts/*.sh || die |
chmod u+x ${SRCDIR}/scripts/*.sh || die |
301 |
|
|