Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947669 - app-editors/retext depends on python-markdown-math for previews
Summary: app-editors/retext depends on python-markdown-math for previews
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Philipp Rösner
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-01-07 12:53 UTC by Ian Pickworth
Modified: 2025-03-25 04:36 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Pickworth 2025-01-07 12:53:34 UTC
Without dev-python/python-markdown-math installed, retext does not display a preview, but instead shows a message saying that the markdown package is not installed.

In my case, dev-python/markdown-3.7 was installed, but dev-python/python-markdown-math was not.

Installing dev-python/python-markdown-math allows the retext preview to work.

I thus think that the ebuild for retext (currently /usr/portage/app-editors/retext/retext-8.0.2.ebuild) needs an RDEPEND for dev-python/python-markdown-math

It is possible that dev-python/markdown should be amended instead - but I don't know enough about Gentoo's Python module policy to suggest that.
Comment 1 Bartłomiej Burdukiewicz 2025-02-21 09:52:13 UTC
Same issue, after installing dev-python/python-markdown-math manually, retext preview starts to work again.
Comment 2 Tamas Jantvik 2025-02-24 12:51:26 UTC
I have observed the same behavior.
Comment 3 Thomas Capricelli 2025-03-21 16:08:22 UTC
I can confirm both the default behaviour and the 'fix'.
Comment 4 Larry the Git Cow gentoo-dev 2025-03-25 04:36:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a6c7bf9e229ffde143a2b7acd7c64a4faef1f19

commit 1a6c7bf9e229ffde143a2b7acd7c64a4faef1f19
Author:     Philipp Rösner <rndxelement@protonmail.com>
AuthorDate: 2025-03-22 15:55:15 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-25 04:34:45 +0000

    app-editors/retext: fix missing runtime dep in 8.0.2
    
    Add dev-python/python-markdown-math as a runtime dep, as
    it is required for rendering.
    It does not suffice that the dep dev-python/markups has
    dev-python/python-markdown-math as a runtime dep because
    it might get removed during depclean.
    Reverting change of: https://github.com/gentoo/gentoo/pull/35842
    
    Closes: https://bugs.gentoo.org/947669
    Signed-off-by: Philipp Rösner <rndxelement@protonmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-editors/retext/{retext-8.0.2.ebuild => retext-8.0.2-r1.ebuild} | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)