Bug 10243

Summary: dependency openssl missing in dovecot spec file.
Product: Mageia Reporter: Jean-Marc Pigeon <jmp>
Component: RPM PackagesAssignee: Dimitri Jakov <mitya>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: fundawang
Version: 3Keywords: Triaged
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: dovecot-2.1.15-2.mga3.src.rpm CVE:
Status comment:

Description Jean-Marc Pigeon 2013-05-24 06:51:59 CEST
Description of problem:
when trying to install dovecot (on a 'basesystem'), system complain about openssl missing to do full install procedure.

Spec file say:
BuildRequires:  openssl-devel

but omit to say:
Requires: openssl



Version-Release number of selected component (if applicable):


How reproducible: always if openssl was not previously installed


Steps to Reproduce:
1.
2.
3.

Reproducible: 

Steps to Reproduce:
Manuel Hiebel 2013-05-24 20:14:10 CEST

Keywords: (none) => Triaged
Assignee: bugsquad => mitya
Summary: dependancy to openssl missing in spec file. => dependency openssl missing in dovecot spec file.

Comment 1 David Walser 2013-08-21 00:52:27 CEST
The fact that it has BR: openssl-devel just means that it will require the library, which it does automatically.  If it actually uses the openssl command for something, that would be when it needs that package.  If it doesn't absolutely need it, maybe it could be added as a suggests.
Comment 2 Jean-Marc Pigeon 2013-08-21 01:10:49 CEST
(In reply to David Walser from comment #1)
> The fact that it has BR: openssl-devel just means that it will require the
> library, which it does automatically.  If it actually uses the openssl
> command for something, that would be when it needs that package.  If it
> doesn't absolutely need it, maybe it could be added as a suggests.

Puzzled...
It was "long" time ago; from the top of my memory;  I reported an dovecot install
 trouble about openssl missing.
You should try  to install dovecote on a base system, you should have the same alarm.
I am not a dovecot expert, but...
seem to me "BuildRequires" make sure openssl library are available, this
doesn't imply openssl tools are available when starting dovecot first time.
This is resolved by a "Require".
Comment 3 David Walser 2013-08-21 17:23:39 CEST
Yes, you reported this three months ago.  Sorry nobody has responded.

What you just said is correct, but it's hard to get an install without openssl; that's *really* minimal, since it's required by so many things.  All I was saying is I don't know if openssl is *absolutely* required by dovecot, or if that's just some kind of warning you're seeing.  Anyway, I'll CC Funda, who's been updating the dovecot package lately.  Maybe he knows.

CC: (none) => fundawang

Comment 4 Jean-Marc Pigeon 2013-08-21 17:36:19 CEST
(In reply to David Walser from comment #3)
> Yes, you reported this three months ago.  Sorry nobody has responded.
> 
> What you just said is correct, but it's hard to get an install without
> openssl; that's *really* minimal, since it's required by so many things. 
> All I was saying is I don't know if openssl is *absolutely* required by
> dovecot, or if that's just some kind of warning you're seeing.  Anyway, I'll
> CC Funda, who's been updating the dovecot package lately.  Maybe he knows.

As specified in the bug report "on a 'basesystem'".
Say you want to install a  bare minimal email server, starting from 'basesystem',
yum install dovecot...
"service dovecot start" report trouble.
I guess dovecot need openssl to generate the IMAPS and POP3S self signed 
certificate.
Such you need to specify "Require" in dovecot.
Comment 5 David Walser 2013-08-21 18:38:54 CEST
(In reply to Jean-Marc Pigeon from comment #4)
> I guess dovecot need openssl to generate the IMAPS and POP3S self signed 
> certificate.

Ahh, thanks for pointing this out, specifically!  You are correct.

What it actually needs is Requires(post): openssl.

I'll fix this in Cauldron, as well as in SVN for Mageia 3.  I don't see a need to issue an update just for this issue.  Please don't hesitate to let us know if you find the same problem with any other packages.  Thanks for the report!

Status: NEW => RESOLVED
Resolution: (none) => FIXED