Opened 15 years ago

Closed 15 years ago

#23010 closed defect (worksforme)

cannot find basewiki

Reported by: weakish@… Owned by: tommyd@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: ikiwiki

Description

ikiwiki hardcoded basewiki location at /usr/share/ikiwiki/basewiki but macports put the basewiki in /opt/local/share/ikiwiki/basewiki

Error log:

Can't stat /usr/share/ikiwiki/basewiki: No such file or directory

at /opt/local/lib/perl5/vendor_perl/5.8.9/IkiWiki/Plugin/autoindex.pm line 60

Can't stat /usr/share/ikiwiki/basewiki: No such file or directory

at /opt/local/lib/perl5/vendor_perl/5.8.9/IkiWiki/Render.pm line 341

Change History (4)

comment:1 Changed 15 years ago by weakish@…

It seems that this is not considered as a bug (at least according to upstream opinions):

http://ikiwiki.info/bugs/PREFIX_not_honoured_for_underlaydir/

Macports users have to manually set the basewiki and template dir place in the config file (this not very convinient).

What's more, auto.setup and auto-blog.setup will not work.

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

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

comment:3 Changed 15 years ago by tommyd@…

Status: newassigned

Unfortunately I've found out in the past that the author doesn't like to include proper handling of DESTDIR and PREFIX in Makefile.PL as well, so I'm with you and have no problem patching this out by hand. I'll still post the patch to upstream if done. Thanks for reporting!

comment:4 in reply to:  description Changed 15 years ago by tommyd@…

Resolution: worksforme
Status: assignedclosed

Replying to weakish@…:

ikiwiki hardcoded basewiki location at /usr/share/ikiwiki/basewiki but macports put the basewiki in /opt/local/share/ikiwiki/basewiki

Error log:

Can't stat /usr/share/ikiwiki/basewiki: No such file or directory

at /opt/local/lib/perl5/vendor_perl/5.8.9/IkiWiki/Plugin/autoindex.pm line 60

Can't stat /usr/share/ikiwiki/basewiki: No such file or directory

at /opt/local/lib/perl5/vendor_perl/5.8.9/IkiWiki/Render.pm line 341

I've looked more closely on this issue and it seems as if the current version (3.20091218) seems to have fixed this issue. What version do you use?

in IkiWiki.pm $config{underlaydir} is defined as $installdir/share/ikiwiki/basewiki, and $installdir is set a couple of lines above correctly to /opt/local.

Note: See TracTickets for help on using tickets.