strace: portability patches from Alpine.
This commit is contained in:
parent
b5cd2b86ad
commit
3a0575d107
3 changed files with 30 additions and 0 deletions
13
srcpkgs/strace/patches/arm.patch
Normal file
13
srcpkgs/strace/patches/arm.patch
Normal 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
|
10
srcpkgs/strace/patches/sysinfo.patch
Normal file
10
srcpkgs/strace/patches/sysinfo.patch
Normal 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"
|
|
@ -12,3 +12,10 @@ homepage="http://sourceforge.net/projects/strace"
|
||||||
license="BSD"
|
license="BSD"
|
||||||
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.xz"
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.xz"
|
||||||
checksum=e6180d866ef9e76586b96e2ece2bfeeb3aa23f5cc88153f76e9caedd65e40ee2
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue