Bug 1974 - Package request - courier-imap
Summary: Package request - courier-imap
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: New RPM package request (show other bugs)
Version: 1
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL: http://www.courier-mta.org/
Whiteboard:
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2011-06-30 19:38 CEST by Derek Jennings
Modified: 2016-01-18 20:57 CET (History)
9 users (show)

See Also:
Source RPM: courier-imap
CVE:
Status comment:


Attachments
tail of build log (13.34 KB, text/plain)
2011-11-22 16:31 CET, Barry Jackson
Details
configure,make,make check in Cauldron - output (240.13 KB, text/plain)
2011-11-24 15:05 CET, Barry Jackson
Details

Description Derek Jennings 2011-06-30 19:38:29 CEST
IMO the best imap server is not in Cauldron
Manuel Hiebel 2011-06-30 20:00:36 CEST

URL: (none) => http://www.courier-mta.org/
Source RPM: (none) => courier-imap
Severity: normal => enhancement

Thomas Bigot 2011-07-17 20:41:45 CEST

CC: (none) => thomas.bigot

Comment 1 Gene Alexander 2011-09-12 15:55:15 CEST
I second this request. We use all of courier-imap, courier-pop, courier-base and courier-auth* here and at our client sites. Please add all the courier* packages as soon as possible so we can start migration of our clients to Mageia. So far all I can find in Magiea are:

# urpmq --list|grep courier                                                                                           
courier-authdaemon
courier-authlib
courier-authlib-devel
courier-authlib-ldap
courier-authlib-mysql
courier-authlib-pgsql
courier-authlib-userdb
php-courierauth
#

CC: (none) => subs

Comment 2 Gene Alexander 2011-09-12 16:01:08 CEST
For the record, I would like to see this in Mageia 1 if at all possible. We have already migrated our local desktops to Mageia 1 and only stalled on the internal mail server / file server because courier-imap and courier-pop are MIA. I would rather migrate from Mandriva 2010.2 to Mageia 1 now on the server.
Samuel Verschelde 2011-09-12 16:20:18 CEST

Keywords: (none) => Backport
CC: (none) => stormi

Comment 3 Derek Jennings 2011-09-15 10:44:57 CEST
Assigning to Mageia 1 because courier-imap is available in mdv2010.2

Version: Cauldron => 1

Comment 4 Jim Darby 2011-11-20 17:34:46 CET
Can I just add a "me too" here. I just upgraded to Mageia and this is the one thing that's stopping me.

CC: (none) => uberscubajim

Comment 5 Derek Jennings 2011-11-20 21:07:23 CET
Jim
As it happens the Mandriva package courier-imap-4.7.0-2mdv2010.1 works OK under Mageia 1, but we still need our own package.
Comment 6 Jim Darby 2011-11-21 00:05:36 CET
Hi Derek,

Many thanks for your response. What I've actually done is to download and build courier-imap myself. Turns out to be fairly straightforward. It should be really simple to add this as a package....

The only bits missing are the RPM packaging and the links in /etc/init.d to start the whole thing off.
Comment 7 Barry Jackson 2011-11-22 16:31:10 CET
Created attachment 1097 [details]
tail of build log

I have been working on this, however neither 4.7 or 4.8 will currently build in Cauldron, due to failing tests.
4.7 does however build OK in a mga1 system.

I have imported 4.7 sources to Cauldron svn and cleaned the spec where necessary.

The offending libcourierauth.so is installed in the same location in both my Cauldron and mga1 systems.

Attaching tail of failing build log, being an apprentice packager I need some help with this ;)
Comment 8 Jim Darby 2011-11-22 17:05:04 CET
Humm... I managed to compile 4.9.3 straight off on a mga1 system. I have installed courier-authlib-0.63.0-6.mga1, courier-authlib-devel-0.63.0-6.mga1 and courier-authdaemon-0.63.0-6.mga1. I'm not sure that all three are necessary.

It all compiled fine and installed using a "make install".

If I were you I wouldn't bother with 4.9 or 4.8 but go straight to the latest version.

