[MacPorts] #14005: asciidoc-8.2.5 python_select and readlink
MacPorts
trac at macosforge.org
Sun Jan 20 11:20:46 PST 2008
#14005: asciidoc-8.2.5 python_select and readlink
--------------------------------------------+-------------------------------
Reporter: neil_mayhew at mac.com | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Keywords: python linux readlink asciidoc |
--------------------------------------------+-------------------------------
The `asciidoc` command is failing because it has `#!/opt/local/bin/python`
hardcoded for the shebang line, and I don't have `python_select`
installed. I fixed this by installing `python_select`, although I had to
fix ''that'' up by adding an extra alternative, `python25-apple`, since
I'm on Leopard (I'll report that bug separately).
After that, `a2x` is still failing because it uses `readlink -f`, and the
BSD `readlink` command works differently from the Linux one. I don't know
if you want to report this upstream or just handle it with a MacPorts-
specific patch file, which is why I'm reporting it here and not upstream.
I temporarily fixed the `readlink` problem by defining a function called
`readlink` at the top of the script which just does `echo "$2"`. After
that, it works with no options. However,
I've now found that the `--copy` option doesn't work, because it uses `cp
-u`, which is another Linux-ism.
--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14005>
MacPorts </projects/macports>
Ports system for Mac OS
More information about the macports-tickets
mailing list