FS#38182 - [imap] Add gss authenticator and libc-client.so

Attached to Project: Arch Linux
Opened by Massimiliano Torromeo (mtorromeo) - Wednesday, 18 December 2013, 12:22 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 31 May 2015, 15:02 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
The imap package currently only includes libc-client.a and is missing the shared object libc-client.so.

This seems an issue with the unix Makefile since gentoo applies a patch to build it.

Also it would be nice to have the gss authenticator built into it.

Both this issues need to be fixed to be able to build hhvm [1]

I have a pkgbuild ready for hhvm [2] and a fixed version (with some cleanups) of the imap pkgbuild [3] on my github.

On an additional note, it would probably be wise to split the pkgbuild into imap and c-client so that the dependency for hhvm can be satisfied by c-client without incurring in the courier-mta and courier-imap conflicts of imap.

[1] http://www.hhvm.com/
[2] https://github.com/mtorromeo/archlinux-packages/tree/master/hhvm
[3] https://github.com/mtorromeo/archlinux-packages/tree/master/imap

Additional info:
* imap

Steps to reproduce:
Install imap and check for the existance of /usr/lib/libc-client.so

Also to be usable with hhvm libc-client.so needs to be linked with libpam and libgssapi_krb5:

ldd /usr/lib/libc-client.so
linux-vdso.so.1 (0x00007fffb8e81000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00007f566712a000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00007f5666e4c000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00007f5666c17000)
libcom_err.so.2 => /usr/lib/libcom_err.so.2 (0x00007f5666a12000)
libpam.so.0 => /usr/lib/libpam.so.0 (0x00007f5666804000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f566645a000)
libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00007f566624c000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f5666048000)
libkeyutils.so.1 => /usr/lib/libkeyutils.so.1 (0x00007f5665e44000)
libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007f5665c2c000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f5665a0f000)
/usr/lib64/ld-linux-x86-64.so.2 (0x00007f56676c0000)
This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 31 May 2015, 15:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  imap 2007f-5
Comment by Doug Newgard (Scimmia) - Wednesday, 13 May 2015, 16:24 GMT
Ping Pierre, need some kind of response here.
Comment by Pierre Schmitz (Pierre) - Friday, 15 May 2015, 10:13 GMT
Hey, I commited an updated PKGBUILD to trunk. Sadly upstream seems to be dead and packaging imap is a mess. Let me know if this version would be useful.

Is a split package for c-client of any use? E.g. for PHP this is just a build dependency anyway.
Comment by Massimiliano Torromeo (mtorromeo) - Friday, 15 May 2015, 12:59 GMT
Hi Pierre, thanks for the fix.
With this I can link to libc-client.so which makes this a runtime dependency (unlike php) and this would in turn bring in a conflict with courier-imap and courier-mta which is avoidable by splitting c-client from imap since there is no need for the imapd/ipop2d/ipop3d binaries.
Comment by Felix Yan (felixonmars) - Wednesday, 20 May 2015, 10:28 GMT
Just FYI: I've made php53-imap linking to the new c-client shared lib by specifying shared imap/imap-ssl configure options and export IMAP_SHARED_LIBADD="-lssl" to workaround the linking issue. Many thanks for the new package!
Comment by Massimiliano Torromeo (mtorromeo) - Wednesday, 20 May 2015, 12:18 GMT
I just built hhvm against c-client and it worked perfectly, thanks!

Loading...