Hope this helps!
Comment 9 Derek Jennings 2011-11-22 20:17:38 CET
I just compiled 4.7 RPMs using both your spec file and Mandriva's. They both build OK on my local system.
Comment 10 Barry Jackson 2011-11-22 20:42:36 CET
(In reply to comment #8)
> Humm... I managed to compile 4.9.3 straight off on a mga1 system.

Yes mga1 is not a problem - but it really needs to build and test OK in Cauldron as well.

> It all compiled fine and installed using a "make install".

Did you also as user, before make install run:
make check

> If I were you I wouldn't bother with 4.9 or 4.8 but go straight to the latest
> version.

Same issue with 4.9.3 sadly.

> 
> Hope this helps!

CC: (none) => zen25000

Comment 11 Jim Darby 2011-11-23 13:31:31 CET
The make check worked fine.

It would appear that your problem is it being unable to find libcourierauth.so. Something else that slightly concerns me is the warning earlier in the logfile "Warning: unused libraries in /usr/sbin/imaplogin: libcourierauth.so".

It looks to me like the courierauthconfig program isn't doing the right thing. If I run it on my mga1 system I get the following output with the following commands:

[build@ion courier-imap-4.9.3]$ /usr/bin/courierauthconfig --ldflags
-L/usr/lib64/courier-authlib
[build@ion courier-imap-4.9.3]$ /usr/bin/courierauthconfig --configfiles
userdb=/etc/userdb
authdaemonrc=/etc/courier/authdaemonrc
authldaprc=/etc/courier/authldaprc
authmysqlrc=/etc/courier/authmysqlrc
authpgsqlrc=/etc/courier/authpgsqlrc
mailuser=daemon
mailgroup=daemon
mailuid=2
mailgid=2
sbindir=/usr/sbin
[build@ion courier-imap-4.9.3]$ /usr/bin/courierauthconfig --version
0.63.0

Can you try running these and see what output you get?
Comment 12 Barry Jackson 2011-11-23 17:07:30 CET
Well Jim it looks the same :-

[baz@jackodesktop courier-imap-4.9.3]$ /usr/bin/courierauthconfig --ldflags
-L/usr/lib64/courier-authlib
[baz@jackodesktop courier-imap-4.9.3]$ /usr/bin/courierauthconfig --configfiles
userdb=/etc/userdb
authdaemonrc=/etc/courier/authdaemonrc
authldaprc=/etc/courier/authldaprc
authmysqlrc=/etc/courier/authmysqlrc
authpgsqlrc=/etc/courier/authpgsqlrc
mailuser=daemon
mailgroup=daemon
mailuid=2
mailgid=2
sbindir=/usr/sbin
[baz@jackodesktop courier-imap-4.9.3]$ /usr/bin/courierauthconfig --version
0.63.0
Comment 13 Jim Darby 2011-11-23 17:16:46 CET
I really can't see why it wouldn't compile then. It all does seem rather strange.

Is this the straight courier-imap 4.9.3 as downloaded from the official website? If so then I could upload the output of configure and make and we can diff them to see what any differences are.

In related news I get the following:

[build@ion courier-imap-4.9.3]$ rpm -q -a | grep courier
courier-authlib-0.63.0-6.mga1
courier-authlib-devel-0.63.0-6.mga1
courier-authdaemon-0.63.0-6.mga1

So I don't have the extra libs that you have installed. I'm also on mga1 too! :-)
Remco Rijnders 2011-11-23 17:48:38 CET

CC: (none) => remco

Comment 14 Barry Jackson 2011-11-24 11:37:28 CET
(In reply to comment #13)
> I really can't see why it wouldn't compile then. It all does seem rather
> strange.

...but it does compile and link OK - it's the test suite that fails but only in Cauldron.

> 
> Is this the straight courier-imap 4.9.3 as downloaded from the official
> website? 

Yes, as per spec file Source0

> If so then I could upload the output of configure and make and we can
> diff them to see what any differences are.

Remember that the spec uses %configure2_5x so I will use the logs from builds in mga1 and Cauldron and diff them here.

> 
> In related news I get the following:
> 
> [build@ion courier-imap-4.9.3]$ rpm -q -a | grep courier
> courier-authlib-0.63.0-6.mga1
> courier-authlib-devel-0.63.0-6.mga1
> courier-authdaemon-0.63.0-6.mga1
>

[root@jackodesktop baz]# rpm -qa |grep courier
courier-authlib-0.63.0-7.mga2
courier-authlib-devel-0.63.0-7.mga2
courier-authdaemon-0.63.0-7.mga2
Comment 15 Jim Darby 2011-11-24 13:20:36 CET
OK, somehow I managed to miss out on it being the test suite. I'm wondering if it's something from the RPM .spec file that's causing the problem. It would appear that this is the only major difference in what we're doing.

Could you try building it "out of the box". Just getting the tarball, opening it and then do the classic ./configure;make;make check and see what happens.

If it compiles and tests OK out the tarball then it would look like we have a problem with the RPM builder.
Comment 16 Barry Jackson 2011-11-24 15:05:09 CET
Created attachment 1106 [details]
configure,make,make check in Cauldron - output

Well Jim it's just the same doing a straight build from tarball,
output attached.
Comment 17 Barry Jackson 2011-11-27 23:50:34 CET
OK I think we finally fixed it - a long Sunday afternoon on IRC ;)
The problem was due to a change in the courier-authlib package in the version in Cauldron. It is now built with --no-static and since the path to that dynamic lib (libcourierauth.so) was not registered it could not be found. I patched courier-authlib and now courier-imap builds and tests OK locally.

