Hi.

I started looking at the courier ebuilds for Gentoo Linux. As I am not a 
developer and my build-process-knowledge is rather limited, I will have to 
ask stupid questions. Please be kind. ;-)
But as no one changed the courier ebuilds for years and the current stable 
version is 0.53.3 in Gentoo, I think it's time to do something.


Gentoo uses some patches to get courier-authlib to compile nowadays. One is to 
remove the (seemingly) very outdated and unsupported AC_PROG_SYSCONFTOOL 
Macro from configure.in. When googling for this macro, I only find people 
complaining about broken courier compiles, so this should be removed, IMHO.

http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/courier-authlib/files/0.59.2-remove-obsolete-macro.patch?view=markup


The second makes courier-authlib compile with DB version 4. I don't really 
understand what#s going on there 'cause I do not use DB with courier. but I 
think this looks helpful anyway:

http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/courier-authlib/files/0.59.2-configure-db4.patch?view=markup
(Includes the above!)

This patch is applied by gentoo only when GDBM is disabled. Perhaps this could 
be made generic to work with multiple DB versions.


The gentoo ebuild also alters authmigrate.in with the following sed calls:
  sed -i -e "s|^chk_file .* |&\${DESTDIR}|g" authmigrate.in
  sed -i -e'/for dir in/a@@INDENT@@/etc/courier-imap \\' authmigrate.in
  sed -i -e'/for dir in/a@@INDENT@@/etc/courier/authlib \\' authmigrate.in
  sed -i -e"s|@@INDENT@@|     |g" authmigrate.in
  sed -i -e"s|\$sbindir/makeuserdb||g" authmigrate.in

This is rather undocumented in the ebuild file so I don't know what's going on 
there or what's the reason for this. These changes are made unconditionally.


At last, when only trying to configure courier-authlib, I get this:

| checking for correct ltmain.sh version... no
| configure: error:
|
| *** [Gentoo] sanity check failed! ***
| *** libtool.m4 and ltmain.sh have a version mismatch! ***
| *** (libtool.m4 = 1.5.26, ltmain.sh = 1.5.22) ***
|
| Please run:
|
|   libtoolize --copy --force
|
| if appropriate, please contact the maintainer of this
| package (or your distribution) for help.

the gentoo-solution is to completely re-run all these voodoo-tools (autoconf, 
automake, libtool) that consume more time than the compile itself.

As always: I don't know the internals and don't know if this could be easily 
fixed. :)

regards, 
Bernd

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to