This bug is related to bug 72 and bug 15177. So sumarize, when one uses Courier-imap and wants to install PHP (with the USE keyword IMAP), he still has to install UW-imap. That quite confusing. Looking on the newsgroups, I found this post: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=97mgh5%24i2u%241%40FreeBSD.csie.NCTU.edu.tw It explains how to compile only the part of UW-imap required for PHP. If I understand well the use of virtual packages, I suggest then to have a virtual package imap-c-client and a package uw-imap-c-client. uw-imap-c-client will only provide the libc-client from uw-imap. Both uw-imap-c-client and the regular uw-imap package would satisfy imap-c-client. PHP would only require (if keyword IMAP is defined that is) imap-c-client.
will php compile with imap support against Courier-imap ?
From bug 72, PHP currently _requires_ UW for compiling. It doesn't work with Courier alone. The thing is that PHP doesn't require the full UW-Imap package, only a specific library (and I'm not even sure that it need UW at all at runtime, only a compilation time). That why I'm suggesting to have a package that is only a subset of UW, to have what is require for PHP without having a full IMAP package
This is correct. c-client is the library containing end app client functions. PHP does indeed require c-client. I agree that the IMAP USE keyword is misleading and in this case incorrect. A separate package should be created to to provide c-client functionality only.
I have written a c-client ebuild and modified the mod_php ebuild so that imap in mod_php uses c-client instead of uw-imap if USE="imap"
Created attachment 11379 [details, diff] mod_php-4.3.1-r2.ebuild patch to use c-client instead of uw-imap
Created attachment 11380 [details] ebuild for c-client
Comment on attachment 11380 [details] ebuild for c-client this ebuild also includes the patch from Ilya Volynets in bug 19442 for CLFAGS
Comment on attachment 11380 [details] ebuild for c-client this also includes the CFLAGS patch from Ilya Volynets in bug 19442
the ebuild for c-client also includes the CLFAGS patch from Ilya Volynets from bug 19442
ok, well now I know where the comments go :) opps
Created attachment 11381 [details, diff] Patch for Makefile to only build c-client library
bug link to ebuild for c-client
Just an update on this. Presently it looks like there will be a virtual, virtual/imap-c-client which will be provided by UW-Imap, VImap, and the c-client ebuild. Consider it a work in progress.
*** Bug 22334 has been marked as a duplicate of this bug. ***
It's been in CVS a file now, and works.
The only thing I noticed when checking this was that the php.eclass no longer has xml2 listed in its IUSE flags even though it tests it. I'll file a separate bug report about this unless someone just wants to tweak it and check it in.
Ok, i've fixed that IUSE=xml2 wayne.
Closing (very) old bug.