As mentioned in the forum thread I'm wondering why this directory doesn't exist on my system. Reproducible: Always
Have you ever run sa-update? I believe that this directory is only created when you update the rules/scores using sa-update. Owing to a problem with one of the rules, all mails with a date in 2010 were having extra points added, so running sa-update is very strongly recommended for all spamassassin users (unless already running 3.3.0-rcx)
# Create the stub dir used by sa-update and friends dodir /var/lib/spamassassin spamassassin-3.2.1-r2.ebuild, line 131ff.
(In reply to comment #1) > Have you ever run sa-update? Yes, that's why I was wondering b/c I couldn't find that fir and therefore I run that command with -D (some time ago). Today however after I emerge d-r2 the "sa-update -D" runs fine - *shrug*
Some (older?) portage versions remove empty directories on reinstallation (#2167). That's why keepdir was invented (which adds an empty hidden file, so the directory is no longer empty). When i've read this bugreport I was surprised that my portage (2.2_...) does not remove the empty /var/lib/spamassassin. From PMS: | 12.2.2 Empty Directories | | Behaviour upon encountering an empty directory is undefined. | Ebuilds must not attempt to install an empty directory. So we should check if we can `keepdir /var/lib/spamassassin`.
yes, ebuild should not create empty dirs, so we must use `keepdir /var/lib/spamassassin` I'll fix it in 3.3.2-r2