Stas Bekman <[EMAIL PROTECTED]> writes:
> So A-T installs into INSTALLSITEARCH because that's where mp2 normally
> installed things to. So why did it now install things outside of arch?
It looks like the top-level httpd-test/perl-framework/Makefile
wasn't picking up your redefinitions; they were winding up in
httpd-test/perl-framework/Apache-Test/Makefile.
Copying your changes to the top-level Makefile.PL seems to work
for me. Here's a patch to httpd-test/perl-framework/Makefile.PL
(be careful about the path when applying it, because subversion
strips it out :-( ).
Index: Makefile.PL
===================================================================
--- Makefile.PL (revision 105894)
+++ Makefile.PL (working copy)
@@ -13,6 +13,8 @@
use File::Find qw(finddepth);
+use constant TOP_LEVEL => 1;
+
my @scripts = ();
finddepth(sub {
@@ -36,3 +38,24 @@
VERSION => '0.01',
clean => { FILES => "@scripts" },
);
+
+sub MY::constants {
+ my $self = shift;
+
+ my $string = $self->MM::constants;
+
+ # mp2 installs A-T into INSTALLSITEARCH, so in order to avoid
+ # problems when users forget 'make install UNINST=1', trick MM into
+ # installing pure perl modules to the sitearch location, when A-T is
+ # not installed as a part of mp2 build
+ if (TOP_LEVEL) {
+ $string .= <<'EOI';
+
+# install into the same location as mod_perl 2.0
+INSTALLSITELIB = $(INSTALLSITEARCH)
+DESTINSTALLSITELIB = $(DESTINSTALLSITEARCH)
+EOI
+ }
+
+ $string;
+}
--
Joe Schaefer
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]