perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@covalent.net>
Subject Re: modperl-2 tests on Win32
Date Fri, 21 Dec 2001 02:03:23 GMT
On Thu, 20 Dec 2001, Randy Kobes wrote:

> 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:

hmm, there shouldn't be a blib/lib/Lib.pm
can you see exactly what that is?  there should be a blib/lib/APR/Lib.pm
 
> 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:

wonder if we could do something like below, and make '&&' be ';' if $^O is
win98?  what is the value of $^O for Win98?

Index: lib/Apache/Build.pm
===================================================================
RCS file: /home/cvs/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/21 01:56:09
@@ -870,6 +870,8 @@
                                          $self->apxs(-q => $q));
     }
 
+    print $fh $self->canon_make_attr(sh_and => '&&');
+
     my $xs_targ = $self->make_xs($fh);
 
     print $fh <<'EOF';
@@ -893,7 +895,7 @@
 
 .c.lo:
 	$(MODPERL_CC) $(MODPERL_CCFLAGS_SHLIB) \
-	-c $< && $(MODPERL_MV) $*$(MODPERL_OBJ_EXT) $*.lo
+	-c $< $(MODPERL_SH_AND) $(MODPERL_MV) $*$(MODPERL_OBJ_EXT) $*.lo
 
 .c$(MODPERL_OBJ_EXT):
 	$(MODPERL_CC) $(MODPERL_CCFLAGS) -c $<


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


Mime
View raw message