[arch-commits] Commit in kdepimlibs/trunk (PKGBUILD contactsearch-speed-fix.diff)

Andrea Scarpino andrea at archlinux.org
Fri Jul 30 13:25:46 EDT 2010


    Date: Friday, July 30, 2010 @ 13:25:45
  Author: andrea
Revision: 86365

fix bad regression in KMail

Added:
  kdepimlibs/trunk/contactsearch-speed-fix.diff
Modified:
  kdepimlibs/trunk/PKGBUILD

------------------------------+
 PKGBUILD                     |   12 +++++++++---
 contactsearch-speed-fix.diff |   13 +++++++++++++
 2 files changed, 22 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-07-30 17:11:29 UTC (rev 86364)
+++ PKGBUILD	2010-07-30 17:25:45 UTC (rev 86365)
@@ -12,11 +12,17 @@
 depends=('kdelibs' 'akonadi' 'libical' 'gpgme')
 makedepends=('pkgconfig' 'cmake' 'automoc4' 'boost' 'cyrus-sasl' 'openldap' 'docbook-xsl')
 install='kdepimlibs.install'
-source=("http://download.kde.org/stable/${pkgver}/src/${pkgname}-${pkgver}.tar.bz2")
-sha1sums=('b49afbdad6a906b9e2affdf8a77d4bf312677b69')
+source=("http://download.kde.org/stable/${pkgver}/src/${pkgname}-${pkgver}.tar.bz2"
+	'contactsearch-speed-fix.diff')
+sha1sums=('b49afbdad6a906b9e2affdf8a77d4bf312677b69'
+	'')
 
 build() {
-	cd $srcdir
+	# Already fixed in 4.5.1
+	cd ${srcdir}/${pkgname}-${pkgver}
+	patch -Np0 -i ${srcdir}/contactsearch-speed-fix.diff
+
+	cd ${srcdir}
 	mkdir build
 	cd build
 	cmake ../${pkgname}-${pkgver} \

Added: contactsearch-speed-fix.diff
===================================================================
--- contactsearch-speed-fix.diff	                        (rev 0)
+++ contactsearch-speed-fix.diff	2010-07-30 17:25:45 UTC (rev 86365)
@@ -0,0 +1,13 @@
+Index: akonadi/contact/contactsearchjob.cpp
+===================================================================
+--- akonadi/contact/contactsearchjob.cpp	(revision 1156790)
++++ akonadi/contact/contactsearchjob.cpp	(revision 1156791)
+@@ -50,7 +50,7 @@
+ 
+ void ContactSearchJob::setQuery( Criterion criterion, const QString &value )
+ {
+-  setQuery( criterion, value, ContainsMatch );
++  setQuery( criterion, value, ExactMatch );
+ }
+ 
+ void ContactSearchJob::setQuery( Criterion criterion, const QString &value, Match match )



More information about the arch-commits mailing list