1 message in net.sourceforge.lists.courier-users[courier-users] courier.spec patch to...
FromSent OnAttachments
Lloyd ZusmanJun 26, 2005 5:17 am 
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] courier.spec patch to speed up the rpmbuildActions...
From:Lloyd Zusman (lj@asfast.com)
Date:Jun 26, 2005 5:17:45 am
List:net.sourceforge.lists.courier-users

I have made the following change to the "courier.spec" file in order to speed up the "rpmbuild". It tells "configure" to use a cache file, and it deletes the previous cache file before each build.

On my machine, this patch speeds up the "configure" steps of the build by a factor of 2.0-2.5.

This cache file name is passed from the command line of the topmost "configure" run to the invocations of "configure" for each subsidiary module. Because it's important that all of these subsidiary "configure" runs use the same cache file, I specify it under an explicit directory like $HOME instead of using a relative path name. This can be changed to a different directory, as long as it's not a relative path name.

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