Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 40649 invoked by uid 500); 15 Jul 2003 20:21:01 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 40631 invoked from network); 15 Jul 2003 20:21:00 -0000 Received: from erato.logilune.com (HELO mail.logilune.com) (195.154.174.52) by daedalus.apache.org with SMTP; 15 Jul 2003 20:21:00 -0000 Received: from stason.org (localhost.logilune.com [127.0.0.1]) by mail.logilune.com (Postfix) with ESMTP id 908A979E10; Tue, 15 Jul 2003 22:21:03 +0200 (CEST) Message-ID: <3F145EE1.2040408@stason.org> Date: Tue, 15 Jul 2003 23:06:57 +0300 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030428 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joe Schaefer Cc: apreq-dev@httpd.apache.org Subject: Re: need to be able to specify a path to perl References: <3F14264A.4020600@stason.org> <3F143050.30304@stason.org> <3F1433CD.7040208@stason.org> <3F144C8B.7080209@stason.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Joe Schaefer wrote: > Stas Bekman writes: > > >>Ah, that explains everything. I don't have it at all. the script fails to die >>when it doesn't find the file. This should fix the problem: > > > [...patch...] > > > Excellent- please apply. done. >>writing...xs//typemap >>failed to run xsbuilder: Missing directory ./xsbuilder/tables/Apache/libapreq > > > [...] > > >>what do I miss now? > > > > You need to regenerate the tables first. This should work from glue/perl: > > % perl ../../build/xsbuilder.pl run > % perl Makefile.PL ... > % make > > FYI: from the base httpd-apreq-2/ directory, > > % make perl_glue > > should take care of all three steps. cool, that works. Probably need to have some checkpoint target and run the above commands if someone invokes Makefile.PL from glue/perl So with this top-level Makefile.PL: ------------------- require 5.006; use strict; use warnings; use Getopt::Long qw(GetOptions); use Config; my $perl = $Config{perlpath}; # XXX my @opts = qw(with-apache2-apxs with-perl); my %opts; # grab from @ARGV only the options that we expect GetOptions(\%opts, (map "$_=s", @opts)); $opts{"with-perl"} = $perl; push @ARGV, ('-apxs', $opts{"with-apache2-apxs"}) if exists $opts{"with-apache2-apxs"}; qx{cd "glue/perl" && $perl Makefile.PL @ARGV}; ------------------------------------------------- The run-time is getting closer to the CPAN style: perl Makefile.PL --with-apache2-apxs=/home/stas/httpd/prefork/bin/apxs make make test make perl_glue make perl_test make install make perl_install Notice that it picks the right perl based on the perl used to run Makefile.PL, so --with-perl is not really needed. So we need to do some more work with configure so it'll insert the perl_glue target into the make target, perl_test into test and perl_install into install. Once this is done, it'll become: perl Makefile.PL --with-apache2-apxs=/home/stas/httpd/prefork/bin/apxs make make test make install Also should probabaly replace's configure style --with-apache2-apxs= and use -apxs like all other packages using Apache::Test do. Of course Makefile.PL will feed it to configure using --with-apache2-apxs= __________________________________________________________________ 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