New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #14886 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

pandoc fails to build

Reported by: shreevatsa.public@… Owned by: dluke@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: jgm@…, ryandesign@…, mike@…
Port:

Description

The port pandoc fails with:

Text/Pandoc/Definition.hs:92:32:    parse error on input `-- ^ Link target (URL, title)'
haddock: Failed to check module: Text.Pandoc.Definition

Attachments

patch-Text-Pandoc-Definition.hs Download (448 bytes) - added by jgm@… 4 years ago.
patch file - for files subdirectory
Portfile-pandoc.diff Download (369 bytes) - added by jgm@… 4 years ago.

Change History

  Changed 4 years ago by jmr@…

  • cc jgm@… added

Cc maintainer.

  Changed 4 years ago by jgm@…

It seems that the very latest version of haddock in macports is stricter than previous versions. There was a minor haddock error in Text/Pandoc/Definition.hs, which can be fixed by the patch below. The problem will be fixed in 0.47, which I hope to release before long.

John

--- Definition.hs       2007-11-29 00:09:07.000000000 -0800
+++ Definition.new.hs   2008-03-31 13:21:55.000000000 -0700
@@ -89,7 +89,8 @@
 -- | Type of quotation marks to use in Quoted inline.
 data QuoteType = SingleQuote | DoubleQuote deriving (Show, Eq, Read)

-type Target = (String, String)  -- ^ Link target (URL, title)
+-- | Link target (URL, title).
+type Target = (String, String)

 -- | Inline elements.
 data Inline

  Changed 4 years ago by jgm@…

I'm attaching a patch file and a patch to the Portfile that should fix the problem.

Changed 4 years ago by jgm@…

patch file - for files subdirectory

Changed 4 years ago by jgm@…

follow-up: ↓ 5   Changed 4 years ago by ryandesign@…

  • cc ryandesign@… added

I was going to try to test this fix but I can't because build dependency ghc won't build for me. :(

in reply to: ↑ 4   Changed 4 years ago by mike@…

I had previously built and installed ghc. I can confirm that the patches work, having applied it to my local repository and successfully built and install pandoc. Suggest acceptance.

  Changed 4 years ago by mike@…

  • cc mike@… added

Cc Me!

  Changed 4 years ago by dluke@…

  • status changed from new to assigned
  • owner changed from macports-tickets@… to dluke@…

Looking at this now...

  Changed 4 years ago by dluke@…

  • status changed from assigned to closed
  • resolution set to fixed

patch committed in r37362

  Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.