Bug 5340 - sa-compile fails to write to 'compiled/3.00200' dir
Summary: sa-compile fails to write to 'compiled/3.00200' dir
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: sa-compile (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: Macintosh Mac OS X
: P5 normal
Target Milestone: 3.2.0
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
: 5341 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-20 11:09 UTC by snowcrash+apache
Modified: 2007-02-25 14:54 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description snowcrash+apache 2007-02-20 11:09:04 UTC
i've built up a test-instance of,

	% spamassassin --version
		SpamAssassin version 3.2.0-pre1-r499012
		  running on Perl version 5.8.8

on,

	% uname -a
		Darwin snowcrash 8.8.0 Darwin Kernel Version 8.8.0: Fri Sep  8 17:18:57 PDT
2006; root:xnu-792.12.6.obj~1/RELEASE_PPC Power Macintosh powerpc

currently, on launch of sa, i see @ console,

	[21402] error: Can't locate Mail/SpamAssassin/CompiledRegexps/body_0.pm in @INC
(@INC ...
	/var/mail/spamassassin/updates/compiled/3.002000
/var/mail/spamassassin/updates/compiled/3.002000/auto) at (eval 536) line 1.

this is with,

	loadplugin Mail::SpamAssassin::Plugin::Rule2XSBody

in init.pre

if i disable the compile plugin, on restart i get no errors.

i was informed on-list that,

> that's to be expected until you actually run "sa-compile" to compile
> the ruleset...

now,

	% /usr/local/spamassassin/bin/sa-compile --sudo -D
		[21503] dbg: logger: adding facilities: all
		[21503] dbg: logger: logging level is DBG
		[21503] dbg: generic: SpamAssassin version 3.2.0-pre1-r499012
		[21503] dbg: config: score set 0 chosen.
		[21503] dbg: dns: is Net::DNS::Resolver available? yes
		[21503] dbg: dns: Net::DNS version: 0.59
		sa-compile: cannot write to
		/var/mail/spamassassin/updates/compiled/3.002000, aborting

checking,

	% ls -ald /var/mail/spamassassin/updates/compiled/3.002000
		/usr/local/bin/ls: cannot access
		/var/mail/spamassassin/updates/compiled/3.002000: No such file or
		directory

then,

	% mkdir -p /var/mail/spamassassin/updates/compiled/3.002000
	% chown -R spam:spam /var/mail/spamassassin/updates/compiled/3.002000

and again,

	% /usr/local/spamassassin/bin/sa-compile --sudo -D

still reports,

		[21503] dbg: logger: adding facilities: all
		[21503] dbg: logger: logging level is DBG
		[21503] dbg: generic: SpamAssassin version 3.2.0-pre1-r499012
		[21503] dbg: config: score set 0 chosen.
		[21503] dbg: dns: is Net::DNS::Resolver available? yes
		[21503] dbg: dns: Net::DNS version: 0.59
		sa-compile: cannot write to
		/var/mail/spamassassin/updates/compiled/3.002000, aborting


thanks.
Comment 1 snowcrash+apache 2007-02-20 11:54:18 UTC
*** Bug 5341 has been marked as a duplicate of this bug. ***
Comment 2 Justin Mason 2007-02-21 10:44:46 UTC
aiming at 3.2.0 -- needs to be fixed
Comment 3 Justin Mason 2007-02-25 14:54:13 UTC
fixed...

: jm 28...; svn commit -m "bug 5340: sa-compile was complaining about being
unable to write to the compiled-rules dir, incorrectly.  fix" sa-compile.raw
Sending        sa-compile.raw
Transmitting file data .
Committed revision 511648.