[WM] Re: Webmake SiteCache dup error
Justin Mason
jm.jmason.org
Thu Jun 26 16:02:08 IST 2003
Ralph Pape writes:
>> interesting! An Activeperl bug ;)
>I'm sorry to say I've made a mistake. I tried a wmk file without a perl
>block in it. With a perl block in the wmk file the error occurs with
>activeperl 5.8.0.608 too.
>Please take a look at it!
>
>> Could you post that to the mailing list, so it'll be archived for
>> other folks running into the same issue?
>Unfortunately at the time I discovered my mistake I posted my false
>solution already on the list. :(
Ralph, could you try this applying this patch. Basically add the
lines marked with "+" to the file, replacing any lines marked with "-"...
diff -u -3 -p -r1.16 SiteCache.pm
--- lib/HTML/WebMake/SiteCache.pm 28 Sep 2001 07:36:52 -0000 1.16
+++ lib/HTML/WebMake/SiteCache.pm 26 Jun 2003 22:43:19 -0000
@@ -26,6 +26,8 @@ $DB_MODULE = undef;
$UNDEF_SYMBOL = '!!UnDeF';
+use constant RUNNING_ON_WINDOWS => ($^O =~ /^(?:mswin|dos|os2)/oi);
+
###########################################################################
sub new ($$$) {
@@ -62,7 +64,7 @@ sub tie {
O_CREAT|O_RDWR, 0600)
or die "Cannot open/create site cache: $self->{filename}\n";
- if ($AnyDBM_File::ISA[0] ne 'DB_File') {
+ if ($AnyDBM_File::ISA[0] ne 'DB_File' || RUNNING_ON_WINDOWS) {
dbg ("cannot do db ownership security check on this platform");
goto all_ok;
}
More information about the Webmake-talk
mailing list