9 messages in net.sourceforge.lists.courier-users[courier-users] Patch to speed up cou...
FromSent OnAttachments
Sam VarshavchikSep 23, 2005 7:58 pm 
Lloyd ZusmanSep 24, 2005 5:33 pm 
Lloyd ZusmanSep 24, 2005 5:40 pm 
Sam VarshavchikSep 24, 2005 6:19 pm 
Sam VarshavchikSep 24, 2005 6:21 pm 
Lloyd ZusmanSep 24, 2005 6:56 pm 
Lloyd ZusmanSep 24, 2005 7:02 pm 
Sam VarshavchikSep 25, 2005 7:10 am 
Thomas von HasselSep 25, 2005 2:17 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Patch to speed up courier build from rpmActions...
From:Lloyd Zusman (lj@asfast.com)
Date:Sep 24, 2005 5:40:49 pm
List:net.sourceforge.lists.courier-users

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