It should be available in a day or so in Cauldron and Mageia 1 assuming it builds OK on the build system.
Comment 18 Thomas Bigot 2011-11-28 10:26:58 CET
Thanks a lot for your work guys! :-)
Comment 19 Jim Darby 2011-11-28 15:11:10 CET
Well done Barry!

Can I just check that you patched courier-authlib and rebuilt it so that it now has static libraries as well as the dynamic ones. As a result the testing part of courier-imap now works.

Does the main part use the static or dynamic libraries? It would be cool to use the dynamic ones as it makes upgrading easier later on.

Let's not forget to move the status to resolved as well.
Comment 20 Barry Jackson 2011-11-28 15:55:05 CET
(In reply to comment #19)
> Well done Barry!
> 
> Can I just check that you patched courier-authlib and rebuilt it so that it now
> has static libraries as well as the dynamic ones. 

No - In Mageia 1 it did build also with static, but a recent revision in Cauldron had changed it to build with static disabled. As a result of the static lib not being available it came to light that the path to the required dynamic lib was not registered causing the test failure. That has been fixed.

courier-imap-4.7.0 just (a couple of mins ago) successfully built and is in Cauldron, but I will update it now to 4.9.3 before it gets pushed to mga1 updates/testing.

Thanks for your support - please test it when it arrives in mga1 - we will leave the status for now until you test it ;)
Comment 21 Jim Darby 2011-11-28 19:16:51 CET
Ooo! I get to test something for both mga1 and mga2. Cool!
Comment 22 Derek Jennings 2011-11-29 10:45:28 CET
I do not see courier-imap in Updates_Testing  Has it been pushed?
Comment 23 Barry Jackson 2011-11-29 15:53:51 CET
(In reply to comment #22)
> I do not see courier-imap in Updates_Testing  Has it been pushed?

Not yet - 4.9.3 is now in Cauldron, but I need to get my mentor to push it to mga1 - patience ;)
Comment 24 Barry Jackson 2011-11-30 14:59:29 CET
courier-imap-4.9.3-1.1.mga1 is now in core/updates_testing  :)
Comment 25 Manuel Hiebel 2011-11-30 15:35:02 CET
Don't forget to
-Reassign the bug to qa-bugs (when it's ok) (add a comment in the bug with the package version/release at re-assign)
-Write the update announcement 

https://wiki.mageia.org/en/Updates_policy
Comment 26 Derek Jennings 2011-11-30 15:37:14 CET
courier-imap-4.9.3-1.mga1.src.rpm tested OK on x86_64

Tested login with courier-authdaemon, folder subscription, movement of mails between folders, reception of new mails, deletion, and imapd man page.

We now need a test on i586 on Mageia 1 and the package can be validated.

Thanks Barry
Derek Jennings 2011-11-30 15:38:48 CET

Assignee: bugsquad => qa-bugs

Comment 27 Dave Hodgins 2011-11-30 22:33:58 CET
I'll test on i586 shortly.

CC: (none) => davidwhodgins

Comment 28 Dave Hodgins 2011-11-30 23:15:55 CET
Testing complete on i586.
Tested using kmail to get existing mail messages, etc.

Could someone from the sysadmin team push the srpm
courier-imap-4.9.3-1.1.mga1.src.rpm
from Core Updates Testing to Core Updates

Advisory:  This update adds the courier-imap mail server that
was available in Mandriva 2010.2, but missing from Mageia 1.

https://bugs.mageia.org/show_bug.cgi?id=1974

Keywords: Backport => validated_update
CC: (none) => sysadmin-bugs

Comment 29 Thomas Backlund 2011-12-03 20:59:40 CET
Update pushed.

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

Comment 30 David Walser 2016-01-18 20:57:59 CET
Unfortunately this package has been unmaintained since it was imported on this request.  It will dropped from Cauldron soon (and not ship in Mageia 6) unless someone takes up maintainership and updates it.  Note that we don't need just a one time drive-by update, but someone to continue to maintain it going forward.  Thanks.

If anyone is interested, please send a message to Mageia's dev mailing list indicating your interest (please do not reply on this bug report).

Note You need to log in before you can comment on or make changes to this bug.