From d2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 15 Jun 2022 20:02:02 +0100 Subject: added deps for qemu --- repo/numactl/musl.patch | 21 +++++++++++++++++++++ repo/numactl/numactl.xibuild | 31 +++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 repo/numactl/musl.patch create mode 100644 repo/numactl/numactl.xibuild (limited to 'repo/numactl') diff --git a/repo/numactl/musl.patch b/repo/numactl/musl.patch new file mode 100644 index 0000000..009233f --- /dev/null +++ b/repo/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. */ diff --git a/repo/numactl/numactl.xibuild b/repo/numactl/numactl.xibuild new file mode 100644 index 0000000..aa4aaf1 --- /dev/null +++ b/repo/numactl/numactl.xibuild @@ -0,0 +1,31 @@ +#!/bin/sh + +NAME="numactl" +DESC="Simple NUMA policy support" + +MAKEDEPS="autoconf automake libtool linux-headers" + +PKG_VER=2.0.14 +SOURCE="https://github.com/numactl/numactl/archive/v$PKG_VER.tar.gz" + +ADDITIONAL=" +musl.patch +" + +prepare() { + apply_patches + + ./autogen.sh +} + +build() { + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man + make +} + +package() { + make DESTDIR="$PKG_DEST" install + rm -r "$PKG_DEST"/usr/share/man/man2 +} -- cgit v1.2.1