apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors
Date Tue, 14 Sep 2004 00:36:59 GMT
Carl Brewer wrote:
> Stas Bekman wrote:
> 
>> Carl Brewer wrote:
>>
>>> MGorbunov@imbank.ru wrote:
>>>
>>>
>>>> but make install for modperl-1.99_16 fails with the following:
>>>>
>>>> /usr/pkg/bin/perl -Iblib/lib/Apache2 
>>>> -I/usr/home/mgorb/mp-test/mod_perl-1.99_16/Apache-Test/lib 
>>>> -MModPerl::BuildMM -e ModPerl::BuildMM::glue_pod 
>>>> WrapXS/APR/ThreadMutex/ThreadMutex.pm 
>>>> /usr/home/mgorb/mp-test/mod_perl-1.99_16/docs/api/APR/ThreadMutex.pod 
>>>> blib/lib/Apache2/APR/ThreadMutex.pm
>>>> glue_pod: can't find blib/lib/Apache2/APR/ThreadMutex.pm at 
>>>> blib/lib/Apache2/ModPerl/BuildMM.pm line 275.
>>>> *** Error code 2
>>>
>>>
>>>
>>>
>>> I see the same problem on my i386 NetBSD 1.6.2 box.
>>
>>
>>
>> Yes, but I've asked you to use cvs, where this has been fixed. Please 
>> confirm that it is the case.
> 
> 
> Current CVS checked out 10 mins ago :
> 
> /usr/bin/perl -Iblib/lib -I/data/src/modperl-2.0/Apache-Test/lib 
> -MModPerl::BuildMM -e ModPerl::BuildMM::glue_pod 
> WrapXS/APR/ThreadMutex/ThreadMutex.pm 
> /data/src/modperl-2.0/docs/api/APR/ThreadMutex.pod 
> blib/lib/APR/ThreadMutex.pm
> glue_pod: can't find blib/lib/APR/ThreadMutex.pm at 
> blib/lib/ModPerl/BuildMM.pm line 279.
> gmake: *** [glue_pods] Error 2
> 
> 
> Sure enough, there's no ThreadMutex.pm in blib/lib/APR/

Mea culpa, not sure why it did work for me. I guess my emulation of apr 
not having threads didn't work completely. Please try this patch:

Index: lib/ModPerl/BuildMM.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/lib/ModPerl/BuildMM.pm,v
retrieving revision 1.21
diff -u -r1.21 BuildMM.pm
--- lib/ModPerl/BuildMM.pm      8 Sep 2004 04:10:09 -0000       1.21
+++ lib/ModPerl/BuildMM.pm      14 Sep 2004 00:36:00 -0000
@@ -274,9 +274,7 @@
      # it's possible that the .pm file is not existing
      # (e.g. ThreadMutex.pm is not created on unless
      # $apr_config->{HAS_THREADS})
-    return unless -e $pm;
-
-    die "glue_pod: can't find $dst" unless -e $dst;
+    return unless -e $pm && -e $dst;

      # have we already glued the doc?
      exit 0 unless -s $pm == -s $dst;


-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Mime
View raw message