Ticket #26333 (closed defect: invalid)
ikiwiki doesn't use installed Subversion
| Reported by: | geychaner@… | Owned by: | tommyd@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.9.1 |
| Keywords: | Cc: | ||
| Port: | ikiwiki |
Description
If you install both the ikiwiki and Subversion ports, ikiwiki doesn't use the port version of Subversion. This is really bad if you're trying to pair ikiwiki with an existing Subversion repository on a Leopard machine; the /usr/bin/svn is 1.4.4, while the latest is 1.6.12.
The problem can apparently be fixed right at the top of /opt/local/bin/ikiwiki by changing the PATH variable, but I am still experimenting.
Attachments
Change History
comment:2 Changed 3 years ago by tommyd@…
- Status changed from new to assigned
As I have no use case for such a setup, please post a patch once you got it working. I'll happily apply it to the port then. Thank you!
Changed 3 years ago by geychaner@…
- Attachment ikiwiki.patch added
Diff to fix the ikiwiki path so that MacPorts is before /usr/bin
comment:3 Changed 3 years ago by geychaner@…
The attached diff file fixes ikiwiki so that the MacPorts directory is ahead of /usr/bin, as it is on the standard $PATH. It's still rude of ikiwiki to override the $PATH variable like this; if it needs a directory on the path, it should simply modify the existing $PATH variable, e.g. $ENV{PATH} = '/opt/local/bin:' + $ENV{PATH}
comment:4 Changed 3 years ago by tommyd@…
Thanks for the patch. I asked upstream (http://ikiwiki.info/bugs/ikiwiki_ignores_PATH_environment/) - lets see how it goes. Its easy enough to apply your patch though in case they don't want to change it in their code.


Please remember to cc the maintainer.