For some reason on my system, I need a symlink twkik/lib pointing to twiki/core/lib Also, I had to add an explicit pointer to the CPAN path in my TWIKI_LIBS declaration. (In re-reading the cookbook, I guess that is normal
declare -x TWIKI_HOME="/var/www/SVN/twiki"
declare -x TWIKI_LIBS="/var/www/SVN/twiki/lib:/var/www/SVN/twiki/lib/CPAN/lib"
This run is without the symlink:
myhost /var/www/SVN/twiki/ToolTipPlugin/lib/TWiki/Plugins/ToolTipPlugin $ perl build.pl release
Can't locate TWiki/Contrib/Build.pm in
@INC (
@INC contains: /var/www/SVN/twiki/lib/CPAN/lib /var/www/SVN/twiki/lib /etc/perl /usr/lib/perl5/vendor_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/5.8.8/i686-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/local/lib/site_perl .) at build.pl line 11.
BEGIN failed--compilation aborted at build.pl line 11.
If I restore the link, then the build works ... mostly
myhost /var/www/SVN/twiki/ToolTipPlugin/lib/TWiki/Plugins/ToolTipPlugin $ perl build.pl release
---- /var/www/SVN/twiki/ToolTipPlugin, , /var/www/SVN/twiki/ToolTipPlugin/lib/TWiki/Plugins/ToolTipPlugin/MANIFEST
Loaded config from /home/gac/.buildcontrib
Building a release for Version 17465 (29 Aug 2008) of
ToolTipPluginmkdir /tmp/GIjKKFPCY0/data
However it still does fail with some errors at the end - but it doesn't seem to impact the build or the ability to release or upload.
_installer in /var/www/SVN/twiki/ToolTipPlugin/ToolTipPlugin_installer
(in cleanup) Can't call method "FETCH" on an undefined value at /usr/lib/perl5/5.8.8/File/Path.pm line 185 during global destruction.
at /var/www/SVN/twiki/lib/TWiki/Contrib/Build.pm line 66
TWiki::Contrib::Build::__ANON__('Can\'t call method "FETCH" on an undefined value at /usr/lib/...') called at /usr/lib/perl5/5.8.8/File/Path.pm line 185
File::Path::_rmtree('/tmp/GIjKKFPCY0', '', '/var/www/SVN/twiki/ToolTipPlugin/lib/TWiki/Plugins/ToolTipPlugin', 773, 43794, 'undef', 0) called at /usr/lib/perl5/5.8.8/File/Path.pm line 304
File::Path::rmtree('/tmp/GIjKKFPCY0') called at /var/www/SVN/twiki/lib/TWiki/Contrib/Build.pm line 314
TWiki::Contrib::Build::DESTROY('TWiki::Contrib::Build=HASH(0x8159c28)') called at build.pl line 0
eval {...} called at build.pl line 0
Note that the cookbook says
- export TWIKI_HOME=/home/twiki or the equivalent for your shell.
- export TWIKI_LIBS=$TWIKI_HOME/lib:$TWIKI_HOME/lib/CPAN/lib or the equivalent for your shell. Note that it's a path with two directories on it.
However if I change both of them to include /core/ in the path, it resolves the problem. So maybe it's a cookbook error? Howver the 2nd cleanup error still occurrs.
--
TWiki:Main/GeorgeClark - 30 Aug 2008
ah yes, it's a problem in the cookbook. Well spotted!
--
TWiki:Main.CrawfordCurrie - 30 Aug 2008
Fixed the cookbook.
--
CrawfordCurrie - 31 Aug 2008