You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Joshua Hoblitt <jh...@ifa.hawaii.edu> on 2007/04/24 02:03:58 UTC

Apache::TestMB ignores '-axps=' flag ?

Hi Folks,

I just discovered that version of Apache::TestMB (no version string)
from Apache-Test 1.29 is ignoring the -apxs= flags passed on the command
line. E.g., `perl Build.PL -axps=/usr/sbin/apxs2`.  I'm suspecting that
this is probably my fault as I've created my own subclass so that I can
add hooks into ACTION_(code|build|install|clean) to build some nested
autotooled code.  As an example here are the first few lines of my
Build.PL.

--
my $build_pkg   = eval { require Apache::TestMB }
                ? 'Apache::TestMB'
                : 'Module::Build';

my $class = $build_pkg->subclass(code => <<'EOF');
use Apache::TestMB;
@ISA = qw( Apache::TestMB );

my $pkg_dir = "./nebclient";

sub ACTION_code {
    my $self = shift;

    $self->SUPER::ACTION_code(@_);

    my $old_pwd = $ENV{PWD};
    chdir $pkg_dir;

    unless (-e "configure") {
        system("./autogen.sh") == 0 or die "install failed: $?";
    }

    chdir $old_pwd;
}

.
.
--

As with ACTION_code(), All of my action handlers invoke SUPER as their
first action.  Any ideas as to what I've done to squash the apxs param?

Example of apxs being ignored:
--
$ perl Build.PL -axps=/foo/bar
$ ./Build test
.
.
$ grep -iR apxs t
t/conf/apache_test_config.pm:                 'APXS' => '/usr/sbin/apxs',
t/conf/apache_test_config.pm:                 '_apxs' => {},
t/conf/apache_test_config.pm:                             'apxs' => '/usr/sbin/apxs',
grep: t/logs/cgisock: No such device or address

--

Cheers,

-J

--

Re: Apache::TestMB ignores '-axps=' flag ?

Posted by "Philippe M. Chiasson" <go...@ectoplasm.org>.
On 25-Apr-07, at 2:18 PM, Joshua Hoblitt wrote:
> Doh!  That indeed is the problem.  A doc patch for Apache-Test 1.29 is
> attached. ;)

Checked in as revision 532570.

Thanks for the patch!
------------------------------------------------------------------------
Philippe M. Chiasson     GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/       m/gozer\@(apache|cpan|ectoplasm)\.org/



Re: Apache::TestMB ignores '-axps=' flag ?

Posted by Joshua Hoblitt <jh...@ifa.hawaii.edu>.
Doh!  That indeed is the problem.  A doc patch for Apache-Test 1.29 is
attached. ;)

-J

--
On Mon, Apr 23, 2007 at 05:20:34PM -0700, Geoffrey Young wrote:
> 
> 
> Joshua Hoblitt wrote:
> > Hi Folks,
> > 
> > I just discovered that version of Apache::TestMB (no version string)
> > from Apache-Test 1.29 is ignoring the -apxs= flags passed on the command
> > line. E.g., `perl Build.PL -axps=/usr/sbin/apxs2`. 
> 
> I really don't know the M::B extension to A-T, but in Makefile-land
> there is no equal sign.  that is, it's
> 
>   perl Makefile.PL -apxs /usr/sbin/apxs2
> 
> and not
> 
>   perl Makefile.PL -apxs=/usr/sbin/apxs2
> 
> so, try that.  yeah, I know, it's silly and inconsistent, but... :)
> 
> --Geoff

Re: Apache::TestMB ignores '-axps=' flag ?

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

Joshua Hoblitt wrote:
> Hi Folks,
> 
> I just discovered that version of Apache::TestMB (no version string)
> from Apache-Test 1.29 is ignoring the -apxs= flags passed on the command
> line. E.g., `perl Build.PL -axps=/usr/sbin/apxs2`. 

I really don't know the M::B extension to A-T, but in Makefile-land
there is no equal sign.  that is, it's

  perl Makefile.PL -apxs /usr/sbin/apxs2

and not

  perl Makefile.PL -apxs=/usr/sbin/apxs2

so, try that.  yeah, I know, it's silly and inconsistent, but... :)

--Geoff