http://bugzilla.spamassassin.org/show_bug.cgi?id=4285
Summary: __def_rules_dir__ etc is not replaced by correct path in
installed SpamAssassin.pm
Product: Spamassassin
Version: 3.0.2
Platform: PC
OS/Version: other
Status: NEW
Severity: normal
Priority: P5
Component: Building & Packaging
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
My first ever installation of SA seems to work fine
(thanks for all the developers!)
It says this on each invocation:
Cannot open /usr/share/spamassassin/user_prefs.template: No such file or
directory
Failed to create default user preference file /home/vda/.spamassassin/user_prefs
I tracked it down to lib/Mail/SpamAssassin.pm:
...
sub create_default_prefs {
<--- snip --->
my $defprefs = $self->first_existing_path
(@Mail::SpamAssassin::default_prefs_path);
default_prefs_path and some other variables seem to have
placeholders for install directories. I guess they should have been
replaced by actual dirs by "make install" but apparently they weren't:
@default_rules_path = (
'__def_rules_dir__',
'__prefix__/share/spamassassin',
'/usr/local/share/spamassassin',
'/usr/share/spamassassin',
);
# first 3 are BSDish, latter 2 Linuxish
@site_rules_path = (
'__local_rules_dir__',
'__prefix__/etc/mail/spamassassin',
'__prefix__/etc/spamassassin',
'/usr/local/etc/spamassassin',
'/usr/pkg/etc/spamassassin',
'/usr/etc/spamassassin',
'/etc/mail/spamassassin',
'/etc/spamassassin',
);
@default_prefs_path = (
'__local_rules_dir__/user_prefs.template',
'__prefix__/etc/mail/spamassassin/user_prefs.template',
'__prefix__/share/spamassassin/user_prefs.template',
'/etc/spamassassin/user_prefs.template',
'/etc/mail/spamassassin/user_prefs.template',
'/usr/local/share/spamassassin/user_prefs.template',
'/usr/share/spamassassin/user_prefs.template',
);
so my SA unsuccessfully tries to access /usr/share/spamassassin/*
while it should look into /usr/app/Mail-SpamAssassin-3.0.2/data.
I will post my build options shortly.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.