strace: portability patches from Alpine.

This commit is contained in:
Juan RP 2015-05-09 11:22:25 +02:00
parent b5cd2b86ad
commit 3a0575d107
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- defs.h
+++ defs.h
@@ -159,6 +159,10 @@
# include <sys/ptrace.h>
#endif
+#if defined(ARM)
+# include <asm/ptrace.h>
+#endif
+
#if defined(POWERPC)
# include <asm/ptrace.h>
#endif

View File

@ -0,0 +1,10 @@
--- resource.c
+++ resource.c
@@ -31,6 +31,7 @@
#include "defs.h"
#include <sys/resource.h>
#include <sys/times.h>
+#include <sys/sysinfo.h>
#include <linux/kernel.h>
#include "xlat/resources.h"

View File

@ -12,3 +12,10 @@ homepage="http://sourceforge.net/projects/strace"
license="BSD"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.xz"
checksum=e6180d866ef9e76586b96e2ece2bfeeb3aa23f5cc88153f76e9caedd65e40ee2
pre_configure() {
sed -i -e 's/include <linux\/socket.h>/include <sys\/socket.h>/g' configure
case "$XBPS_TARGET_MACHINE" in
*-musl) export CFLAGS+=" -Dsigcontext_struct=sigcontext";;
esac
}