Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299313 - mail-filter/spamassassin-3.2.1-r2: missing directory /var/lib/spamassassin
Summary: mail-filter/spamassassin-3.2.1-r2: missing directory /var/lib/spamassassin
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Perl team
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-02 10:40 UTC by Toralf Förster
Modified: 2013-10-13 08:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2010-01-02 10:40:29 UTC
As mentioned in the forum thread I'm wondering why this directory doesn't exist on my system.

Reproducible: Always
Comment 1 Graham Murray 2010-01-02 13:40:05 UTC
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) 
Comment 2 Tobias Scherbaum (RETIRED) gentoo-dev 2010-01-02 13:44:27 UTC
    # Create the stub dir used by sa-update and friends
    dodir /var/lib/spamassassin

spamassassin-3.2.1-r2.ebuild, line 131ff. 
Comment 3 Toralf Förster gentoo-dev 2010-01-02 15:13:25 UTC
(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*
Comment 4 Torsten Veller (RETIRED) gentoo-dev 2010-01-02 20:00:20 UTC
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`.
Comment 5 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2013-10-13 08:24:04 UTC
yes, ebuild should not create empty dirs, so we must use `keepdir /var/lib/spamassassin` I'll fix it in 3.3.2-r2