summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2020-08-27 22:53:04 +0200
committerConrad Kostecki <conikost@gentoo.org>2020-08-27 22:59:15 +0200
commit102a02616132258cb9e6715264bd7a8a6ddac868 (patch)
treed44363bc82c6e036406ff8d0d0e61714de2f3f16 /dev-util/statifier
parentapp-misc/graphlcd-base: fix compilation with musl (diff)
downloadgentoo-102a02616132258cb9e6715264bd7a8a6ddac868.tar.gz
gentoo-102a02616132258cb9e6715264bd7a8a6ddac868.tar.bz2
gentoo-102a02616132258cb9e6715264bd7a8a6ddac868.zip
dev-util/statifier: fix compilation with musl
Closes: https://bugs.gentoo.org/713604 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-util/statifier')
-rw-r--r--dev-util/statifier/files/statifier-1.7.4-musl.patch28
-rw-r--r--dev-util/statifier/statifier-1.7.4-r1.ebuild1
-rw-r--r--dev-util/statifier/statifier-1.7.4.ebuild1
3 files changed, 30 insertions, 0 deletions
diff --git a/dev-util/statifier/files/statifier-1.7.4-musl.patch b/dev-util/statifier/files/statifier-1.7.4-musl.patch
new file mode 100644
index 000000000000..919f354127b3
--- /dev/null
+++ b/dev-util/statifier/files/statifier-1.7.4-musl.patch
@@ -0,0 +1,28 @@
+--- a/src/my_gdb/my_ptrace.c
++++ b/src/my_gdb/my_ptrace.c
+@@ -13,8 +13,10 @@
+ #include <stdlib.h>
+ #include <string.h>
+
++typedef int statifier_ptrace_req_t;
++
+ long my_ptrace(
+- enum __ptrace_request request,
++ statifier_ptrace_req_t request,
+ pid_t pid,
+ void *addr,
+ void *data,
+--- a/src/my_gdb/my_ptrace.h
++++ b/src/my_gdb/my_ptrace.h
+@@ -15,8 +15,10 @@
+ #include <sys/types.h>
+ #include <sys/ptrace.h>
+
++typedef int statifier_ptrace_req_t;
++
+ long my_ptrace(
+- enum __ptrace_request request,
++ statifier_ptrace_req_t request,
+ pid_t pid,
+ void *addr,
+ void *data,
diff --git a/dev-util/statifier/statifier-1.7.4-r1.ebuild b/dev-util/statifier/statifier-1.7.4-r1.ebuild
index b986e79dd443..5bdd7e9ca4e7 100644
--- a/dev-util/statifier/statifier-1.7.4-r1.ebuild
+++ b/dev-util/statifier/statifier-1.7.4-r1.ebuild
@@ -24,6 +24,7 @@ RDEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-1.7.4-clang.patch
"${FILESDIR}"/${PN}-1.7.4-fix-build-system.patch
+ "${FILESDIR}"/${PN}-1.7.4-musl.patch
)
src_prepare() {
diff --git a/dev-util/statifier/statifier-1.7.4.ebuild b/dev-util/statifier/statifier-1.7.4.ebuild
index 74c850e0b93e..7ade05bbc42a 100644
--- a/dev-util/statifier/statifier-1.7.4.ebuild
+++ b/dev-util/statifier/statifier-1.7.4.ebuild
@@ -24,6 +24,7 @@ RDEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-1.7.4-clang.patch
"${FILESDIR}"/${PN}-1.7.4-fix-build-system.patch
+ "${FILESDIR}"/${PN}-1.7.4-musl.patch
)
src_prepare() {