You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by "Philippe M. Chiasson" <go...@ectoplasm.org> on 2004/09/20 23:06:45 UTC
[Patch mp2] early configuration of httpd/srclib for static builds
When configurating apache for static build, force an early build of
stuff in srclib/ as there are generated files in there we need to
be able to probe at configuration time.
--
--------------------------------------------------------------------------------
Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5
http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5
Re: [Patch mp2] early configuration of httpd/srclib for static builds
Posted by "Philippe M. Chiasson" <go...@ectoplasm.org>.
Stas Bekman wrote:
> Philippe M. Chiasson wrote:
>
>> When configurating apache for static build, force an early build of
>> stuff in srclib/ as there are generated files in there we need to
>> be able to probe at configuration time.
>
>
> +1
Thanks, done!
>> Index: lib/Apache/Build.pm
>> ===================================================================
>> RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v
>> retrieving revision 1.179
>> diff -u -I$Id -r1.179 Build.pm
>> --- lib/Apache/Build.pm 18 Sep 2004 23:27:39 -0000 1.179
>> +++ lib/Apache/Build.pm 20 Sep 2004 20:35:50 -0000
>> @@ -285,6 +285,13 @@
>> my $cmd = qq(./configure $self->{MP_AP_CONFIGURE});
>> debug "Running $cmd";
>> system("$cd && $cmd") == 0 or die "httpd: $cmd failed";
>> +
>> + # Got to build in srclib/* early to have generated files present.
>> + my $srclib = File::Spec->catfile($self->{MP_AP_PREFIX}, 'srclib');
>> + $cd = qq(cd $srclib);
>> + $cmd = qq(make);
>> + debug "Building srclib in $srclib";
>> + system("$cd && $cmd") == 0 or die "srclib: $cmd failed";
>> }
>>
>> #--- Perl Config stuff ---
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
>> For additional commands, e-mail: dev-help@perl.apache.org
>
>
>
Re: [Patch mp2] early configuration of httpd/srclib for static builds
Posted by Stas Bekman <st...@stason.org>.
Philippe M. Chiasson wrote:
> When configurating apache for static build, force an early build of
> stuff in srclib/ as there are generated files in there we need to
> be able to probe at configuration time.
+1
> Index: lib/Apache/Build.pm
> ===================================================================
> RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v
> retrieving revision 1.179
> diff -u -I$Id -r1.179 Build.pm
> --- lib/Apache/Build.pm 18 Sep 2004 23:27:39 -0000 1.179
> +++ lib/Apache/Build.pm 20 Sep 2004 20:35:50 -0000
> @@ -285,6 +285,13 @@
> my $cmd = qq(./configure $self->{MP_AP_CONFIGURE});
> debug "Running $cmd";
> system("$cd && $cmd") == 0 or die "httpd: $cmd failed";
> +
> + # Got to build in srclib/* early to have generated files present.
> + my $srclib = File::Spec->catfile($self->{MP_AP_PREFIX}, 'srclib');
> + $cd = qq(cd $srclib);
> + $cmd = qq(make);
> + debug "Building srclib in $srclib";
> + system("$cd && $cmd") == 0 or die "srclib: $cmd failed";
> }
>
> #--- Perl Config stuff ---
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
--
__________________________________________________________________
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org