aboutsummaryrefslogtreecommitdiffstats
path: root/main/strace
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-12-21 20:09:11 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-12-24 09:52:48 +0000
commit3a793c90d496d4629e9ef10498ba99b55e9b1f04 (patch)
tree9fc92db2d1eb85c483526ab9805fab52af34b18a /main/strace
parentcfa29521fa600cd72191fb568e350217036d6eaa (diff)
downloadaports-3a793c90d496d4629e9ef10498ba99b55e9b1f04.tar.bz2
aports-3a793c90d496d4629e9ef10498ba99b55e9b1f04.tar.xz
main/strace: fix musl/x86_64 build
Diffstat (limited to 'main/strace')
-rw-r--r--main/strace/APKBUILD9
-rw-r--r--main/strace/strace-musl.patch54
2 files changed, 32 insertions, 31 deletions
diff --git a/main/strace/APKBUILD b/main/strace/APKBUILD
index 9110f45985..329ba7f5f4 100644
--- a/main/strace/APKBUILD
+++ b/main/strace/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=strace
pkgver=4.8
-pkgrel=1
+pkgrel=2
pkgdesc="A useful diagnositic, instructional, and debugging tool"
url="http://sourceforge.net/projects/strace/"
arch="all"
@@ -30,6 +30,7 @@ build() {
case "$CLIBC" in
musl) export CFLAGS="$CFLAGS -Dsigcontext_struct=sigcontext" ;;
esac
+ ac_cv_have_long_long_off_t=yes \
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -43,8 +44,8 @@ package() {
make -j1 DESTDIR="$pkgdir" install
}
md5sums="c575ef43829586801f514fd91bfe7575 strace-4.8.tar.xz
-1900bed9f95797239b3f5d9e0edab766 strace-musl.patch"
+5b712a014ae68e6c3de4b6c0d0429a10 strace-musl.patch"
sha256sums="f492291f07a7c805c07a8395cce1ea054a6401ad414f4cc12185672215e1d7f8 strace-4.8.tar.xz
-990b4631b6337495466a26a9842d7563d281b3074ed490128a23b08af3c9e338 strace-musl.patch"
+b244c17727758aff25a21675828cbbc2a662329985c8bd8ee770c222435aa115 strace-musl.patch"
sha512sums="c3316382f60cd4d02eec1eef46a0ef2d000afbccf2c176a6fec652e1b3391685f0e33f184497cb3ccf54d72d460471a4945d3a864fb5bce1f45f32fdf132cfe3 strace-4.8.tar.xz
-60700c15b26fa7d3c091fa4fff7dee3827d3b224cc5c5bbc3a88748055c50d7fe17a3bf8b6f4ba417001b445ab91615b803e48313a4f53fa2a0774cc23348b97 strace-musl.patch"
+3cb76721e34c8412955c4533a4ba6ce1a7d17941f968db710233017dffce3ae793a888cf1e81a9d4301f79cfdfe2f9c510b31e042536aa930bfd47f4ca37ad28 strace-musl.patch"
diff --git a/main/strace/strace-musl.patch b/main/strace/strace-musl.patch
index e5a211a17d..48f2c58b18 100644
--- a/main/strace/strace-musl.patch
+++ b/main/strace/strace-musl.patch
@@ -1,6 +1,5 @@
-diff -ru strace-4.8.orig/defs.h strace-4.8/defs.h
---- strace-4.8.orig/defs.h 2013-05-14 14:10:42.000000000 +0000
-+++ strace-4.8/defs.h 2013-09-20 14:30:38.785856744 +0000
+--- strace-4.8.orig/defs.h
++++ strace-4.8/defs.h
@@ -155,7 +155,7 @@
|| defined(METAG) \
|| defined(TILE) \
@@ -19,9 +18,8 @@ diff -ru strace-4.8.orig/defs.h strace-4.8/defs.h
# define PTRACE_PEEKUSER PTRACE_PEEKUSR
# define PTRACE_POKEUSER PTRACE_POKEUSR
#endif
-diff -ru strace-4.8.orig/desc.c strace-4.8/desc.c
---- strace-4.8.orig/desc.c 2013-05-01 22:39:10.000000000 +0000
-+++ strace-4.8/desc.c 2013-09-20 14:30:38.795856744 +0000
+--- strace-4.8.orig/desc.c
++++ strace-4.8/desc.c
@@ -299,7 +299,7 @@
#ifdef X32
tprintf(", start=%lld, len=%lld", fl.l_start, fl.l_len);
@@ -31,9 +29,8 @@ diff -ru strace-4.8.orig/desc.c strace-4.8/desc.c
#endif
if (getlk)
tprintf(", pid=%lu}", (unsigned long) fl.l_pid);
-diff -ru strace-4.8.orig/file.c strace-4.8/file.c
---- strace-4.8.orig/file.c 2013-05-06 18:23:01.000000000 +0000
-+++ strace-4.8/file.c 2013-09-20 14:30:38.795856744 +0000
+--- strace-4.8.orig/file.c
++++ strace-4.8/file.c
@@ -632,7 +632,7 @@
return 0;
}
@@ -61,9 +58,8 @@ diff -ru strace-4.8.orig/file.c strace-4.8/file.c
int
sys_getdents64(struct tcb *tcp)
{
-diff -ru strace-4.8.orig/net.c strace-4.8/net.c
---- strace-4.8.orig/net.c 2013-05-17 22:20:02.000000000 +0000
-+++ strace-4.8/net.c 2013-09-20 14:30:38.805856744 +0000
+--- strace-4.8.orig/net.c
++++ strace-4.8/net.c
@@ -95,12 +95,14 @@
#endif
@@ -79,9 +75,17 @@ diff -ru strace-4.8.orig/net.c strace-4.8/net.c
static const struct xlat domains[] = {
#ifdef PF_UNSPEC
-diff -ru strace-4.8.orig/process.c strace-4.8/process.c
---- strace-4.8.orig/process.c 2013-05-17 22:22:19.000000000 +0000
-+++ strace-4.8/process.c 2013-09-20 14:30:38.805856744 +0000
+--- strace-4.8.orig/process.c
++++ strace-4.8/process.c
+@@ -55,7 +55,7 @@
+ # endif
+ #endif
+
+-#ifdef HAVE_LINUX_PTRACE_H
++#if defined HAVE_LINUX_PTRACE_H && defined __GLIBC__
+ # undef PTRACE_SYSCALL
+ # ifdef HAVE_STRUCT_IA64_FPREG
+ # define ia64_fpreg XXX_ia64_fpreg
@@ -2857,7 +2857,7 @@
if (umove(tcp, tcp->u_arg[2], &p) < 0)
tprintf(", %#lx", tcp->u_arg[2]);
@@ -109,9 +113,8 @@ diff -ru strace-4.8.orig/process.c strace-4.8/process.c
}
return 0;
}
-diff -ru strace-4.8.orig/signal.c strace-4.8/signal.c
---- strace-4.8.orig/signal.c 2013-05-23 13:41:23.000000000 +0000
-+++ strace-4.8/signal.c 2013-09-20 14:30:38.815856744 +0000
+--- strace-4.8.orig/signal.c
++++ strace-4.8/signal.c
@@ -59,6 +59,7 @@
#ifdef IA64
# include <asm/ptrace_offsets.h>
@@ -120,9 +123,8 @@ diff -ru strace-4.8.orig/signal.c strace-4.8/signal.c
#if defined(SPARC) || defined(SPARC64) || defined(MIPS)
typedef struct {
-diff -ru strace-4.8.orig/strace.c strace-4.8/strace.c
---- strace-4.8.orig/strace.c 2013-05-28 21:49:16.000000000 +0000
-+++ strace-4.8/strace.c 2013-09-20 14:30:38.815856744 +0000
+--- strace-4.8.orig/strace.c
++++ strace-4.8/strace.c
@@ -506,7 +506,7 @@
perror_msg_and_die("dup2");
close(fds[0]);
@@ -132,9 +134,8 @@ diff -ru strace-4.8.orig/strace.c strace-4.8/strace.c
perror_msg_and_die("Can't execute '%s'", _PATH_BSHELL);
}
-diff -ru strace-4.8.orig/syscall.c strace-4.8/syscall.c
---- strace-4.8.orig/syscall.c 2013-05-14 14:10:42.000000000 +0000
-+++ strace-4.8/syscall.c 2013-09-20 14:30:38.825856744 +0000
+--- strace-4.8.orig/syscall.c
++++ strace-4.8/syscall.c
@@ -72,13 +72,7 @@
# include <elf.h>
#endif
@@ -150,9 +151,8 @@ diff -ru strace-4.8.orig/syscall.c strace-4.8/syscall.c
#ifndef ERESTARTSYS
# define ERESTARTSYS 512
-diff -ru strace-4.8.orig/time.c strace-4.8/time.c
---- strace-4.8.orig/time.c 2012-05-01 21:17:51.000000000 +0000
-+++ strace-4.8/time.c 2013-09-20 14:32:49.165856719 +0000
+--- strace-4.8.orig/time.c
++++ strace-4.8/time.c
@@ -774,7 +774,11 @@
/* _pad[0] is the _tid field which might not be
present in the userlevel definition of the