Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#14005 closed defect (fixed)

asciidoc-8.2.5 python_select and readlink

Reported by: noemail Owned by: boeyms@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: python linux readlink asciidoc Cc:
Port:

Description

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.

Change History (4)

comment:1 Changed 17 years ago by wsiegrist@…

The reporter's email address and the comments containing the reporter's email address have been removed by Mac OS Forge management.

comment:2 Changed 17 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to boeyms@…

Assigning to maintainer.

comment:3 Changed 16 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

Fixed in r47351.

comment:4 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.