Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213280 - net-mail/cyrus-imapd doesn't install SSL certs
Summary: net-mail/cyrus-imapd doesn't install SSL certs
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tobias Scherbaum (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-13 15:25 UTC by Arnaud Launay
Modified: 2008-03-13 21:07 UTC (History)
1 user (show)

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


Attachments
patch for correcting cyrus-imapd 2.3.9-r1 ebuild (diff-ucyrus,815 bytes, patch)
2008-03-13 15:25 UTC, Arnaud Launay
Details | Diff
$ROOT slash problem (cyrus.patch,831 bytes, patch)
2008-03-13 15:35 UTC, Arnaud Launay
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arnaud Launay 2008-03-13 15:25:02 UTC
Installing cyrus-imapd with ssl flag doesn't install the default SSL certificates.

Reproducible: Always

Steps to Reproduce:
1. emerge cyrus-imapd
2. ls /etc/ssl/cyrus
3.

Actual Results:  
srv-smtp # ls /etc/ssl/cyrus
ls: cannot access /etc/ssl/cyrus: No such file or directory

resulting in:
127.000.000.001.39321-127.000.000.001.00143: A0002 STARTTLS
127.000.000.001.00143-127.000.000.001.39321: A0002 NO Error initializing TLS

Mar 13 16:10:52 localhost imap[25697]: unable to get certificate from '/etc/apache2/ssl/server.crt'
Mar 13 16:10:52 localhost imap[25697]: TLS server engine: cannot load cert/key data
Mar 13 16:10:52 localhost imap[25697]: error initializing TLS

Expected Results:  
srv-smtp ~ # ls /etc/ssl/cyrus/
server.crt  server.csr  server.key  server.pem

Patch enclosed:
- create the user BEFORE using it
- add the missing / for the ROOT directory.
Comment 1 Arnaud Launay 2008-03-13 15:25:53 UTC
Created attachment 146026 [details, diff]
patch for correcting cyrus-imapd 2.3.9-r1 ebuild
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-03-13 15:29:06 UTC
Comment on attachment 146026 [details, diff]
patch for correcting cyrus-imapd 2.3.9-r1 ebuild

I really don't see how's this fixing anything???

- the user has already been created in pkg_setup(), this is just completely redundant in pkg_postinst()
- there's no missing / anywhere, ${ROOT} already includes this
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-03-13 15:33:12 UTC
Attach a complete emerge log here instead and post emerge --info output; thanks.
Comment 4 Arnaud Launay 2008-03-13 15:35:34 UTC
Created attachment 146030 [details, diff]
$ROOT slash problem

Don't know, but it works...
BTW:
asl@citron /usr/portage/net-mail $ grep -r ROOT *
lots with "${ROOT}"/
even in mailman, see the ChangeLog:
  16 Feb 2005; Elfyn McBratney <beu@gentoo.org> mailman-2.1.5-r2.ebuild,
  mailman-2.1.5-r3.ebuild, mailman-2.1.5-r4.ebuild,
  mailman-2.1.6_beta1.ebuild:
  Add slash after ${ROOT} in pkg_config.

Anyway, the user is created before, so new patch reflecting this.
Comment 5 Arnaud Launay 2008-03-13 15:49:25 UTC
Hmm, it works on another machine, so I tried reinstalling it and now it does work. 

I don't get it, anyhow, marking as invalid (well, the redundant enewuser is still here, though).

Sorry for the inconvenience.
Comment 6 Tobias Scherbaum (RETIRED) gentoo-dev 2008-03-13 21:07:31 UTC
(In reply to comment #5)
> Hmm, it works on another machine, so I tried reinstalling it and now it does
> work. 
> 
> I don't get it, anyhow, marking as invalid (well, the redundant enewuser is
> still here, though).

i just removed the redundant enewuser call, thanks for reporting!

> Sorry for the inconvenience.

No worries ;)