glibc: added patch to workaround an assertion in getpagesize() on static bins.

This commit is contained in:
Juan RP 2010-05-08 17:47:50 +02:00
parent 0498ae32be
commit ef84f3049c
3 changed files with 28 additions and 4 deletions

View file

@ -5,6 +5,8 @@ long_desc="${long_desc}
This package contains files for development: headers, static libs, etc."
revision=1
Add_dependency run kernel-libc-headers
Add_dependency run glibc

View file

@ -0,0 +1,21 @@
--- sysdeps/unix/sysv/linux/getpagesize.c.orig 2010-05-08 17:30:11.713092813 +0200
+++ sysdeps/unix/sysv/linux/getpagesize.c 2010-05-08 17:30:40.031108986 +0200
@@ -28,10 +28,6 @@
int
__getpagesize ()
{
-#ifdef __ASSUME_AT_PAGESIZE
- assert (GLRO(dl_pagesize) != 0);
- return GLRO(dl_pagesize);
-#else
if (GLRO(dl_pagesize) != 0)
return GLRO(dl_pagesize);
@@ -47,7 +43,6 @@ __getpagesize ()
return NBPC;
# endif /* NBPG. */
# endif /* EXEC_PAGESIZE. */
-#endif
}
libc_hidden_def (__getpagesize)
weak_alias (__getpagesize, getpagesize)

View file

@ -1,15 +1,16 @@
# Template file for 'glibc'
pkgname=glibc
version=2.12
revision=1
distfiles="http://xbps.nopcode.org/distfiles/glibc-${version}.tar.bz2"
build_style=gnu_configure
build_wrksrc="build"
configure_script="../configure"
configure_args="--with-tls -disable-profile --with-__thread
--enable-kernel=2.6.27 --enable-add-ons --without-gd
--without-cvs --without-selinux --libexecdir=/usr/lib
--libdir=/usr/lib --enable-stackguard-randomization
--with-headers=$XBPS_MASTERDIR/usr/include"
--enable-kernel=2.6.27 --enable-add-ons --without-gd
--without-cvs --without-selinux --libexecdir=/usr/lib
--libdir=/usr/lib --enable-stackguard-randomization
--with-headers=$XBPS_MASTERDIR/usr/include"
make_install_target="install_root=$XBPS_DESTDIR/$pkgname-$version install"
short_desc="The GNU C library"
maintainer="Juan RP <xtraeme@gmail.com>"