summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregorio Guidi <greg_g@gentoo.org>2005-12-05 16:46:04 +0000
committerGregorio Guidi <greg_g@gentoo.org>2005-12-05 16:46:04 +0000
commit682eed3c1504159c1c26178c3eae5949faaed33d (patch)
tree01dde89e5dc62b58d20a45ec030d4d66552c5e4e /kde-base/kdepim
parentMade warning notice about sys-apps/miscfiles conditional. (diff)
downloadgentoo-2-682eed3c1504159c1c26178c3eae5949faaed33d.tar.gz
gentoo-2-682eed3c1504159c1c26178c3eae5949faaed33d.tar.bz2
gentoo-2-682eed3c1504159c1c26178c3eae5949faaed33d.zip
Add patch to fix crash when using filters (#114118).
(Portage version: 2.0.51.22-r3)
Diffstat (limited to 'kde-base/kdepim')
-rw-r--r--kde-base/kdepim/ChangeLog8
-rw-r--r--kde-base/kdepim/files/digest-kdepim-3.5.0-r11
-rw-r--r--kde-base/kdepim/files/kdepim-3.5.0-filter-crash.patch75
-rw-r--r--kde-base/kdepim/kdepim-3.5.0-r1.ebuild29
4 files changed, 112 insertions, 1 deletions
diff --git a/kde-base/kdepim/ChangeLog b/kde-base/kdepim/ChangeLog
index db24d447b58f..2b47b1bbfd6b 100644
--- a/kde-base/kdepim/ChangeLog
+++ b/kde-base/kdepim/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for kde-base/kdepim
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim/ChangeLog,v 1.183 2005/11/27 17:37:44 gmsoft Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim/ChangeLog,v 1.184 2005/12/05 16:44:06 greg_g Exp $
+
+*kdepim-3.5.0-r1 (05 Dec 2005)
+
+ 05 Dec 2005; Gregorio Guidi <greg_g@gentoo.org>
+ +files/kdepim-3.5.0-filter-crash.patch, +kdepim-3.5.0-r1.ebuild:
+ Add patch to fix crash when using filters (#114118).
27 Nov 2005; Guy Martin <gmsoft@gentoo.org> kdepim-3.4.3.ebuild:
Stable on hppa.
diff --git a/kde-base/kdepim/files/digest-kdepim-3.5.0-r1 b/kde-base/kdepim/files/digest-kdepim-3.5.0-r1
new file mode 100644
index 000000000000..8cfd9db2e7e4
--- /dev/null
+++ b/kde-base/kdepim/files/digest-kdepim-3.5.0-r1
@@ -0,0 +1 @@
+MD5 e19a2a40e422ecd483884ce6e9ac8925 kdepim-3.5.0.tar.bz2 12865623
diff --git a/kde-base/kdepim/files/kdepim-3.5.0-filter-crash.patch b/kde-base/kdepim/files/kdepim-3.5.0-filter-crash.patch
new file mode 100644
index 000000000000..0120d7afc3a2
--- /dev/null
+++ b/kde-base/kdepim/files/kdepim-3.5.0-filter-crash.patch
@@ -0,0 +1,75 @@
+diff -Nur kdepim-3.5.0.orig/kmail/kmcommands.cpp kdepim-3.5.0/kmail/kmcommands.cpp
+--- kdepim-3.5.0.orig/kmail/kmcommands.cpp 2005-10-10 17:02:11.000000000 +0200
++++ kdepim-3.5.0/kmail/kmcommands.cpp 2005-12-05 15:16:02.000000000 +0100
+@@ -1496,30 +1496,30 @@
+
+ void KMMetaFilterActionCommand::start()
+ {
+-#if 0 // use action scheduler
+- KMFilterMgr::FilterSet set = KMFilterMgr::All;
+- QPtrList<KMFilter> filters;
+- filters.append( mFilter );
+- ActionScheduler *scheduler = new ActionScheduler( set, filters, mHeaders );
+- scheduler->setAlwaysMatch( true );
+- scheduler->setAutoDestruct( true );
+-
+- int contentX, contentY;
+- HeaderItem *nextItem = mHeaders->prepareMove( &contentX, &contentY );
+- QPtrList<KMMsgBase> msgList = *mHeaders->selectedMsgs(true);
+- mHeaders->finalizeMove( nextItem, contentX, contentY );
+-
+-
+- for (KMMsgBase *msg = msgList.first(); msg; msg = msgList.next())
+- scheduler->execFilters( msg );
+-#else
+- KMCommand *filterCommand = new KMFilterActionCommand( mMainWidget,
+- *mHeaders->selectedMsgs(), mFilter);
+- filterCommand->start();
+- int contentX, contentY;
+- HeaderItem *item = mHeaders->prepareMove( &contentX, &contentY );
+- mHeaders->finalizeMove( item, contentX, contentY );
+-#endif
++ if (ActionScheduler::isEnabled() ) {
++ // use action scheduler
++ KMFilterMgr::FilterSet set = KMFilterMgr::All;
++ QValueList<KMFilter*> filters;
++ filters.append( mFilter );
++ ActionScheduler *scheduler = new ActionScheduler( set, filters, mHeaders );
++ scheduler->setAlwaysMatch( true );
++ scheduler->setAutoDestruct( true );
++
++ int contentX, contentY;
++ HeaderItem *nextItem = mHeaders->prepareMove( &contentX, &contentY );
++ QPtrList<KMMsgBase> msgList = *mHeaders->selectedMsgs(true);
++ mHeaders->finalizeMove( nextItem, contentX, contentY );
++
++ for (KMMsgBase *msg = msgList.first(); msg; msg = msgList.next())
++ scheduler->execFilters( msg );
++ } else {
++ KMCommand *filterCommand = new KMFilterActionCommand( mMainWidget,
++ *mHeaders->selectedMsgs(), mFilter);
++ filterCommand->start();
++ int contentX, contentY;
++ HeaderItem *item = mHeaders->prepareMove( &contentX, &contentY );
++ mHeaders->finalizeMove( item, contentX, contentY );
++ }
+ }
+
+ FolderShortcutCommand::FolderShortcutCommand( KMMainWidget *mainwidget,
+diff -Nur kdepim-3.5.0.orig/kmail/kmkernel.cpp kdepim-3.5.0/kmail/kmkernel.cpp
+--- kdepim-3.5.0.orig/kmail/kmkernel.cpp 2005-11-08 23:33:29.000000000 +0100
++++ kdepim-3.5.0/kmail/kmkernel.cpp 2005-12-05 15:16:02.000000000 +0100
+@@ -1432,11 +1432,11 @@
+ the_msgIndex = 0;
+ #endif
+
+-#if 0
++//#if 0
+ the_weaver = new KPIM::ThreadWeaver::Weaver( this );
+ the_weaverLogger = new KPIM::ThreadWeaver::WeaverThreadLogger(this);
+ the_weaverLogger->attach (the_weaver);
+-#endif
++//#endif
+
+ connect( the_folderMgr, SIGNAL( folderRemoved(KMFolder*) ),
+ this, SIGNAL( folderRemoved(KMFolder*) ) );
diff --git a/kde-base/kdepim/kdepim-3.5.0-r1.ebuild b/kde-base/kdepim/kdepim-3.5.0-r1.ebuild
new file mode 100644
index 000000000000..50fdaff2871c
--- /dev/null
+++ b/kde-base/kdepim/kdepim-3.5.0-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim/kdepim-3.5.0-r1.ebuild,v 1.1 2005/12/05 16:44:06 greg_g Exp $
+
+inherit kde-dist
+
+DESCRIPTION="KDE PIM (Personal Information Management) apps: korganizer, kmail, knode..."
+
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86"
+IUSE="crypt gnokii pda"
+
+DEPEND="~kde-base/kdebase-${PV}
+ >=dev-libs/cyrus-sasl-2
+ pda? ( app-pda/pilot-link dev-libs/libmal )
+ gnokii? ( app-mobilephone/gnokii )
+ crypt? ( >=app-crypt/gpgme-0.9.0-r1 )"
+
+src_unpack() {
+ kde_src_unpack
+
+ # Fix crash when applying filters (kde bug 113730). applied for 3.5.1.
+ epatch "${FILESDIR}/${P}-filter-crash.patch"
+}
+
+src_compile() {
+ local myconf="--with-sasl $(use_with gnokii)"
+
+ kde_src_compile
+}