From patchwork Thu Jun 25 10:32:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dirk Neukirchen X-Patchwork-Id: 488410 X-Patchwork-Delegate: jow@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 868A51402C3 for ; Thu, 25 Jun 2015 20:34:29 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id ADC39283FEF; Thu, 25 Jun 2015 12:34:03 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 510FD28089E for ; Thu, 25 Jun 2015 12:33:28 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .web. - helo: .mout.web. - helo-domain: .web.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mout.web.de (mout.web.de [212.227.15.3]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Thu, 25 Jun 2015 12:33:27 +0200 (CEST) Received: from [192.168.3.157] ([91.66.247.224]) by smtp.web.de (mrweb002) with ESMTPSA (Nemesis) id 0Mg7Vd-1ZUoW23I8r-00NNyn for ; Thu, 25 Jun 2015 12:33:35 +0200 To: OpenWrt Development List From: Dirk Neukirchen Message-ID: <558BD8CF.6020708@web.de> Date: Thu, 25 Jun 2015 12:32:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 X-Provags-ID: V03:K0:ijg5akDSS8wXAMvSKbkuwKspO3GKZJgwOMAzgjrqzcgyaw4uNdl I+UlixtYmcbY+t+gL4z5Q6uyTHfuSNMDXrb1bMVUnA2/EZYjb0O3h+jAcfiBNZjTAThsAa/ 4j9l2FqByHwveKmO/Bbu4mubYblWsLk7a09RQoHL/2mqPRahMMWqme7aah1wjWFRCgKo6Y1 R0uzFlK0Nxq3eSgz5BQyg== X-UI-Out-Filterresults: notjunk:1; V01:K0:qfom2asrE7w=:tBtVuTgdQKMqvM8rQi2mW+ V+AWhgK4PnoIgx7Xoa5smefNdx6o5PZoyGv1RnHPZmlGhUI0CZOpDGsyQWivWnDdseIWWyQ/y Kj3vSNPJllGvYTo+224KcyrAebXhwAQiIS9fDbkstL1k/Ze9X2XVl4VcHWtXjY7XtIKBAnv0B WUhXIbE4wY8OIq/1tgvq52b3koANYv/PYfblmIdviAwC/ljqM/HiX+TgZxkSMZ7AeYB58699w S4gXWX4eUkihKbFS/RXHw0OzeenGfHgQhr61r2gh1NAuj6ffb20WMhSC8W4WeF8FeC42fzw+t AbSiXNYaLklihzKRt4/dwgZWQWW8k6ROQqWHbOSTcjlmew+U5z0BqmnPE+Mj4BbGokeRXLfK2 chhlrWZs+mJ65LiHsys9CHor1iJQ8PSHAaAavI/77e05yiJ1jUBymVo+bUycDL70oXfZOxunP BLK9M/lwzy/7wicDIxi/z0RHgOKs+8b4pFXBpliQLibXNOF+aChnHQh6Jjhj9yg+1yaR3Ncol mGP8bpAILYjYsVEbFT0ZHj4n120UXsgDmjtzFLqx6713iVUC6qw9wPj8kJdImmpdfhxkRxd/N 3wGzk51Zt1YNUXNMvjYZL8r6e5+znTKPA2cFuOJbNmJXPmvpjrAw3VFSfBuXHbSsL8zhCG+CO h40TXLYJ+Me7KO0WzLbPpAjckZ/cc8RqsO7ULAK7DAeY28LWEDRzDmuB+reLZbvHnjgo= Subject: [OpenWrt-Devel] [PATCH] [package] strace: update to 4.10 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" - include upstream fixes for musl compatibility Include for S_I* macros d34e00b293942b1012ddc49ed3ab379a32337611 Include for _IOC_* macros 3460dc486d333231998de0f19918204aacee9ae3 strace 4.8 is broken with musl on some arch (arm: omap,oxnas according to buildbot) compile tested only Signed-off-by: Dirk Neukirchen diff --git a/package/devel/strace/Makefile b/package/devel/strace/Makefile index 4c29d69..04456f0 100644 --- a/package/devel/strace/Makefile +++ b/package/devel/strace/Makefile @@ -10,9 +10,9 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=strace -PKG_VERSION:=4.8 +PKG_VERSION:=4.10 PKG_RELEASE:=1 -PKG_MD5SUM:=c575ef43829586801f514fd91bfe7575 +PKG_MD5SUM:=107a5be455493861189e9b57a3a51912 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@SF/$(PKG_NAME) diff --git a/package/devel/strace/patches/001-upstream-musl_includes.patch b/package/devel/strace/patches/001-upstream-musl_includes.patch new file mode 100644 index 0000000..a35d7fd --- /dev/null +++ b/package/devel/strace/patches/001-upstream-musl_includes.patch @@ -0,0 +1,53 @@ +--- a/evdev.c ++++ b/evdev.c +@@ -28,6 +28,8 @@ + + #include "defs.h" + ++#include ++ + #ifdef HAVE_LINUX_INPUT_H + #include + #include "xlat/evdev_abs.h" +--- a/ioctl.c ++++ b/ioctl.c +@@ -29,7 +29,7 @@ + */ + + #include "defs.h" +-#include ++#include + #include "xlat/ioctl_dirs.h" + + #ifdef HAVE_LINUX_INPUT_H +--- a/ioctlsort.c ++++ b/ioctlsort.c +@@ -33,7 +33,7 @@ + #include + #include + #include +-#include ++#include + + struct ioctlent { + const char *info; +--- a/mknod.c ++++ b/mknod.c +@@ -1,6 +1,7 @@ + #include "defs.h" + + #include ++#include + + #ifdef MAJOR_IN_SYSMACROS + # include +--- a/printmode.c ++++ b/printmode.c +@@ -1,6 +1,7 @@ + #include "defs.h" + + #include ++#include + + #include "xlat/modetypes.h" + diff --git a/package/devel/strace/patches/100-musl_fix.patch b/package/devel/strace/patches/100-musl_fix.patch deleted file mode 100644 index e4105bc..0000000 --- a/package/devel/strace/patches/100-musl_fix.patch +++ /dev/null @@ -1,165 +0,0 @@ ---- a/net.c -+++ b/net.c -@@ -50,11 +50,7 @@ - #include - #include - #include --#if defined(__GLIBC__) --# include --#else --# include --#endif -+#include - - #if defined(__GLIBC__) && defined(HAVE_SIN6_SCOPE_ID_LINUX) - # if defined(HAVE_LINUX_IN6_H) -@@ -94,14 +90,6 @@ - # define PF_UNSPEC AF_UNSPEC - #endif - --/* Under Linux these are enums so we can't test for them with ifdef. */ --#define IPPROTO_EGP IPPROTO_EGP --#define IPPROTO_PUP IPPROTO_PUP --#define IPPROTO_IDP IPPROTO_IDP --#define IPPROTO_IGMP IPPROTO_IGMP --#define IPPROTO_RAW IPPROTO_RAW --#define IPPROTO_MAX IPPROTO_MAX -- - static const struct xlat domains[] = { - #ifdef PF_UNSPEC - { PF_UNSPEC, "PF_UNSPEC" }, -@@ -493,24 +481,16 @@ static const struct xlat protocols[] = { - { IPPROTO_ICMP, "IPPROTO_ICMP" }, - { IPPROTO_TCP, "IPPROTO_TCP" }, - { IPPROTO_UDP, "IPPROTO_UDP" }, --#ifdef IPPROTO_IGMP - { IPPROTO_IGMP, "IPPROTO_IGMP" }, --#endif - #ifdef IPPROTO_GGP - { IPPROTO_GGP, "IPPROTO_GGP" }, - #endif - #ifdef IPPROTO_IPIP - { IPPROTO_IPIP, "IPPROTO_IPIP" }, - #endif --#ifdef IPPROTO_EGP - { IPPROTO_EGP, "IPPROTO_EGP" }, --#endif --#ifdef IPPROTO_PUP - { IPPROTO_PUP, "IPPROTO_PUP" }, --#endif --#ifdef IPPROTO_IDP - { IPPROTO_IDP, "IPPROTO_IDP" }, --#endif - #ifdef IPPROTO_TP - { IPPROTO_TP, "IPPROTO_TP" }, - #endif -@@ -571,12 +551,8 @@ static const struct xlat protocols[] = { - #ifdef IPPROTO_UDPLITE - { IPPROTO_UDPLITE, "IPPROTO_UDPLITE" }, - #endif --#ifdef IPPROTO_RAW - { IPPROTO_RAW, "IPPROTO_RAW" }, --#endif --#ifdef IPPROTO_MAX - { IPPROTO_MAX, "IPPROTO_MAX" }, --#endif - { 0, NULL }, - }; - static const struct xlat msg_flags[] = { ---- a/process.c -+++ b/process.c -@@ -55,19 +55,6 @@ - # endif - #endif - --#ifdef HAVE_LINUX_PTRACE_H --# undef PTRACE_SYSCALL --# ifdef HAVE_STRUCT_IA64_FPREG --# define ia64_fpreg XXX_ia64_fpreg --# endif --# ifdef HAVE_STRUCT_PT_ALL_USER_REGS --# define pt_all_user_regs XXX_pt_all_user_regs --# endif --# include --# undef ia64_fpreg --# undef pt_all_user_regs --#endif -- - #if defined(SPARC64) - # define r_pc r_tpc - # undef PTRACE_GETREGS -@@ -94,6 +81,7 @@ - - #include - #include -+#include - #undef GETGROUPS_T - #define GETGROUPS_T __kernel_gid_t - #undef GETGROUPS32_T -@@ -2857,7 +2845,7 @@ sys_sched_setscheduler(struct tcb *tcp) - if (umove(tcp, tcp->u_arg[2], &p) < 0) - tprintf(", %#lx", tcp->u_arg[2]); - else -- tprintf(", { %d }", p.__sched_priority); -+ tprintf(", { %d }", p.sched_priority); - } - return 0; - } -@@ -2872,7 +2860,7 @@ sys_sched_getparam(struct tcb *tcp) - if (umove(tcp, tcp->u_arg[1], &p) < 0) - tprintf("%#lx", tcp->u_arg[1]); - else -- tprintf("{ %d }", p.__sched_priority); -+ tprintf("{ %d }", p.sched_priority); - } - return 0; - } -@@ -2885,7 +2873,7 @@ sys_sched_setparam(struct tcb *tcp) - if (umove(tcp, tcp->u_arg[1], &p) < 0) - tprintf("%d, %#lx", (int) tcp->u_arg[0], tcp->u_arg[1]); - else -- tprintf("%d, { %d }", (int) tcp->u_arg[0], p.__sched_priority); -+ tprintf("%d, { %d }", (int) tcp->u_arg[0], p.sched_priority); - } - return 0; - } ---- a/signal.c -+++ b/signal.c -@@ -35,6 +35,7 @@ - #include - #include - -+#include - #ifdef HAVE_SYS_REG_H - # include - # ifndef PTRACE_PEEKUSR ---- a/time.c -+++ b/time.c -@@ -774,7 +774,7 @@ printsigevent(struct tcb *tcp, long arg) - /* _pad[0] is the _tid field which might not be - present in the userlevel definition of the - struct. */ -- tprintf("{%d}", sev._sigev_un._pad[0]); -+ tprintf("{%d}", *(int *) &sev.sigev_notify_function); - else if (sev.sigev_notify == SIGEV_THREAD) - tprintf("{%p, %p}", sev.sigev_notify_function, - sev.sigev_notify_attributes); ---- a/defs.h -+++ b/defs.h -@@ -27,6 +27,7 @@ - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -+#define _LARGEFILE64_SOURCE 1 - #ifdef HAVE_CONFIG_H - # include "config.h" - #endif -@@ -222,7 +223,7 @@ extern long ptrace(int, int, char *, lon - # define PTRACE_EVENT_EXIT 6 - #endif - --#if !defined(__GLIBC__) -+#if !defined(__GLIBC__) && !defined(PTRACE_PEEKUSER) - # define PTRACE_PEEKUSER PTRACE_PEEKUSR - # define PTRACE_POKEUSER PTRACE_POKEUSR - #endif