Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/bnfc/files/, dev-util/bnfc/
Date: Sat, 14 Dec 2019 11:11:29
Message-Id: 1576321871.1faf6a0705f853a2929c2d7c12d1df5fdbc7de41.slyfox@gentoo
1 commit: 1faf6a0705f853a2929c2d7c12d1df5fdbc7de41
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 14 11:11:11 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 14 11:11:11 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1faf6a07
7
8 dev-util/bnfc: tweak for ghc-8.4
9
10 Package-Manager: Portage-2.3.81, Repoman-2.3.20
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 dev-util/bnfc/bnfc-2.8.1.ebuild | 14 +--
14 dev-util/bnfc/files/bnfc-2.8.1-ghc84-p2.patch | 130 ++++++++++++++++++++++++++
15 dev-util/bnfc/files/bnfc-2.8.1-ghc84.patch | 31 ++++++
16 3 files changed, 168 insertions(+), 7 deletions(-)
17
18 diff --git a/dev-util/bnfc/bnfc-2.8.1.ebuild b/dev-util/bnfc/bnfc-2.8.1.ebuild
19 index 087c5aa0327..0d11aa19de2 100644
20 --- a/dev-util/bnfc/bnfc-2.8.1.ebuild
21 +++ b/dev-util/bnfc/bnfc-2.8.1.ebuild
22 @@ -1,11 +1,11 @@
23 # Copyright 1999-2019 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 -EAPI=5
27 +EAPI=6
28
29 # ebuild generated by hackport 0.4.6.9999
30
31 -CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
32 +CABAL_FEATURES="bin lib profile haddock hoogle hscolour" # Broken test-suite: missing files
33 inherit haskell-cabal
34
35 MY_PN="BNFC"
36 @@ -29,11 +29,11 @@ DEPEND="${RDEPEND}
37 dev-haskell/alex
38 >=dev-haskell/cabal-1.8
39 dev-haskell/happy
40 - test? ( >=dev-haskell/doctest-0.8
41 - dev-haskell/hspec
42 - dev-haskell/hunit
43 - >=dev-haskell/quickcheck-2.5
44 - dev-haskell/temporary )
45 "
46
47 S="${WORKDIR}/${MY_P}"
48 +
49 +PATCHES=(
50 + "${FILESDIR}"/${P}-ghc84.patch
51 + "${FILESDIR}"/${P}-ghc84-p2.patch
52 +)
53
54 diff --git a/dev-util/bnfc/files/bnfc-2.8.1-ghc84-p2.patch b/dev-util/bnfc/files/bnfc-2.8.1-ghc84-p2.patch
55 new file mode 100644
56 index 00000000000..a1e944c2d15
57 --- /dev/null
58 +++ b/dev-util/bnfc/files/bnfc-2.8.1-ghc84-p2.patch
59 @@ -0,0 +1,130 @@
60 +--- a/src/BNFC/Backend/C/CFtoCAbs.hs
61 ++++ b/src/BNFC/Backend/C/CFtoCAbs.hs
62 +@@ -50,3 +50,3 @@ import Data.List
63 + import Data.Char(toLower)
64 +-
65 ++import Prelude hiding ((<>))
66 +
67 +--- a/src/BNFC/Backend/C/CFtoCPrinter.hs
68 ++++ b/src/BNFC/Backend/C/CFtoCPrinter.hs
69 +@@ -53,2 +53,3 @@ import Data.Either (lefts)
70 + import BNFC.PrettyPrint
71 ++import Prelude hiding ((<>))
72 +
73 +--- a/src/BNFC/Backend/C/CFtoCSkel.hs
74 ++++ b/src/BNFC/Backend/C/CFtoCSkel.hs
75 +@@ -49,2 +49,3 @@ import Data.Either (lefts)
76 + import Text.PrettyPrint
77 ++import Prelude hiding ((<>))
78 +
79 +--- a/src/BNFC/Backend/CPP/NoSTL/CFtoCPPAbs.hs
80 ++++ b/src/BNFC/Backend/CPP/NoSTL/CFtoCPPAbs.hs
81 +@@ -50,3 +50,3 @@ import Data.Char(toLower)
82 + import Text.PrettyPrint
83 +-
84 ++import Prelude hiding ((<>))
85 +
86 +--- a/src/BNFC/Backend/CPP/NoSTL/CFtoCVisitSkel.hs
87 ++++ b/src/BNFC/Backend/CPP/NoSTL/CFtoCVisitSkel.hs
88 +@@ -49,2 +49,3 @@ import Data.Either (lefts)
89 + import BNFC.PrettyPrint
90 ++import Prelude hiding ((<>))
91 +
92 +--- a/src/BNFC/Backend/CPP/PrettyPrinter.hs
93 ++++ b/src/BNFC/Backend/CPP/PrettyPrinter.hs
94 +@@ -32,2 +32,3 @@ import BNFC.Backend.CPP.STL.STLUtils
95 + import BNFC.PrettyPrint
96 ++import Prelude hiding ((<>))
97 +
98 +--- a/src/BNFC/Backend/CPP/STL/CFtoBisonSTL.hs
99 ++++ b/src/BNFC/Backend/CPP/STL/CFtoBisonSTL.hs
100 +@@ -56,2 +56,3 @@ import BNFC.Backend.C.CFtoBisonC (startSymbol)
101 + import BNFC.PrettyPrint
102 ++import Prelude hiding ((<>))
103 +
104 +--- a/src/BNFC/Backend/Common.hs
105 ++++ b/src/BNFC/Backend/Common.hs
106 +@@ -4,2 +4,3 @@ module BNFC.Backend.Common (renderListSepByPrecedence) where
107 + import BNFC.PrettyPrint
108 ++import Prelude hiding ((<>))
109 +
110 +--- a/src/BNFC/Backend/Common/NamedVariables.hs
111 ++++ b/src/BNFC/Backend/Common/NamedVariables.hs
112 +@@ -75,2 +75,3 @@ import Control.Arrow (left, (&&&))
113 + import Data.Either (lefts)
114 ++import Prelude hiding ((<>))
115 +
116 +--- a/src/BNFC/Backend/Java.hs
117 ++++ b/src/BNFC/Backend/Java.hs
118 +@@ -56,2 +56,3 @@ import qualified BNFC.Backend.Common.Makefile as Makefile
119 + import BNFC.PrettyPrint
120 ++import Prelude hiding ((<>))
121 + -------------------------------------------------------------------
122 +--- a/src/BNFC/Backend/Java/CFtoComposVisitor.hs
123 ++++ b/src/BNFC/Backend/Java/CFtoComposVisitor.hs
124 +@@ -29,2 +29,3 @@ import Data.Either (lefts)
125 + import BNFC.PrettyPrint
126 ++import Prelude hiding ((<>))
127 +
128 +--- a/src/BNFC/Backend/Java/CFtoFoldVisitor.hs
129 ++++ b/src/BNFC/Backend/Java/CFtoFoldVisitor.hs
130 +@@ -28,2 +28,3 @@ import Data.Either (lefts)
131 + import BNFC.PrettyPrint
132 ++import Prelude hiding ((<>))
133 +
134 +--- a/src/BNFC/Backend/Java/CFtoJLex15.hs
135 ++++ b/src/BNFC/Backend/Java/CFtoJLex15.hs
136 +@@ -46,2 +46,3 @@ import BNFC.Backend.Common.NamedVariables
137 + import Text.PrettyPrint
138 ++import Prelude hiding ((<>))
139 +
140 +--- a/src/BNFC/Backend/Java/CFtoJavaAbs15.hs
141 ++++ b/src/BNFC/Backend/Java/CFtoJavaAbs15.hs
142 +@@ -56,2 +56,3 @@ import Data.Maybe (mapMaybe)
143 + import Text.PrettyPrint
144 ++import Prelude hiding ((<>))
145 +
146 +--- a/src/BNFC/Backend/Java/CFtoJavaPrinter15.hs
147 ++++ b/src/BNFC/Backend/Java/CFtoJavaPrinter15.hs
148 +@@ -58,2 +58,3 @@ import Data.Either (lefts)
149 + import BNFC.PrettyPrint
150 ++import Prelude hiding ((<>))
151 +
152 +--- a/src/BNFC/Backend/Java/CFtoVisitSkel15.hs
153 ++++ b/src/BNFC/Backend/Java/CFtoVisitSkel15.hs
154 +@@ -48,2 +48,3 @@ import Text.PrettyPrint
155 + import Data.Either (lefts)
156 ++import Prelude hiding ((<>))
157 +
158 +--- a/src/BNFC/Backend/OCaml/CFtoOCamlLex.hs
159 ++++ b/src/BNFC/Backend/OCaml/CFtoOCamlLex.hs
160 +@@ -34,2 +34,3 @@ import BNFC.Backend.OCaml.CFtoOCamlYacc (terminal)
161 + import BNFC.Utils ((+++))
162 ++import Prelude hiding ((<>))
163 +
164 +--- a/src/BNFC/Backend/OCaml/CFtoOCamlPrinter.hs
165 ++++ b/src/BNFC/Backend/OCaml/CFtoOCamlPrinter.hs
166 +@@ -30,3 +30,3 @@ import BNFC.PrettyPrint
167 + import BNFC.Backend.Haskell.CFtoPrinter (compareRules)
168 +-
169 ++import Prelude hiding ((<>))
170 +
171 +--- a/src/BNFC/Backend/OCaml/CFtoOCamlTest.hs
172 ++++ b/src/BNFC/Backend/OCaml/CFtoOCamlTest.hs
173 +@@ -25,2 +25,3 @@ import BNFC.CF
174 + import BNFC.Backend.OCaml.OCamlUtil
175 ++import Prelude hiding ((<>))
176 +
177 +--- a/src/BNFC/Backend/Pygments.hs
178 ++++ b/src/BNFC/Backend/Pygments.hs
179 +@@ -17,2 +17,3 @@ import BNFC.Utils
180 + import BNFC.PrettyPrint
181 ++import Prelude hiding ((<>))
182 +
183 +--- a/src/BNFC/Lexing.hs
184 ++++ b/src/BNFC/Lexing.hs
185 +@@ -8,3 +8,3 @@ import PrintBNF
186 + import BNFC.CF
187 +-
188 ++import Prelude hiding ((<>))
189 +
190
191 diff --git a/dev-util/bnfc/files/bnfc-2.8.1-ghc84.patch b/dev-util/bnfc/files/bnfc-2.8.1-ghc84.patch
192 new file mode 100644
193 index 00000000000..884b0a7e57a
194 --- /dev/null
195 +++ b/dev-util/bnfc/files/bnfc-2.8.1-ghc84.patch
196 @@ -0,0 +1,31 @@
197 +--- a/src/BNFC/Backend/Haskell/CFtoAbstract.hs
198 ++++ b/src/BNFC/Backend/Haskell/CFtoAbstract.hs
199 +@@ -25,2 +25,4 @@ import BNFC.Backend.Haskell.Utils (catToType, catvars)
200 + import Text.PrettyPrint
201 ++import Prelude hiding ((<>))
202 ++
203 +
204 +--- a/src/BNFC/Backend/Haskell/CFtoPrinter.hs
205 ++++ b/src/BNFC/Backend/Haskell/CFtoPrinter.hs
206 +@@ -29,2 +29,3 @@ import Data.Maybe (fromJust)
207 + import Text.PrettyPrint
208 ++import Prelude hiding ((<>))
209 +
210 +--- a/src/BNFC/Backend/Haskell/CFtoTemplate.hs
211 ++++ b/src/BNFC/Backend/Haskell/CFtoTemplate.hs
212 +@@ -25,2 +25,3 @@ import BNFC.CF
213 + import BNFC.PrettyPrint
214 ++import Prelude hiding ((<>))
215 +
216 +--- a/src/BNFC/Backend/Haskell/Utils.hs
217 ++++ b/src/BNFC/Backend/Haskell/Utils.hs
218 +@@ -10,2 +10,3 @@ import BNFC.CF (Cat(..), identCat, normCat)
219 + import BNFC.Utils (mkNames, NameStyle(..))
220 ++import Prelude hiding ((<>))
221 +
222 +--- a/src/BNFC/PrettyPrint.hs
223 ++++ b/src/BNFC/PrettyPrint.hs
224 +@@ -10,2 +10,3 @@ module BNFC.PrettyPrint
225 + import Text.PrettyPrint
226 ++import Prelude hiding ((<>))
227 +