Opened 5 years ago

Closed 5 years ago

#58890 closed defect (fixed)

Dovecot2 can't build for i386 due to dependencies.

Reported by: grumpybozo (Bill Cole) Owned by: Bill Cole <18053819+grumpybozo@…>
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: haspatch Cc:
Port: dovecot2

Description

Dovecot uses Pandoc to build some documentation from its git repo. Pandoc is written in Haskell and depends on the binary-only 'stack' port to load a Haskell environment, but stack is x86_64-only.

The minimal discussion of Pandoc in the Dovecot docs and on the mailing list makes it clear that this is not a required dependency and Pandoc is only used for documents that aren't in a production installation.

To get past this problem, the simplest solution is to remove the build dependency on the pandoc port and add PANDOC=false to configure.env, which is how Dovecot disables Pandoc. I am attaching a patch to this effect.

Attachments (1)

dovecot2-Portfile.patch (698 bytes) - added by grumpybozo (Bill Cole) 5 years ago.
Patch to remove Pandoc dependency

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by grumpybozo (Bill Cole)

Attachment: dovecot2-Portfile.patch added

Patch to remove Pandoc dependency

comment:2 Changed 5 years ago by Bill Cole <18053819+grumpybozo@…>

Owner: set to Bill Cole <18053819+grumpybozo@…>
Resolution: fixed
Status: newclosed

In 433f79a14b96013607a8cfe77bb0b1283fbdc6fe/macports-ports (master):

dovecot2: Remove unnecessary pandoc dependency

Pandoc is only used to build documents that aren't in a production
installation.

This fixes the build for non-x86_64 systems, since Pandoc is written in
Haskell and depends on the stack port which MacPorts only provides as an
x86_64 binary.

Closes: #58890

Note: See TracTickets for help on using tickets.