From 812682bcec8310c15b12f0000af537350ff77525 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 16 Feb 2017 21:47:26 +0000 Subject: [PATCH] app-forensics/quickfuzz: tweak for ghc-8.0.2 Package-Manager: Portage-2.3.3, Repoman-2.3.1 --- .../files/quickfuzz-0.1_p20160920-directory-1.3.patch | 9 +++++++++ .../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(-) create mode 100644 app-forensics/quickfuzz/files/quickfuzz-0.1_p20160920-directory-1.3.patch create mode 100644 app-forensics/quickfuzz/files/quickfuzz-0.1_p20160920-ghc-8.0.2_rc1.patch 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 0000000000000..34e92089b53f9 --- /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 0000000000000..0e8abbd9d796d --- /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 a32bca2ee673a..a4e592300bab7 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