18 |
# functions to include in the mage file |
# functions to include in the mage file |
19 |
SPECIAL_FUNCTIONS="fix_db_files" |
SPECIAL_FUNCTIONS="fix_db_files" |
20 |
|
|
21 |
SRCFILE="${PNAME}-${PVER/.0/}.tar.bz2" |
SRCFILE="${PNAME}-${PVER}.tar.bz2" |
22 |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER/.0/}/libc" |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}/libc" |
23 |
|
|
24 |
sminclude mtools cleanutils |
sminclude mtools cleanutils |
25 |
|
|
31 |
mirror://${PNAME}/eglibc.envd |
mirror://${PNAME}/eglibc.envd |
32 |
mirror://${PNAME}/locale-gen |
mirror://${PNAME}/locale-gen |
33 |
mirror://${PNAME}/locale.gen |
mirror://${PNAME}/locale.gen |
34 |
|
mirror://glibc/glibc-${PVER}-bz4781.patch |
35 |
|
mirror://glibc/glibc-${PVER}-i686.patch |
36 |
|
mirror://glibc/glibc-${PVER}-static-shared-getpagesize.patch |
37 |
) |
) |
38 |
|
|
39 |
# glibc don't like strong CFLAGS |
# glibc don't like strong CFLAGS |
266 |
# disable binutils -as-needed |
# disable binutils -as-needed |
267 |
sed -i 's/^have-as-needed.*/have-as-needed = no/' ${SRCDIR}/config.make.in || die |
sed -i 's/^have-as-needed.*/have-as-needed = no/' ${SRCDIR}/config.make.in || die |
268 |
|
|
269 |
|
# http://sources.redhat.com/bugzilla/show_bug.cgi?id=4781 |
270 |
|
mpatch glibc-${PVER}-bz4781.patch || die |
271 |
|
|
272 |
|
# http://sources.redhat.com/bugzilla/show_bug.cgi?id=411 |
273 |
|
# http://sourceware.org/ml/libc-alpha/2009-07/msg00072.html |
274 |
|
mpatch glibc-${PVER}-i686.patch || die |
275 |
|
|
276 |
|
# fixes static link issues |
277 |
|
# http://bugs.gentoo.org/332927 |
278 |
|
mpatch glibc-${PVER}-static-shared-getpagesize.patch || die |
279 |
|
|
280 |
# fix permissions on some of the scripts |
# fix permissions on some of the scripts |
281 |
chmod u+x ${SRCDIR}/scripts/*.sh || die |
chmod u+x ${SRCDIR}/scripts/*.sh || die |
282 |
|
|