numactl: fix musl build with a patch by yours truly.
This commit is contained in:
parent
381d5e3ce2
commit
192ee8233c
|
@ -0,0 +1,23 @@
|
||||||
|
__GLIBC_PREREQ is only defined with glibc, so that only process it with __GLIBC__.
|
||||||
|
|
||||||
|
--- syscall.c.orig 2014-10-20 16:12:53.000000000 +0200
|
||||||
|
+++ syscall.c 2015-06-22 08:13:22.729034702 +0200
|
||||||
|
@@ -115,14 +115,16 @@
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#if defined(__GLIBC__) && __GLIBC_PREREQ(2, 11)
|
||||||
|
+#if defined(__GLIBC__)
|
||||||
|
+# if __GLIBC_PREREQ(2,11)
|
||||||
|
|
||||||
|
/* glibc 2.11 seems to have working 6 argument sycall. Use the
|
||||||
|
glibc supplied syscall in this case.
|
||||||
|
The version cut-off is rather arbitary and could be probably
|
||||||
|
earlier. */
|
||||||
|
|
||||||
|
-#define syscall6 syscall
|
||||||
|
+# define syscall6 syscall
|
||||||
|
+#endif
|
||||||
|
#elif defined(__x86_64__)
|
||||||
|
/* 6 argument calls on x86-64 are often buggy in both glibc and
|
||||||
|
asm/unistd.h. Add a working version here. */
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'numactl'
|
# Template file for 'numactl'
|
||||||
pkgname=numactl
|
pkgname=numactl
|
||||||
version=2.0.10
|
version=2.0.10
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="automake libtool"
|
hostmakedepends="automake libtool"
|
||||||
short_desc="Simple NUMA policy support"
|
short_desc="Simple NUMA policy support"
|
||||||
|
@ -10,7 +10,7 @@ license="LGPL-2.1"
|
||||||
homepage="http://oss.sgi.com/projects/libnuma/"
|
homepage="http://oss.sgi.com/projects/libnuma/"
|
||||||
distfiles="ftp://oss.sgi.com/www/projects/libnuma/download/${pkgname}-${version}.tar.gz"
|
distfiles="ftp://oss.sgi.com/www/projects/libnuma/download/${pkgname}-${version}.tar.gz"
|
||||||
checksum=dbdac8fe74f13b2e2864bba352f1597ab1d3345c8c485d7805f58d66f414db61
|
checksum=dbdac8fe74f13b2e2864bba352f1597ab1d3345c8c485d7805f58d66f414db61
|
||||||
only_for_archs="i686 x86_64"
|
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
NOCONFIGURE=1 ./autogen.sh
|
NOCONFIGURE=1 ./autogen.sh
|
||||||
|
|
Loading…
Reference in New Issue