Around three months ago, I submitted a patch which greatly speeds up the
RPM build.  It changes the courier.spec file to cause an empty cache
file to be created before each build, and it passes the appropriate
parameter to "configure" so that all of its subsidiary "configure" steps
will use the configuration information that gets cache in that
directory.

This causes the build to run 2.0-2.5 times faster on my linux box.

The cache file gets deleted and recreated before each build, thereby
eliminating the danger of inappropriate build information from earlier
builds being used.

This patch very simple, and it brings about a dramatic improvement in
build speed.  I'm resubmitting it now, because no one responded to my
earlier message about it, and it doesn't appear to have been applied
to any of the subsequent courier builds.

Actually, a patch like this should probably also be applied to
courier.spec.in.  I haven't tried that, however.

A corresponding patch will also be helpful in the authlib build.

*** courier.spec.orig   Sat Jun 25 23:41:02 2005
--- courier.spec        Sun Jun 26 07:42:17 2005
***************
*** 294,299 ****
  %define xflags --enable-unicode=iso-8859-1,utf-8
  %endif
! 
! %configure %{?xflags: %{xflags}}

  %{__cat} >README.REDHAT <<EOF
--- 294,300 ----
  %define xflags --enable-unicode=iso-8859-1,utf-8
  %endif
! %define _cache $HOME/.courier-configure-cache
! %{__rm} -f %{_cache}
! %configure %{?xflags: %{xflags}} --cache-file=%{_cache}

  %{__cat} >README.REDHAT <<EOF




-- 
 Lloyd Zusman
 [EMAIL PROTECTED]
 God bless you.



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to