From: Mike S. <m...@pe...> - 2004-12-17 20:13:43
|
On Thu, 16 Dec 2004, Roger Yager wrote: Hi Roger, please see my comments below ... > I've tried the latest version of log4perl but still run > into issues compiling with perlapp. I was originally > using the --add option to include the additional modules, > however, perlapp doesn't bother to update %INC/@INC so the > module_available() function is unable to find the modules > even though they have been included in executable. > Therefore, I've gone ahead and included them directly > into the main package. However, perlapp never bothered to > ensure the path delimiter was correct for the platform > that it compiled on (it is using / as the delimiter). As > a result your search of the %INC doesn't find the module. > :-( > > I know the right thing to do is to get ActiveState to fix > perlapp but that is probably not going to happen anytime > soon. Thus, it was necessary to modify the > module_available() function to check for entries with '/' > as a delimiter in addition to the checks it is already > doing. > > my $relpath = File::Spec->catfile(split /::/, > $full_name) . '.pm'; > $full_name = join('/', split(/::/, $full_name)) . > '.pm'; > > return 1 if exists $INC{$relpath} || exists > $INC{$full_name}; > I've shuffled the code around a bit, but your added logic is in place now, please double check: http://perlmeister.com/tmp/Log-Log4perl-0.51.tar.gz -- Mike Mike Schilli m...@pe... |