summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2017-08-11 08:52:17 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2017-08-11 08:52:28 +0100
commite299215e94b8d6878fd12cea426083ab22c05f81 (patch)
treeb59327e63757368ed9b94d59d69fbf25c29fee93 /app-forensics
parentnet-libs/libsoup: version bump 2.56.0 → 2.56.1, bug #627466 (diff)
downloadgentoo-e299215e94b8d6878fd12cea426083ab22c05f81.tar.gz
gentoo-e299215e94b8d6878fd12cea426083ab22c05f81.tar.bz2
gentoo-e299215e94b8d6878fd12cea426083ab22c05f81.zip
app-forensics/honggfuzz: adapt to binutils-2.29 API change
disassembler() function got more parameters: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=003ca0fd22863aaf1a9811c8a35a0133a2d27fb1 Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'app-forensics')
-rw-r--r--app-forensics/honggfuzz/files/honggfuzz-1.1-binutils-2.29.patch11
-rw-r--r--app-forensics/honggfuzz/honggfuzz-1.1.ebuild7
2 files changed, 18 insertions, 0 deletions
diff --git a/app-forensics/honggfuzz/files/honggfuzz-1.1-binutils-2.29.patch b/app-forensics/honggfuzz/files/honggfuzz-1.1-binutils-2.29.patch
new file mode 100644
index 000000000000..31a57784ed8f
--- /dev/null
+++ b/app-forensics/honggfuzz/files/honggfuzz-1.1-binutils-2.29.patch
@@ -0,0 +1,11 @@
+Adapt to binutils-2.29 API change caused by
+https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=003ca0fd22863aaf1a9811c8a35a0133a2d27fb1
+diff --git a/linux/bfd.c b/linux/bfd.c
+index bcd247f..e9e16ab 100644
+--- a/linux/bfd.c
++++ b/linux/bfd.c
+@@ -163,3 +163,3 @@ void arch_bfdDisasm(pid_t pid, uint8_t * mem, size_t size, char *instr)
+
+- disassembler_ftype disassemble = disassembler(bfdh);
++ disassembler_ftype disassemble = disassembler(bfd_get_arch(bfdh), bfd_little_endian(bfdh), bfd_get_mach(bfdh), bfdh);
+ if (disassemble == NULL) {
diff --git a/app-forensics/honggfuzz/honggfuzz-1.1.ebuild b/app-forensics/honggfuzz/honggfuzz-1.1.ebuild
index 1e7413dc5fa0..eb072b67c9bf 100644
--- a/app-forensics/honggfuzz/honggfuzz-1.1.ebuild
+++ b/app-forensics/honggfuzz/honggfuzz-1.1.ebuild
@@ -28,6 +28,13 @@ DOCS=(
README.md
)
+src_prepare() {
+ default
+ if has_version ">=sys-libs/binutils-libs-2.29"; then
+ eapply "${FILESDIR}"/${PN}-1.1-binutils-2.29.patch
+ fi
+}
+
src_compile() {
CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" emake
}