Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82286 - updating (or re-emerging) courier removes folders in /var/lib/courier
Summary: updating (or re-emerging) courier removes folders in /var/lib/courier
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Scott Taylor (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-16 14:56 UTC by Bjarke Istrup Pedersen (RETIRED)
Modified: 2005-03-04 03:51 UTC (History)
0 users

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


Attachments
courier-init.diff (courier-init.diff,1.02 KB, patch)
2005-03-03 02:55 UTC, Bjarke Istrup Pedersen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2005-02-16 14:56:52 UTC
When updating or re-emerging courier, the unmerging of the old build removes msgs, msgq and track from /var/lib/courier .
The problem is that they are needed by courier.

Reproducible: Always
Steps to Reproduce:
1. emerge courier
2. check that /var/lib/courier/{msgs,msgq,track} exists (make them if they dont, but they should).
3. now emerge courier again, and have a look, the folders are gone.

Actual Results:  
Courier stops working

Expected Results:  
The directories shouldn't have been removed, it might be an idea to make .keep 
files inside them.
Comment 1 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2005-03-03 02:55:15 UTC
Created attachment 52533 [details, diff]
courier-init.diff

Patch that patches the courier init script, so it creates the directories in
/var/lib/courier if they does not exist.
It only requires that people runs "/etc/init.d/courier restart" after updating.

This info should be added to the postinstall info in the ebuild.
Comment 2 Kalin KOZHUHAROV 2005-03-03 12:52:29 UTC
What are these files for?

I don't have them and courier-imapd-ssl is functioning perfectly well.
Comment 3 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2005-03-03 23:42:38 UTC
I guess that you are only using the net-mail/courier-imap package, right?
The problem is with the mail-mta/courier package.
I have been able to reproduce it on 3 different machines, as soon as you reemerge or update courier, the folders gets removed, and courier stops working (at least for sender/recieving mails).
Comment 4 Scott Taylor (RETIRED) gentoo-dev 2005-03-04 03:51:23 UTC
keepdir had previously been run on too many directories, and that caused
collisions with baselayout. fix to cut back on those went too far. now only
a more sane set of directories are marked. should be good now.