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,6 +1,7 @@
|
||||||
# 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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue