[MacPorts] #46487: hs-pandoc-types 1.12.3 fails to build with current ghc
MacPorts
noreply at macports.org
Thu Jan 8 05:36:27 PST 2015
#46487: hs-pandoc-types 1.12.3 fails to build with current ghc
------------------------+--------------------------------
Reporter: J.Gilbey@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Keywords: | Port:
------------------------+--------------------------------
The build log says:
{{{
:info:build
:info:build Text/Pandoc/Builder.hs:176:63:
:info:build Can't make a derived instance of ‘Traversable Many’
:info:build (even with cunning newtype deriving):
:info:build You need DeriveTraversable to derive an instance for
this class
:info:build In the newtype declaration for ‘Many’
:info:build Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_tarballs_ports_devel_hs-pandoc-types/hs-pandoc-types/work
/pandoc-types-1.12.3" && runhaskell Setup build -v
:info:build Exit code: 1
}}}
This bug has been fixed upstream. Downloading
[http://hackage.haskell.org/package/pandoc-types-1.12.4.1/pandoc-
types-1.12.4.1.tar.gz] and applying the following patch to the Portfile
solves half of it:
{{{
--- Portfile.orig 2015-01-08 13:17:46.000000000 +0000
+++ Portfile 2015-01-08 13:22:59.000000000 +0000
@@ -4,10 +4,9 @@
PortSystem 1.0
PortGroup haskell 1.0
-haskell.setup pandoc-types 1.12.3
-revision 3
-checksums rmd160 04df3d7e32cd10cc060766ffe8bfcf0bea0d5bd8 \
- sha256
125825a795dc0cb2b6ffbe46789e60d62a42ba2eb0f07e544b5c39612fbd8ece
+haskell.setup pandoc-types 1.12.4.1
+checksums rmd160 e038c591b3c2e81bcd1485e29762be11a0f2513a \
+ sha256
187bda4b12746b9cc460ae98b39d0964adace2bcca2fd0e343b1ea4234a86ff1
maintainers nomaintainer
platforms darwin
@@ -19,4 +18,5 @@
used by pandoc to represent structured documents.
depends_lib-append port:hs-aeson \
- port:hs-syb
+ port:hs-syb \
+ port:hs-deepseq-generics
}}}
The only thing is that it requires deepseq-generics
[http://hackage.haskell.org/package/deepseq-generics-0.1.1.2/deepseq-
generics-0.1.1.2.tar.gz], and a specific version of that (>=0.1 && <0.2),
but I don't know how to specify that in the Portfile.
Attached is a Portfile for deepseq-generics which builds a package which
allows hs-pandoc-types to build.
--
Ticket URL: <https://trac.macports.org/ticket/46487>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list