|
|
Choosing A Webhost: |
Re: Trying to test current apreq2 CVS: msg#00234apache.mod-perl.devel
On Thu, 15 Jul 2004, Markus Wichitill wrote: > > It comes about because, when running the tests, Apache > > may need certain external dlls in the Apache bin/ directory. > > The PATH is used to search for these dlls. > > > What about the following? > > + my $ap_bindir = File::Spec->catdir($build->{MP_AP_PREFIX}, 'bin'); > > That doesn't work with "perl Makefile.PL > MP_APXS=blah\apache2\bin\apxs.bat", that's why I used > $build->apr_bindir(). > > If this is about APR possibly being installed outside of the Apache > directory (?), I guess we have to include both paths. No, I wasn't thinking of that possibility; I just thought MP_AP_PREFIX would be simpler, but I forgot about using MP_APXS instead. What about the following - it tries both, and if neither are defined, it give up. =============================================================== Index: Makefile.PL =================================================================== RCS file: /home/cvs/modperl-2.0/Makefile.PL,v retrieving revision 1.143 diff -u -r1.143 Makefile.PL --- Makefile.PL 5 Jul 2004 22:02:42 -0000 1.143 +++ Makefile.PL 15 Jul 2004 03:56:21 -0000 @@ -598,8 +598,17 @@ sub MY::test { my $env = Apache::TestConfig->passenv_makestr(); + my $ap_bindir = $build->apr_bindir(); + if (! $ap_bindir) { + $ap_bindir = $build->{MP_AP_PREFIX} ? + File::Spec->catdir($build->{MP_AP_PREFIX}, 'bin') : ''; + } - my $preamble = Apache::TestConfig::WIN32 ? "" : <<EOF; + my $preamble = Apache::TestConfig::WIN32 + ? <<EOF +PATH = \$(PATH);$ap_bindir +EOF + : <<EOF; PASSENV = $env EOF =============================================================== -- best regards, randy
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Trying to test current apreq2 CVS, Markus Wichitill |
|---|---|
| Next by Date: | Re: Trying to test current apreq2 CVS, Stas Bekman |
| Previous by Thread: | Re: Trying to test current apreq2 CVS, Markus Wichitill |
| Next by Thread: | Re: Trying to test current apreq2 CVS, Stas Bekman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |