diff options
author | Marek Szuba <marecki@gentoo.org> | 2021-11-29 20:32:37 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2021-11-29 20:33:49 +0100 |
commit | ad8f95bc0feb13a824d6287f63960e842c3d8679 (patch) | |
tree | e52b20653d0cf9a4c3338236118c64f2130f114f /app-forensics/honggfuzz | |
parent | dev-libs/boost: stable 1.77.0-r3 for sparc, bug #821970 (diff) | |
download | gentoo-ad8f95bc0feb13a824d6287f63960e842c3d8679.tar.gz gentoo-ad8f95bc0feb13a824d6287f63960e842c3d8679.tar.bz2 gentoo-ad8f95bc0feb13a824d6287f63960e842c3d8679.zip |
app-forensics/honggfuzz: fix building against musl
With many thanks to sam for having pointed me to queue-standalone!
Closes: https://bugs.gentoo.org/715648
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-forensics/honggfuzz')
-rw-r--r-- | app-forensics/honggfuzz/files/honggfuzz-2.4-headers-musl.patch | 45 | ||||
-rw-r--r-- | app-forensics/honggfuzz/honggfuzz-2.4.ebuild | 6 |
2 files changed, 49 insertions, 2 deletions
diff --git a/app-forensics/honggfuzz/files/honggfuzz-2.4-headers-musl.patch b/app-forensics/honggfuzz/files/honggfuzz-2.4-headers-musl.patch new file mode 100644 index 000000000000..e70d6eae4eaf --- /dev/null +++ b/app-forensics/honggfuzz/files/honggfuzz-2.4-headers-musl.patch @@ -0,0 +1,45 @@ +From 29864795b194481dd0446326cda89b9802f4fe51 Mon Sep 17 00:00:00 2001 +From: David Carlier <devnexen@gmail.com> +Date: Sat, 8 May 2021 11:23:32 +0100 +Subject: [PATCH] musl build fix proposal + +--- a/linux/arch.c ++++ b/linux/arch.c +@@ -34,7 +34,9 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#if defined(__GLIBC__) + #include <sys/cdefs.h> ++#endif + #include <sys/personality.h> + #include <sys/prctl.h> + #include <sys/syscall.h> +--- a/linux/perf.c ++++ b/linux/perf.c +@@ -30,12 +30,12 @@ + #include <linux/hw_breakpoint.h> + #include <linux/perf_event.h> + #include <linux/sysctl.h> ++#include <poll.h> + #include <signal.h> + #include <stdlib.h> + #include <string.h> + #include <sys/ioctl.h> + #include <sys/mman.h> +-#include <sys/poll.h> + #include <sys/ptrace.h> + #include <sys/syscall.h> + #include <unistd.h> +--- a/linux/trace.c ++++ b/linux/trace.c +@@ -34,7 +34,9 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#if defined(__GLIBC__) + #include <sys/cdefs.h> ++#endif + #include <sys/personality.h> + #include <sys/ptrace.h> + #include <sys/resource.h> diff --git a/app-forensics/honggfuzz/honggfuzz-2.4.ebuild b/app-forensics/honggfuzz/honggfuzz-2.4.ebuild index e73640196eb9..5220a5f4c483 100644 --- a/app-forensics/honggfuzz/honggfuzz-2.4.ebuild +++ b/app-forensics/honggfuzz/honggfuzz-2.4.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://github.com/google/honggfuzz/archive/${PV}.tar.gz -> ${P}.tar.gz LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" -IUSE="clang" +IUSE="clang elibc_musl" RDEPEND=" >=sys-libs/binutils-libs-2.29:= @@ -21,7 +21,8 @@ RDEPEND=" clang? ( sys-libs/blocksruntime ) " -DEPEND="${RDEPEND}" +DEPEND="${RDEPEND} + elibc_musl? ( sys-libs/queue-standalone )" DOCS=( CHANGELOG @@ -32,6 +33,7 @@ DOCS=( PATCHES=( "${FILESDIR}"/${PN}-2.0-no-werror.patch + "${FILESDIR}"/${PN}-2.4-headers-musl.patch ) pkg_pretend() { |