• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5970: buildcontrib seems to require a symlink from twiki/lib to twiki/core/lib and other issues

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension BuildContrib Low Closed   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

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 ToolTipPlugin
mkdir /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

ItemTemplate
Summary buildcontrib seems to require a symlink from twiki/lib to twiki/core/lib and other issues
ReportedBy TWiki:Main.GeorgeClark
Codebase ~twiki4
SVN Range TWiki-5.0.0, Mon, 18 Aug 2008, build 17431
AppliesTo Extension
Component BuildContrib
Priority Low
CurrentState Closed
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r3 - 2008-08-31 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback