perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randy Kobes" <ra...@theoryx5.uwinnipeg.ca>
Subject modperl-2 tests on Win32
Date Thu, 20 Dec 2001 21:56:14 GMT
Hi,
      Running the modperl-2 tests on Win32 runs into
problems of not finding things in @INC. I think this is
because when @INC is set in the add_inc sub of
Apache-Test/lib/Apache/TestConfig.pm, the "lib.pm" that's
being picked up is not Perl's system lib.pm but rather
mod_perl's Lib.pm in blib/lib (Win32 filenames aren't
case sensitive). I'm not sure the best way to handle this,
but this diff:

****************************************************************
Index: Apache-Test/lib/Apache/TestConfig.pm
===================================================================
RCS file:
/home/cvspublic/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfig.
pm,v
retrieving revision 1.116
diff -u -r1.116 TestConfig.pm
--- Apache-Test/lib/Apache/TestConfig.pm 2001/12/20 17:30:54 1.116
+++ Apache-Test/lib/Apache/TestConfig.pm 2001/12/20 21:53:30
@@ -1173,6 +1173,7 @@

 sub add_inc {
     my $self = shift;
+    delete $INC{'lib.pm'} if ($INC{'lib.pm'} and $INC{'lib.pm'} =~
/^blib/);
     require lib;
     # make sure that the Apache-Test dev libs will be first in @INC,
     # followed by modperl's lib, followed by blib and finally core

****************************************************************
seems to work.

As well, the Win98 "shell" doesn't like the syntax
     do_something > to_somewhere && do_something_else
This is used in building libmodperl. This diff:

****************************************************************
Index: lib/Apache/Build.pm
===================================================================
RCS file: /home/cvspublic/modperl-2.0/lib/Apache/Build.pm,v
retrieving revision 1.75
diff -u -r1.75 Build.pm
--- lib/Apache/Build.pm 2001/12/05 02:22:24 1.75
+++ lib/Apache/Build.pm 2001/12/20 21:44:58
@@ -892,8 +892,8 @@
 .SUFFIXES: .xs .c $(MODPERL_OBJ_EXT) .lo .i .s

 .c.lo:
- $(MODPERL_CC) $(MODPERL_CCFLAGS_SHLIB) \
- -c $< && $(MODPERL_MV) $*$(MODPERL_OBJ_EXT) $*.lo
+        $(MODPERL_CC) $(MODPERL_CCFLAGS_SHLIB) -c $<
+        $(MODPERL_MV) $*$(MODPERL_OBJ_EXT) $*.lo

 .c$(MODPERL_OBJ_EXT):
  $(MODPERL_CC) $(MODPERL_CCFLAGS) -c $<

****************************************************************
lets things compile on Win98. I know it's not equivalent ...

best regards,
randy



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message