glibc: added patch to workaround an assertion in getpagesize() on static bins.
This commit is contained in:
parent
0498ae32be
commit
ef84f3049c
3 changed files with 28 additions and 4 deletions
|
@ -5,6 +5,8 @@ long_desc="${long_desc}
|
||||||
|
|
||||||
This package contains files for development: headers, static libs, etc."
|
This package contains files for development: headers, static libs, etc."
|
||||||
|
|
||||||
|
revision=1
|
||||||
|
|
||||||
Add_dependency run kernel-libc-headers
|
Add_dependency run kernel-libc-headers
|
||||||
Add_dependency run glibc
|
Add_dependency run glibc
|
||||||
|
|
||||||
|
|
21
srcpkgs/glibc/patches/getpagesize_workaround_assertion.patch
Normal file
21
srcpkgs/glibc/patches/getpagesize_workaround_assertion.patch
Normal 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)
|
|
@ -1,15 +1,16 @@
|
||||||
# Template file for 'glibc'
|
# Template file for 'glibc'
|
||||||
pkgname=glibc
|
pkgname=glibc
|
||||||
version=2.12
|
version=2.12
|
||||||
|
revision=1
|
||||||
distfiles="http://xbps.nopcode.org/distfiles/glibc-${version}.tar.bz2"
|
distfiles="http://xbps.nopcode.org/distfiles/glibc-${version}.tar.bz2"
|
||||||
build_style=gnu_configure
|
build_style=gnu_configure
|
||||||
build_wrksrc="build"
|
build_wrksrc="build"
|
||||||
configure_script="../configure"
|
configure_script="../configure"
|
||||||
configure_args="--with-tls -disable-profile --with-__thread
|
configure_args="--with-tls -disable-profile --with-__thread
|
||||||
--enable-kernel=2.6.27 --enable-add-ons --without-gd
|
--enable-kernel=2.6.27 --enable-add-ons --without-gd
|
||||||
--without-cvs --without-selinux --libexecdir=/usr/lib
|
--without-cvs --without-selinux --libexecdir=/usr/lib
|
||||||
--libdir=/usr/lib --enable-stackguard-randomization
|
--libdir=/usr/lib --enable-stackguard-randomization
|
||||||
--with-headers=$XBPS_MASTERDIR/usr/include"
|
--with-headers=$XBPS_MASTERDIR/usr/include"
|
||||||
make_install_target="install_root=$XBPS_DESTDIR/$pkgname-$version install"
|
make_install_target="install_root=$XBPS_DESTDIR/$pkgname-$version install"
|
||||||
short_desc="The GNU C library"
|
short_desc="The GNU C library"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue