summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2015-05-05 20:45:51 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2015-05-05 20:45:51 +0000
commit0e0f86ec4bee105562b4a779004e0df18450276c (patch)
treeeb60623529202fbd695ef366bdcd38453c2091bc
parentLinux patch 3.12.41. Linux patch 3.12.42. (diff)
downloadgentoo-2-0e0f86ec4bee105562b4a779004e0df18450276c.tar.gz
gentoo-2-0e0f86ec4bee105562b4a779004e0df18450276c.tar.bz2
gentoo-2-0e0f86ec4bee105562b4a779004e0df18450276c.zip
Fix build failure against modern ghc (bug #423949 by Diego Elio Pettenò and by Toralf Förster)
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)
-rw-r--r--dev-haskell/uuagc/ChangeLog9
-rw-r--r--dev-haskell/uuagc/files/uuagc-0.9.24-ghc-7.8.patch193
-rw-r--r--dev-haskell/uuagc/uuagc-0.9.24.ebuild16
3 files changed, 213 insertions, 5 deletions
diff --git a/dev-haskell/uuagc/ChangeLog b/dev-haskell/uuagc/ChangeLog
index cc7725ad8969..f5e74c6eec92 100644
--- a/dev-haskell/uuagc/ChangeLog
+++ b/dev-haskell/uuagc/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-haskell/uuagc
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/uuagc/ChangeLog,v 1.22 2013/06/18 21:33:02 slyfox Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/uuagc/ChangeLog,v 1.23 2015/05/05 20:45:51 slyfox Exp $
+
+ 05 May 2015; Sergei Trofimovich <slyfox@gentoo.org>
+ +files/uuagc-0.9.24-ghc-7.8.patch, uuagc-0.9.24.ebuild:
+ Fix build failure against modern ghc (bug #423949 by Diego Elio Pettenò and by
+ Toralf Förster)
18 Jun 2013; Sergei Trofimovich <slyfox@gentoo.org>
-files/uuagc-0.9.1-split-base.patch, -uuagc-0.9.1.ebuild, -uuagc-0.9.5.ebuild:
diff --git a/dev-haskell/uuagc/files/uuagc-0.9.24-ghc-7.8.patch b/dev-haskell/uuagc/files/uuagc-0.9.24-ghc-7.8.patch
new file mode 100644
index 000000000000..bfe30c62da9f
--- /dev/null
+++ b/dev-haskell/uuagc/files/uuagc-0.9.24-ghc-7.8.patch
@@ -0,0 +1,193 @@
+diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src/Ag.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src/Ag.hs
+--- uuagc-0.9.24/work/uuagc-0.9.24/src/Ag.hs 2010-06-04 14:03:54.000000000 +0100
++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src/Ag.hs 2015-05-05 09:05:06.300665157 +0100
+@@ -1,9 +1,10 @@
+ module Main where
+
+-import System (getArgs, getProgName, exitFailure)
++import System.Environment (getArgs, getProgName)
++import System.Exit (exitFailure)
+ import System.Console.GetOpt (usageInfo)
+-import List (isSuffixOf)
+-import Monad (zipWithM_)
++import Data.List (isSuffixOf)
++import Control.Monad (zipWithM_)
+ import Data.Maybe
+
+ import qualified Data.Set as Set
+diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src/DepTypes.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src/DepTypes.hs
+--- uuagc-0.9.24/work/uuagc-0.9.24/src/DepTypes.hs 2010-06-04 14:03:54.000000000 +0100
++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src/DepTypes.hs 2015-05-05 09:07:11.471671524 +0100
+@@ -1,3 +1,4 @@
++{-# LANGUAGE FlexibleInstances #-}
+ module DepTypes where
+
+ import CommonTypes
+diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src/HsTokenScanner.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src/HsTokenScanner.hs
+--- uuagc-0.9.24/work/uuagc-0.9.24/src/HsTokenScanner.hs 2010-06-04 14:03:54.000000000 +0100
++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src/HsTokenScanner.hs 2015-05-05 09:05:06.300665157 +0100
+@@ -2,11 +2,11 @@
+ module HsTokenScanner where
+ import HsToken
+ import UU.Scanner.Position
+-import List(sort)
++import Data.List(sort)
+ import UU.Util.BinaryTrees
+ import CommonTypes
+-import Maybe
+-import Char
++import Data.Maybe
++import Data.Char
+ isAGesc c = c == '@'
+
+ lexTokens :: Pos -> String -> [HsToken]
+diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src/Parser.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src/Parser.hs
+--- uuagc-0.9.24/work/uuagc-0.9.24/src/Parser.hs 2010-06-04 14:03:54.000000000 +0100
++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src/Parser.hs 2015-05-05 09:05:06.300665157 +0100
+@@ -8,10 +8,10 @@
+ import Patterns
+ import UU.Pretty(text,PP_Doc,empty,(>-<))
+ import TokenDef
+-import List (intersperse)
+-import Char
++import Data.List (intersperse)
++import Data.Char
+ import Scanner (Input(..),scanLit,input)
+-import List
++import Data.List
+ import Expression
+ import UU.Scanner.Token
+ import UU.Scanner.TokenParser
+diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src/Scanner.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src/Scanner.hs
+--- uuagc-0.9.24/work/uuagc-0.9.24/src/Scanner.hs 2010-06-04 14:03:54.000000000 +0100
++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src/Scanner.hs 2015-05-05 09:05:06.301665157 +0100
+@@ -6,9 +6,9 @@
+ import UU.Scanner.Position
+ import UU.Scanner.Token
+ import UU.Parsing(InputState(..),Either'(..))
+-import Maybe
+-import List
+-import Char
++import Data.Maybe
++import Data.List
++import Data.Char
+ import UU.Scanner.GenToken
+ import Options
+
+diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src/TokenDef.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src/TokenDef.hs
+--- uuagc-0.9.24/work/uuagc-0.9.24/src/TokenDef.hs 2010-06-04 14:03:54.000000000 +0100
++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src/TokenDef.hs 2015-05-05 09:05:06.301665157 +0100
+@@ -7,7 +7,7 @@
+ import UU.Scanner.GenTokenOrd
+ import UU.Scanner.Position
+ import UU.Parsing.MachineInterface(Symbol(..))
+-import Char(isPrint,ord)
++import Data.Char(isPrint,ord)
+ import HsToken
+ import CommonTypes
+
+diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src-derived/DefaultRules.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/DefaultRules.hs
+--- uuagc-0.9.24/work/uuagc-0.9.24/src-derived/DefaultRules.hs 2010-06-04 14:03:54.000000000 +0100
++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/DefaultRules.hs 2015-05-05 09:05:06.294665157 +0100
+@@ -4,7 +4,7 @@
+ module DefaultRules where
+ {-# LINE 10 "DefaultRules.ag" #-}
+
+-import qualified List (delete,intersperse)
++import qualified Data.List as List (delete,intersperse)
+
+ import qualified Data.Set as Set
+ import qualified Data.Map as Map
+@@ -13,7 +13,7 @@
+ import Data.Sequence(Seq,(><))
+ import UU.Scanner.Position(noPos)
+ import Pretty
+-import Maybe
++import Data.Maybe
+ import HsToken
+ import HsTokenScanner
+ import Data.List(intersperse)
+diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src-derived/Desugar.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/Desugar.hs
+--- uuagc-0.9.24/work/uuagc-0.9.24/src-derived/Desugar.hs 2010-06-04 14:03:54.000000000 +0100
++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/Desugar.hs 2015-05-05 09:05:06.295665157 +0100
+@@ -10,7 +10,7 @@
+ import qualified Data.Sequence as Seq
+ import Data.Sequence(Seq,(><))
+ import UU.Scanner.Position(Pos(..))
+-import Maybe
++import Data.Maybe
+ import Data.List(intersperse)
+
+ import AbstractSyntax
+diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src-derived/GenerateCode.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/GenerateCode.hs
+--- uuagc-0.9.24/work/uuagc-0.9.24/src-derived/GenerateCode.hs 2010-06-04 14:03:54.000000000 +0100
++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/GenerateCode.hs 2015-05-05 09:05:06.296665157 +0100
+@@ -26,7 +26,7 @@
+ import HsTokenScanner
+
+ import Data.List(partition,intersperse,intersect,(\\))
+-import Maybe(fromJust,isJust)
++import Data.Maybe(fromJust,isJust)
+ {-# LINE 31 "../src-derived/GenerateCode.hs" #-}
+
+ {-# LINE 2 "./CodeSyntax.ag" #-}
+diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src-derived/Order.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/Order.hs
+--- uuagc-0.9.24/work/uuagc-0.9.24/src-derived/Order.hs 2010-06-04 14:03:54.000000000 +0100
++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/Order.hs 2015-05-05 09:05:06.297665157 +0100
+@@ -37,7 +37,7 @@
+ import Data.Array((!),bounds,inRange)
+ import Data.List(elemIndex,partition,sort,mapAccumL,find,nubBy,intersperse,groupBy,transpose)
+ import qualified Data.Tree as Tree
+-import Maybe
++import Data.Maybe
+ {-# LINE 42 "../src-derived/Order.hs" #-}
+
+ {-# LINE 2 "./Patterns.ag" #-}
+diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src-derived/PrintCode.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/PrintCode.hs
+--- uuagc-0.9.24/work/uuagc-0.9.24/src-derived/PrintCode.hs 2010-06-04 14:03:54.000000000 +0100
++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/PrintCode.hs 2015-05-05 09:05:06.298665157 +0100
+@@ -4,7 +4,7 @@
+ module PrintCode where
+ {-# LINE 10 "PrintCode.ag" #-}
+
+-import Char (isAlphaNum)
++import Data.Char (isAlphaNum)
+ import Pretty
+ import Code
+ import Patterns
+diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src-derived/PrintVisitCode.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/PrintVisitCode.hs
+--- uuagc-0.9.24/work/uuagc-0.9.24/src-derived/PrintVisitCode.hs 2010-06-04 14:03:54.000000000 +0100
++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/PrintVisitCode.hs 2015-05-05 09:05:06.299665157 +0100
+@@ -22,7 +22,7 @@
+ import UU.Scanner.Position
+
+ import Data.List(partition,intersperse,intersect,(\\))
+-import Maybe(fromJust,isJust)
++import Data.Maybe(fromJust,isJust)
+ {-# LINE 27 "../src-derived/PrintVisitCode.hs" #-}
+
+ {-# LINE 2 "./CodeSyntax.ag" #-}
+diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src-derived/Transform.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/Transform.hs
+--- uuagc-0.9.24/work/uuagc-0.9.24/src-derived/Transform.hs 2010-06-04 14:03:54.000000000 +0100
++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/Transform.hs 2015-05-05 09:05:06.300665157 +0100
+@@ -5,7 +5,7 @@
+ {-# LINE 8 "Transform.ag" #-}
+
+ import Control.Monad(mplus,mzero)
+-import List (partition, elem, nub,intersperse)
++import Data.List as List (partition, elem, nub,intersperse)
+ import Data.Maybe
+ import qualified Data.Map as Map
+ import Data.Map (Map)
+diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/uuagc.cabal uuagc-0.9.24-r0/work/uuagc-0.9.24/uuagc.cabal
+--- uuagc-0.9.24/work/uuagc-0.9.24/uuagc.cabal 2010-06-04 14:03:54.000000000 +0100
++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/uuagc.cabal 2015-05-05 09:05:06.301665157 +0100
+@@ -28,7 +28,7 @@
+ else
+ build-depends: base < 3
+
+- build-depends: haskell98, uulib>=0.9.12
++ build-depends: uulib>=0.9.12
+ main-is: Ag.hs
+ other-modules: Ag
+ , CommonTypes
diff --git a/dev-haskell/uuagc/uuagc-0.9.24.ebuild b/dev-haskell/uuagc/uuagc-0.9.24.ebuild
index edd215e390da..c2321520fccb 100644
--- a/dev-haskell/uuagc/uuagc-0.9.24.ebuild
+++ b/dev-haskell/uuagc/uuagc-0.9.24.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/uuagc/uuagc-0.9.24.ebuild,v 1.5 2012/09/12 15:24:31 qnikst Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/uuagc/uuagc-0.9.24.ebuild,v 1.6 2015/05/05 20:45:51 slyfox Exp $
CABAL_FEATURES="bin lib profile haddock"
-inherit haskell-cabal
+inherit eutils haskell-cabal
DESCRIPTION="Attribute Grammar System of Universiteit Utrecht"
HOMEPAGE="http://www.cs.uu.nl/wiki/HUT/WebHome"
@@ -20,3 +20,13 @@ RDEPEND=">=dev-lang/ghc-6.10
${HASKELLDEPS}"
DEPEND=">=dev-haskell/cabal-1.2
${RDEPEND}"
+
+src_unpack() {
+ unpack "${A}"
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-ghc-7.8.patch
+
+ sed \
+ -e 's/{-# LINE/{- # LINE/g' \
+ -i "${S}"/src-derived/*.hs
+}