Bug 296071 - textproc/py-commonmark: Duplicate ports in tree commonmark and CommonMark
Summary: textproc/py-commonmark: Duplicate ports in tree commonmark and CommonMark
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: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-06-15 16:30 UTC by Matthew Wener
Modified: 2026-07-15 15:49 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (yuri)
jrtc27: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Wener 2026-06-15 16:30:57 UTC
textproc/py-CommonMark and textproc/py-commonmark are both in the tree causing issues with git. Can one be removed?
Comment 1 Kousuke Kannagi freebsd_committer freebsd_triage 2026-06-28 03:55:14 UTC
textproc/py-CommonMark:
WWW=            https://github.com/rtfd/CommonMark-py
textproc/py-commonmark:
WWW=            https://github.com/rtfd/commonmark.py

Both, https://github.com/readthedocs/commonmark.py.
Comment 2 Romain Tartière freebsd_committer freebsd_triage 2026-06-28 17:11:48 UTC
Thank you for the reminder (We got a mail about it a few weeks ago).

Quoting my reply:

----------------------------- 8< -----------------------------
IIRC, I created the textproc/py-CommonMark because It is a dependency
for www/py-puppetboard.  It looks like a few more ports depend on it
nowadays.

I saw there was a bunch of ports with similar capitalization, for python
libraries, so introduced it as py-CommonMark.  Capitalization or not, I
do not care and can't tell if there is a better practice or not.  If
this is a concern we can switch to the lowercase version.

I guess it would make sense to update textproc/py-CommonMark to 0.9.2
and I don't think there is a need for a textproc/py-CommonMark091 or
similar legacy version: I just failed to update it because I did not
spot the release yet.  And maybe Yuri you would be interested into
taking maintainership of this port?
----------------------------- 8< -----------------------------


So my proposal is to update textproc/py-CommonMark passing maintaintership to yuri@ (because this port is older and has a bit of "history" in git); drop textproc/py-commonmark and update ports that depend on them to use textproc/py-CommonMark.

If that looks okay for you, consider this my approval to proceed.  If you want I can also do this, just tell me you are fine with it so that I proceed.

Thank you!
Comment 3 Jessica Clarke freebsd_committer freebsd_triage 2026-07-13 17:51:43 UTC
This has broken my ability to maintain a clone of the ports tree on my MacBook, which uses a case-insensitive filesystem:

% freebsd-git status
On branch main
Your branch and 'origin/main' have diverged,
and have 1 and 42 different commits each, respectively.
  (use "git pull" if you want to integrate the remote branch with yours)

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   textproc/py-CommonMark/Makefile
        modified:   textproc/py-CommonMark/distinfo
        modified:   textproc/py-CommonMark/pkg-descr

no changes added to commit (use "git add" and/or "git commit -a")
% freebsd-git checkout -- textproc
% freebsd-git status
On branch main
Your branch and 'origin/main' have diverged,
and have 1 and 42 different commits each, respectively.
  (use "git pull" if you want to integrate the remote branch with yours)

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   textproc/py-CommonMark/Makefile
        modified:   textproc/py-CommonMark/distinfo
        modified:   textproc/py-CommonMark/pkg-descr

no changes added to commit (use "git add" and/or "git commit -a")
% freebsd-git rebase && freebsd-git commit --amend --no-edit --reset-author
error: cannot rebase: You have unstaged changes.
error: Please commit or stash them.

Can you please come to an agreement and fix this ASAP? And those interested in ports tree linting might wish to consider an automated check that this hasn't happened again, i.e. that each port name is unique ignoring case.
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2026-07-14 03:17:50 UTC
Fixed.

Sorry for the delay.
Comment 5 commit-hook freebsd_committer freebsd_triage 2026-07-14 03:18:13 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6b254d1535ce098de576a41dd8476b10c58593dc

commit 6b254d1535ce098de576a41dd8476b10c58593dc
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-07-14 03:15:05 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-07-14 03:15:05 +0000

    textproc/py-commonmark: Remove duplicate

    textproc/py-CommonMark should be renamed into textproc/py-commonmark though
    to match https://pypi.org/project/commonmark/

    PR:             296071
    Reported by:    Matthew Wener <bugzilla@FreeBSD.org>

 MOVED                                   |  1 +
 devel/py-great-tables/Makefile          |  3 ++-
 textproc/Makefile                       |  1 -
 textproc/py-commonmark/Makefile (gone)  | 27 ---------------------------
 textproc/py-commonmark/distinfo (gone)  |  3 ---
 textproc/py-commonmark/pkg-descr (gone) |  6 ------
 6 files changed, 3 insertions(+), 38 deletions(-)
Comment 6 Wolfram Schneider freebsd_committer freebsd_triage 2026-07-14 10:02:29 UTC
FWIW, commonmark.py is deprecated and no longer supported:

https://github.com/readthedocs/commonmark.py
Deprecation release 0.9.2
This repository was archived by the owner on May 29, 2026. It is now read-only.

Warning: commonmark.py is now deprecated. We recommend using markdown-it-py for a commonmark parser going forward. See this issue for background and discussion.
Comment 7 Yuri Victorovich freebsd_committer freebsd_triage 2026-07-14 23:59:45 UTC
(In reply to Wolfram Schneider from comment #6)

Yes but we have keep this port at least for the dependencies.
Comment 8 Jessica Clarke freebsd_committer freebsd_triage 2026-07-15 15:49:16 UTC
Can you please MFH this? 2026Q3 is still broken.