Opened 10 years ago
Closed 10 years ago
#46487 closed defect (fixed)
hs-pandoc-types 1.12.3 fails to build with current ghc
Reported by: | J.Gilbey@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | Cc: | ||
Port: | hs-pandoc-types hs-deepseq-generics |
Description
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.
Attachments (1)
Change History (3)
Changed 10 years ago by J.Gilbey@…
comment:1 Changed 10 years ago by neverpanic (Clemens Lang)
Committed hs-deepseq-generics in r131304. Note that the license in the Portfile was wrong, the port is actually BSD, not GPL-2+.
comment:2 Changed 10 years ago by neverpanic (Clemens Lang)
Port: | hs-pandoc-types hs-deepseq-generics added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Committed hs-pandoc-types update in r131307.
Portfile for hs-deepseq-generics