http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5279
Summary: Invalid continuation in Makefile.PL
Product: Spamassassin
Version: 3.1.7
Platform: HP
OS/Version: HP-UX
Status: NEW
Severity: normal
Priority: P5
Component: Building & Packaging
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
The structure:
'PM_FILTER' => '$(PREPROCESS) -Mconditional -Mvars -DVERSION="$(VERSION)" \
-DPREFIX="$(I_PREFIX)" \
-DDEF_RULES_DIR="$(I_DATADIR)" \
-DLOCAL_RULES_DIR="$(I_CONFDIR)" \
-DLOCAL_STATE_DIR="$(I_LOCALSTATEDIR)" \
',
In Makefile.PL produces the structure:
PM_FILTER = $(PREPROCESS) -Mconditional -Mvars -DVERSION="$(VERSION)" \
-DPREFIX="$(I_PREFIX)" \
-DDEF_RULES_DIR="$(I_DATADIR)" \
-DLOCAL_RULES_DIR="$(I_CONFDIR)" \
-DLOCAL_STATE_DIR="$(I_LOCALSTATEDIR)" \
<tab>
In Makefile. In many versions of make, including the one in hp-ux, this causes
everything up until the next blank line to be part of the PM_FILTER macro.
This presents as an odd build failure:
/opt/perl/bin/perl build/preprocessor -Mconditional -Mvars -DVERSION="3.001007"
-DPREFIX="/opt/perl" -DDEF_RULES_DIR="/opt/perl/share/spamassassin"
-DLOCAL_RULES_DIR="/etc/opt/mail/spamassassin"
-DLOCAL_STATE_DIR="/var/opt/spamassassin" # Handy lists of source code files:
<lib/Mail/SpamAssassin/AutoWhitelist.pm
>blib/lib/Mail/SpamAssassin/AutoWhitelist.pm
AutoSplit: Can't open blib/lib/Mail/SpamAssassin/AutoWhitelist.pm: No such file
or directory
*** Error exit code 2
Stop.
This was reported in Bug 5084, which was closed "WONTFIX", apparently because
the submitter had a workaround?
The fix is easy: Remove the last "\" and the tab on the next line:
'PM_FILTER' => '$(PREPROCESS) -Mconditional -Mvars -DVERSION="$(VERSION)" \
-DPREFIX="$(I_PREFIX)" \
-DDEF_RULES_DIR="$(I_DATADIR)" \
-DLOCAL_RULES_DIR="$(I_CONFDIR)" \
-DLOCAL_STATE_DIR="$(I_LOCALSTATEDIR)"',
==Doug Claar
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.