aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2019-09-09 12:36:51 -0400
committerAnthony G. Basile <blueness@gentoo.org>2019-09-09 12:38:03 -0400
commit140fc469f0b30f0fa7ecb8911063d1534984678f (patch)
tree88bc45c713a212e99a8c21b42a4f9ef57ffb645a /sys-apps
parentmedia-libs/mesa: Version bump 19.2.0_rc2 (diff)
downloadmusl-140fc469f0b30f0fa7ecb8911063d1534984678f.tar.gz
musl-140fc469f0b30f0fa7ecb8911063d1534984678f.tar.bz2
musl-140fc469f0b30f0fa7ecb8911063d1534984678f.zip
sys-apps/sandbox: remove check for asm/ptrace.h
Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/sandbox/files/sandbox-2.14-musl.patch51
-rw-r--r--sys-apps/sandbox/sandbox-2.14.ebuild2
-rw-r--r--sys-apps/sandbox/sandbox-2.15.ebuild2
-rw-r--r--sys-apps/sandbox/sandbox-2.17.ebuild2
4 files changed, 54 insertions, 3 deletions
diff --git a/sys-apps/sandbox/files/sandbox-2.14-musl.patch b/sys-apps/sandbox/files/sandbox-2.14-musl.patch
new file mode 100644
index 0000000..bdc852d
--- /dev/null
+++ b/sys-apps/sandbox/files/sandbox-2.14-musl.patch
@@ -0,0 +1,51 @@
+diff -Naur sandbox-2.14.orig/headers.h sandbox-2.14/headers.h
+--- sandbox-2.14.orig/headers.h 2018-02-19 15:48:16.000000000 +0000
++++ sandbox-2.14/headers.h 2019-09-09 15:38:19.826000640 +0000
+@@ -148,12 +148,14 @@
+ # define ia64_fpreg FU_ia64_fpreg
+ # define pt_all_user_regs FU_pt_all_user_regs
+ #endif
++/*
+ #ifdef HAVE_ASM_PTRACE_H
+ # include <asm/ptrace.h>
+ #endif
+ #ifdef HAVE_LINUX_PTRACE_H
+ # include <linux/ptrace.h>
+ #endif
++*/
+ #undef FU_ia64_fpreg
+ #undef FU_pt_all_user_regs
+
+diff -Naur sandbox-2.14.orig/libsandbox/trace.c sandbox-2.14/libsandbox/trace.c
+--- sandbox-2.14.orig/libsandbox/trace.c 2018-02-19 15:48:16.000000000 +0000
++++ sandbox-2.14/libsandbox/trace.c 2019-09-09 15:38:07.614344692 +0000
+@@ -10,7 +10,7 @@
+ #include "sb_nr.h"
+
+ static long do_peekdata(long offset);
+-static long _do_ptrace(enum __ptrace_request request, const char *srequest, void *addr, void *data);
++static long _do_ptrace(int request, const char *srequest, void *addr, void *data);
+ #define do_ptrace(request, addr, data) _do_ptrace(request, #request, addr, data)
+ #define _trace_possible(data) true
+
+@@ -44,7 +44,7 @@
+ _exit(status);
+ }
+
+-static long _do_ptrace(enum __ptrace_request request, const char *srequest, void *addr, void *data)
++static long _do_ptrace(int request, const char *srequest, void *addr, void *data)
+ {
+ long ret;
+ try_again:
+diff -Naur sandbox-2.14.orig/scripts/gen_symbol_header.awk sandbox-2.14/scripts/gen_symbol_header.awk
+--- sandbox-2.14.orig/scripts/gen_symbol_header.awk 2018-02-19 15:48:16.000000000 +0000
++++ sandbox-2.14/scripts/gen_symbol_header.awk 2019-09-09 15:38:07.614344692 +0000
+@@ -161,7 +161,7 @@
+ else
+ printf("symbol_version(%s, %s, %s);\n",
+ sym_real_name, sym_index, symbol_array[2]);
+- } else {
++ } else if (!(sym_index ~ 64)) {
+ # For non-versioned libc's we use strong aliases
+ printf("strong_alias(%s, %s);\n", sym_real_name,
+ sym_index);
diff --git a/sys-apps/sandbox/sandbox-2.14.ebuild b/sys-apps/sandbox/sandbox-2.14.ebuild
index eeb4c75..998b8d0 100644
--- a/sys-apps/sandbox/sandbox-2.14.ebuild
+++ b/sys-apps/sandbox/sandbox-2.14.ebuild
@@ -26,7 +26,7 @@ sandbox_death_notice() {
}
src_prepare() {
- eapply "${FILESDIR}"/${PN}-2.11-musl.patch
+ eapply "${FILESDIR}"/${PN}-2.14-musl.patch
eapply "${FILESDIR}"/${PN}-2.10-fix-visibility-musl.patch
eapply_user
}
diff --git a/sys-apps/sandbox/sandbox-2.15.ebuild b/sys-apps/sandbox/sandbox-2.15.ebuild
index eeb4c75..615412f 100644
--- a/sys-apps/sandbox/sandbox-2.15.ebuild
+++ b/sys-apps/sandbox/sandbox-2.15.ebuild
@@ -26,7 +26,7 @@ sandbox_death_notice() {
}
src_prepare() {
- eapply "${FILESDIR}"/${PN}-2.11-musl.patch
+ eapply "${FILESDIR}"/${PN}-2.15-musl.patch
eapply "${FILESDIR}"/${PN}-2.10-fix-visibility-musl.patch
eapply_user
}
diff --git a/sys-apps/sandbox/sandbox-2.17.ebuild b/sys-apps/sandbox/sandbox-2.17.ebuild
index 3225b22..6455c6a 100644
--- a/sys-apps/sandbox/sandbox-2.17.ebuild
+++ b/sys-apps/sandbox/sandbox-2.17.ebuild
@@ -26,7 +26,7 @@ sandbox_death_notice() {
}
src_prepare() {
- eapply "${FILESDIR}"/${PN}-2.11-musl.patch
+ eapply "${FILESDIR}"/${PN}-2.14-musl.patch
eapply "${FILESDIR}"/${PN}-2.10-fix-visibility-musl.patch
eapply_user
}