Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407579 - app-emacs/markdown-mode lacks a dependency over the markdown command
Summary: app-emacs/markdown-mode lacks a dependency over the markdown command
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Naohiro Aota
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-09 19:24 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2023-09-01 04:13 UTC (History)
2 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 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-03-09 19:24:03 UTC
When using markdown-export I get this:


<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>BuildServer.md</title>

</head>

<body>

zsh:1: command not found: markdown

</body>
</html>

The markdown command should be provided by dev-python/markdown afaict.
Comment 1 Naohiro Aota gentoo-dev 2012-05-16 13:47:24 UTC
Added || ( dev-python/markdown2 dev-python/markdown )

Although default value of `markdown-command' is "markdown", dev-python/markdown2 provides /usr/bin/markdown2 and dev-python/markdown provides /usr/bin/markdown_py. So it still needs user configuration. No problem with it?
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-05-16 15:35:17 UTC
Uhm can you make sure they actually work even after configuration? I'd still prefer if it worked out of the box, and as you said neither does, but also last time I tried neither worked. I ended up using dev-ruby/kramdown instead.
Comment 3 Naohiro Aota gentoo-dev 2012-05-17 04:46:20 UTC
Both 
(setq markdown-command "markdown_py")
and
(setq markdown-command "markdown2")
worked fine with M-x markdwon.

Also (setq markdown-command "kramdown") worked.

Tried with:

# aaaa
- aa
- bb
- cc

> Gentoo
FreeBSD
Linux
Comment 4 Ulrich Müller gentoo-dev 2012-05-17 06:42:30 UTC
(In reply to comment #1)
> Added || ( dev-python/markdown2 dev-python/markdown )

Why a revbump for this? Installed files don't change.
Comment 5 Naohiro Aota gentoo-dev 2012-05-27 03:50:10 UTC
(In reply to comment #4)
> (In reply to comment #1)
> > Added || ( dev-python/markdown2 dev-python/markdown )
> 
> Why a revbump for this? Installed files don't change.

It has new runtime dependencies. To be sure user get them installed, don't we need revbump..?
Comment 6 Ulrich Müller gentoo-dev 2012-05-27 10:07:30 UTC
(In reply to comment #5)
> > Why a revbump for this? Installed files don't change.
> 
> It has new runtime dependencies. To be sure user get them installed, don't
> we need revbump..?

No, because Portage will gather the new dependency from the ebuild in the tree.
Comment 7 Naohiro Aota gentoo-dev 2012-05-29 08:05:40 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > > Why a revbump for this? Installed files don't change.
> > 
> > It has new runtime dependencies. To be sure user get them installed, don't
> > we need revbump..?
> 
> No, because Portage will gather the new dependency from the ebuild in the
> tree.

hm, I was misunderstading it. Sorry for that.
Comment 8 Ivan 2012-12-21 05:53:44 UTC
Can this be made optional in some way please?

There are various other tools that provide markdown-like functionality (e.g. app-text/pandoc) and I'd prefer not to have to install something I don't want to use.
Comment 9 Naohiro Aota gentoo-dev 2012-12-21 14:58:11 UTC
@flameeyes any comment on this?

It still need to set "markdown-command" variable even with the above dependencies, so I'm now thinking that einfo would be sufficient.
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-12-21 15:01:01 UTC
IMHO it should really just work out of the box ...
Comment 11 Ivan 2012-12-21 22:28:47 UTC
(In reply to comment #10)
> IMHO it should really just work out of the box ...

Even for people that just want markdown-mode for the syntax highlighting but not to actually run locally (e.g. they prefer to write messages offline and then copy/paste them into sites like StackOverflow)?

Or - as with myself - that want to use a different markdown implementation than that specified in the ebuild?  Even you said you went with kramdown and as such don't need dev-python/markdown{2,}.
Comment 12 Maciej Barć gentoo-dev 2023-08-31 22:04:47 UTC
I think the current state of the pkg should satisfy, in addition to multimarkdown also pandoc is supported and the pkg depends on any of those.

The command used by the pkg can be freely customized by the user.