[MacPorts] #55805: Wrong path in markdown script
MacPorts
noreply at macports.org
Sun Feb 11 16:48:48 UTC 2018
#55805: Wrong path in markdown script
----------------------------+---------------------------
Reporter: angelog0 | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: PATH, usr, opt | Port: multimarkdown
----------------------------+---------------------------
I have installed the 'multimarkdown' port to be used with Emacs.
When I define the markdown-command in Emacs
{{{
(setq markdown-command "/opt/local/bin/markdown")
}}}
it fails with
{{{
multimarkdown not found...
}}}
Indeed the shell script, 'markdown', sets the wrong path
{{{
[...]
# Be sure to include multimarkdown in our PATH
export PATH="$PWD:/usr/local/bin:$PATH"
}}}
it assumes that the 'multimarkdown' executable is installed in
'/usr/local/bin'.
I think that for MacPorts you should patch it so that the PATH points to
the MacPorts PATH
{{{
--- markdown.bkp 2017-11-20 20:47:17.000000000 +0100
+++ markdown 2018-02-11 17:44:30.000000000 +0100
@@ -8,7 +8,7 @@
#
# Be sure to include multimarkdown in our PATH
-export PATH="$PWD:/usr/local/bin:$PATH"
+export PATH="$PWD:/opt/local/bin:$PATH"
which multimarkdown > /dev/null
if [ $? = 1 ]
}}}
Ciao,
Angelo.
--
Ticket URL: <https://trac.macports.org/ticket/55805>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list