From e6a035aabb67b0825e6d38b363d7e18661529188 Mon Sep 17 00:00:00 2001 From: "Mark A. Matienzo" Date: Wed, 21 Nov 2012 16:58:11 -0500 Subject: [PATCH] bulk_extractor: Fix BEViewer script; fails with clang Closes Homebrew/homebrew#16187. Signed-off-by: Misty De Meo --- Formula/bulk_extractor.rb | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Formula/bulk_extractor.rb b/Formula/bulk_extractor.rb index dbee7b0fc84..1b70c35c865 100644 --- a/Formula/bulk_extractor.rb +++ b/Formula/bulk_extractor.rb @@ -4,6 +4,7 @@ class BulkExtractor < Formula homepage 'https://github.com/simsong/bulk_extractor/wiki' url 'https://github.com/downloads/simsong/bulk_extractor/bulk_extractor-1.3.tar.gz' sha1 '847559ef179a123b3855637396f47348d3318751' + head 'https://github.com/simsong/bulk_extractor.git' depends_on :autoconf depends_on :automake @@ -12,10 +13,25 @@ class BulkExtractor < Formula depends_on 'exiv2' => :optional depends_on 'libewf' => :optional + fails_with :clang do + build 421 + cause <<-EOS.undent + bulk_extractor.cpp:719:5: error: no matching function for call to + 'load_scanners' + load_scanners(scanners_builtin,histograms); + ^~~~~~~~~~~~~ + ./bulk_extractor_i.h:225:6: note: candidate function not viable: no known + conversion from 'scanner_t *[23]' to 'const scanner_t **' (aka 'void + (const **)(const class scanner_params &, const class + recursion_control_block &)') for 1st argument; + EOS + end + + def patches # Error in exec install hooks; installing java GUI manually. Reported in # https://groups.google.com/group/bulk_extractor-users/browse_thread/thread/ff7cc11e8e6d8e8d - "https://gist.github.com/raw/3785687/20a2354930242db502169e1ea78499b40ec97239/gistfile1.txt" + "https://gist.github.com/raw/3785687/3a61d57539c2b9ecde44121b370db85ff9d4f86e/makefile.in.patch" end def install