Differences between revisions 5 and 6
Revision 5 as of 2004-05-15 15:11:48
Size: 1158
Editor: MalteStretz
Comment:
Revision 6 as of 2009-09-20 23:17:20
Size: 1162
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
In order to do this, you essentially need to modify Makefile.PL, moving some code from the postamble to the constants section. The [http://bugzilla.spamassassin.org/attachment.cgi?id=1721&action=view modified file] is posted in [http://bugzilla.spamassassin.org/show_bug.cgi?id=2955 bug 2955]. In order to do this, you essentially need to modify Makefile.PL, moving some code from the postamble to the constants section. The [[http://bugzilla.spamassassin.org/attachment.cgi?id=1721&action=view|modified file]] is posted in [[http://bugzilla.spamassassin.org/show_bug.cgi?id=2955|bug 2955]].

Building SpamAssassin 2.63 on ActivePerl 5.8.2.808

In order to do this, you essentially need to modify Makefile.PL, moving some code from the postamble to the constants section. The modified file is posted in bug 2955.

Here's how to do it yourself:

  1. Find the subroutine MY::constants. Just before the clean_MY_globals call, add the following code:

      push(@code, "PREPROCESS    = \$(PERL) build/preprocessor");
        
      my($repository);
      $repository = uc($SELF->{INSTALLDIRS}) || 'SITE';
    
      foreach my $macro (qw(PREFIX SYSCONFDIR)) {
        push(@code, macro_def('I_' . $macro,
                        macro_ref($repository . $macro)));
      }
  2. In the following section (MY::postamble). Comment out (or remove the following):

      foreach my $macro (qw(PREFIX SYSCONFDIR)) {
        push(@code, macro_def('I_' . $macro,
                        macro_ref($repository . $macro)));
      }
  3. Also remove the following line:

    PREPROCESS    = $(PERL) build/preprocessor

By: BretMiller

Sa263MakeWithPerl582 (last edited 2009-09-20 23:17:20 by localhost)