Bug 263164 - mail/evolution: add option to disable markdown support/cmark dependency
Summary: mail/evolution: add option to disable markdown support/cmark dependency
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Neel Chauhan
URL:
Keywords:
: 264272 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-04-08 20:40 UTC by Kevin Reinholz
Modified: 2022-05-27 23:10 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Reinholz 2022-04-08 20:40:14 UTC
Add option to disable markdown support/cmark dependency--required textproc/cmark conflicts with textproc/py-CommonMark.

Currently, mail/evolution lacks a `make config` option to disable markdown. Moreover, the Makefile reports textproc/cmark as a non-optional dependency. This causes problems building Evolution when textproc/py-CommonMark is installed instead of textproc/cmark (Evolution won't build against py-CommonMark, only cmark).

There is a trivial workaround:

Edit the evolution port's Makefile to remove the lib_depends entry for cmark:

libcmark.so:textproc/cmark \

And then add the following cmake argument:

-DENABLE_MARKDOWN=OFF

After saving changes, evolution will now build without cmark, allowing it to coexist with packages dependent on py-CommonMark. (Such as py-recommonmark, a dependency for a number of packages including llvm13).

Tested building evolution-3.44.0_1 on FreeBSD 13.1-STABLE.
Comment 1 Koichiro Iwao freebsd_committer freebsd_triage 2022-05-27 04:13:42 UTC
*** Bug 264272 has been marked as a duplicate of this bug. ***
Comment 2 Koichiro Iwao freebsd_committer freebsd_triage 2022-05-27 04:46:09 UTC
I'm also suffering from the same issue, thanks for reporting!
Comment 3 Koichiro Iwao freebsd_committer freebsd_triage 2022-05-27 05:22:56 UTC
Personally, I do recommend to disable DOCS of lang/llvm13 rather than turning off MARKDOWN of mail/evolution. I think very few people want documents of lang/llvm13. At least I don't at all.
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-05-27 23:09:03 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4d5f3d985056b9d519fdde3e4822b7b573c8f099

commit 4d5f3d985056b9d519fdde3e4822b7b573c8f099
Author:     Neel Chauhan <nc@FreeBSD.org>
AuthorDate: 2022-05-27 23:07:58 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2022-05-27 23:07:58 +0000

    mail/evolution: Add MARKDOWN option

    PR:     263164

 mail/evolution/Makefile | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
Comment 5 Neel Chauhan freebsd_committer freebsd_triage 2022-05-27 23:10:24 UTC
Thanks for reporting this. I have added a MARKDOWN option to mail/evolution.

It is enabled by default to not break existing setups, but can be disabled for use cases like Kevin Reinholz's where textproc/py-CommonMark is needed.
Comment 6 Neel Chauhan freebsd_committer freebsd_triage 2022-05-27 23:10:46 UTC
If there are still concerns feel free to re-open.