commit:     812682bcec8310c15b12f0000af537350ff77525
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 16 21:47:26 2017 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Thu Feb 16 21:57:12 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=812682bc

app-forensics/quickfuzz: tweak for ghc-8.0.2

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 .../quickfuzz/files/quickfuzz-0.1_p20160920-directory-1.3.patch  | 9 +++++++++
 .../quickfuzz/files/quickfuzz-0.1_p20160920-ghc-8.0.2_rc1.patch  | 8 ++++++++
 app-forensics/quickfuzz/quickfuzz-0.1_p20160920.ebuild           | 7 ++++++-
 3 files changed, 23 insertions(+), 1 deletion(-)

diff --git 
a/app-forensics/quickfuzz/files/quickfuzz-0.1_p20160920-directory-1.3.patch 
b/app-forensics/quickfuzz/files/quickfuzz-0.1_p20160920-directory-1.3.patch
new file mode 100644
index 0000000000..34e92089b5
--- /dev/null
+++ b/app-forensics/quickfuzz/files/quickfuzz-0.1_p20160920-directory-1.3.patch
@@ -0,0 +1,9 @@
+diff --git a/src/Check.hs b/src/Check.hs
+index b38a56a..246bf24 100644
+--- a/src/Check.hs
++++ b/src/Check.hs
+@@ -23,3 +23,3 @@ import System.Posix.Env
+ import System.Exit
+-import System.Directory
++import System.Directory hiding (getFileSize)
+ import System.IO.Unsafe

diff --git 
a/app-forensics/quickfuzz/files/quickfuzz-0.1_p20160920-ghc-8.0.2_rc1.patch 
b/app-forensics/quickfuzz/files/quickfuzz-0.1_p20160920-ghc-8.0.2_rc1.patch
new file mode 100644
index 0000000000..0e8abbd9d7
--- /dev/null
+++ b/app-forensics/quickfuzz/files/quickfuzz-0.1_p20160920-ghc-8.0.2_rc1.patch
@@ -0,0 +1,8 @@
+diff --git a/src/Midi.hs b/src/Midi.hs
+index 2b7a359..8c4eacc 100644
+--- a/src/Midi.hs
++++ b/src/Midi.hs
+@@ -1,2 +1,2 @@
+-{-# LANGUAGE TemplateHaskell, FlexibleInstances#-}
++{-# LANGUAGE TemplateHaskell, FlexibleInstances, OverlappingInstances #-}
+ 

diff --git a/app-forensics/quickfuzz/quickfuzz-0.1_p20160920.ebuild 
b/app-forensics/quickfuzz/quickfuzz-0.1_p20160920.ebuild
index a32bca2ee6..a4e592300b 100644
--- a/app-forensics/quickfuzz/quickfuzz-0.1_p20160920.ebuild
+++ b/app-forensics/quickfuzz/quickfuzz-0.1_p20160920.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -96,6 +96,11 @@ DEPEND="${RDEPEND}
        >=dev-haskell/cabal-1.18.1.3
 "
 
+PATCHES=(
+       "${FILESDIR}"/${P}-ghc-8.0.2_rc1.patch
+       "${FILESDIR}"/${P}-directory-1.3.patch
+)
+
 # $1 - target tarball name (not including extension)
 make_snapshot() {
        ln -s "${S}" "${WORKDIR}"/"$1" || die

Reply via email to