From 495276ab55d55bff4af29a116d2085ad58e21d73 Mon Sep 17 00:00:00 2001 From: Henrik Riomar Date: Mon, 25 Feb 2019 08:00:40 +0100 Subject: main/numactl: move from testing --- main/numactl/APKBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ main/numactl/musl.patch | 21 +++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 main/numactl/APKBUILD create mode 100644 main/numactl/musl.patch (limited to 'main/numactl') diff --git a/main/numactl/APKBUILD b/main/numactl/APKBUILD new file mode 100644 index 0000000000..ccfe62950e --- /dev/null +++ b/main/numactl/APKBUILD @@ -0,0 +1,55 @@ +# Maintainer: Daniel Sabogal +pkgname=numactl +pkgver=2.0.12 +pkgrel=2 +pkgdesc="Simple NUMA policy support" +url="https://github.com/numactl/numactl" +# ARM lacks the __NR_migrate_pages syscall +arch="all !armhf !armv7" +license="GPL-2.0 LGPL-2.0" +makedepends="autoconf automake libtool linux-headers" +subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" +case "$CARCH" in + s390x) options="!check";; # FAIL: distance test +esac +source="$pkgname-$pkgver.tar.gz::https://github.com/numactl/$pkgname/archive/v$pkgver.tar.gz + musl.patch" +builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + default_prepare + + cd "$builddir" + ./autogen.sh +} + +check() { + cd "$builddir" + make check VERBOSE=1 TESTS='test/distance test/nodemap test/tbitmap' +} + +build() { + cd "$builddir" + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + + # provided by linux man-pages + rm -r "$pkgdir"/usr/share/man/man2 +} + +tools() { + pkgdesc="NUMA policy control tools" + + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/bin "$subpkgdir"/usr +} + +sha512sums="3814efd924d1c9152a30f6ae5b665afc20648226cd475d72b933c0ec4f30249af4e25110de17f144734b787ed765644dca09a657219806ab5c9c550abd45bf8e numactl-2.0.12.tar.gz +c24affa5a8a8ea83d7f0ee384dc0629e17a5c4201357132f770f894ad4236772116d96d8389d54fb99095af40d1ccbffc3170b5fb9cc88cfca39179f50bee9c9 musl.patch" diff --git a/main/numactl/musl.patch b/main/numactl/musl.patch new file mode 100644 index 0000000000..009233f630 --- /dev/null +++ b/main/numactl/musl.patch @@ -0,0 +1,21 @@ +--- numactl-2.0.11/syscall.c.orig ++++ numactl-2.0.11/syscall.c +@@ -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. */ -- cgit v1.2.3