You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by "Karl M. Hegbloom" <ka...@cs.pdx.edu> on 2003/05/16 04:19:12 UTC

[patch] -I for apr on Debian unstable

The following patch is required to get mod-perl2 to build on Debian
unstable, where the libapr0-dev includes are in /usr/include/apr-0.


--- Build.pm	2003/05/16 02:09:18	1.1
+++ Build.pm	2003/05/16 02:13:02
@@ -1308,6 +1308,8 @@
 
     push @inc, $self->mp_include_dir;
 
+    push @inc, $self->apr_includedir;
+
     unless ($self->ap_prefix_is_source_tree) {
         my $ainc = $self->apxs('-q' => 'INCLUDEDIR');
         if (-d $ainc) {

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


Re: [patch] -I for apr on Debian unstable

Posted by Stas Bekman <st...@stason.org>.
Karl M. Hegbloom wrote:
> The following patch is required to get mod-perl2 to build on Debian
> unstable, where the libapr0-dev includes are in /usr/include/apr-0.
> 
> 
> --- Build.pm	2003/05/16 02:09:18	1.1
> +++ Build.pm	2003/05/16 02:13:02
> @@ -1308,6 +1308,8 @@
>  
>      push @inc, $self->mp_include_dir;
>  
> +    push @inc, $self->apr_includedir;
> +
>      unless ($self->ap_prefix_is_source_tree) {
>          my $ainc = $self->apxs('-q' => 'INCLUDEDIR');
>          if (-d $ainc) {

Thanks Karl. I think it's probably more correct to include this one if the 
source tree is not used. Please confirm that this patch works for you as well:

Index: lib/Apache/Build.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v
retrieving revision 1.123
diff -u -r1.123 Build.pm
--- lib/Apache/Build.pm 15 May 2003 03:29:09 -0000      1.123
+++ lib/Apache/Build.pm 19 May 2003 01:52:50 -0000
@@ -1310,6 +1310,8 @@
      push @inc, $self->mp_include_dir;

      unless ($self->ap_prefix_is_source_tree) {
+        push @inc, $self->apr_includedir;
+
          my $ainc = $self->apxs('-q' => 'INCLUDEDIR');
          if (-d $ainc) {
              push @inc, $ainc;


__________________________________________________________________
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