diff options
| author | Elias Probst <mail@eliasprobst.eu> | 2011-07-31 21:46:20 +0200 |
|---|---|---|
| committer | Elias Probst <mail@eliasprobst.eu> | 2011-07-31 21:46:20 +0200 |
| commit | e46bfcf4f3372392777d08adf9a7e32e392a7655 (patch) | |
| tree | 2f29e947634335d741c4db058e8b9173915f8664 | |
| parent | f9eba2a3527e25d47ef645cc65b2f45bf055eefd (diff) | |
| download | kde-e46bfcf4f3372392777d08adf9a7e32e392a7655.tar.gz kde-e46bfcf4f3372392777d08adf9a7e32e392a7655.tar.bz2 kde-e46bfcf4f3372392777d08adf9a7e32e392a7655.zip | |
[kde-base/kdeplasma-addons-4.7.0-r1] Added patch to prevent crashes of plasma-desktop on startup when using grid layout (see KDE Bug#278222).
3 files changed, 145 insertions, 0 deletions
diff --git a/kde-base/kdeplasma-addons/Manifest b/kde-base/kdeplasma-addons/Manifest index c3b1d32fc84..fb826387f28 100644 --- a/kde-base/kdeplasma-addons/Manifest +++ b/kde-base/kdeplasma-addons/Manifest @@ -1,4 +1,7 @@ AUX kdeplasma-addons-4.6.2-optional-akonadi.patch 1982 RMD160 3f6c7e4356369d1b59bd8c57d91afc4b655ce18c SHA1 01505b07c9fc41628cfcb881364367cab6b3d17a SHA256 c62b36eccb02517561d5ae88e50fbe3029c37b65b1075c1f94ab7d6bb0fd51c9 +AUX kdeplasma-addons-4.7.0-groupingdesktop-crash.patch 2222 RMD160 425ff4feb3a52d21ba995b87b7cf66e2b950a8e1 SHA1 18163a4349017376d42151899b36687e97db7fd9 SHA256 45ab4c980c63161df6d13391c5293c0e83ea87e21a139fb97eb4821c9243f572 +DIST kdeplasma-addons-4.7.0.tar.bz2 1965798 RMD160 ef84ddabc59475aa9350517fb1075cea2ac6b859 SHA1 7a153131b84156ab33707c2ee21ffcf7021e099a SHA256 d22b41f7892d7f2dd3dca4ca5dc9c895845a79ea4fc3acf645e0a7ada8b127ae +EBUILD kdeplasma-addons-4.7.0-r1.ebuild 2146 RMD160 8fa40a80651108ac342072e12e590b26282b6e8d SHA1 a00f0bdd5a8eff77f0ca9adc1eed69246b86acf9 SHA256 f6799810cb951a839cde967fde30e3a723039cacbc0db781ec67ad91bcfa466e EBUILD kdeplasma-addons-4.7.49.9999.ebuild 1856 RMD160 0db79e24565e3c14f5d9250c4317c74a153c516b SHA1 fb632595e558a2f6fd1cd65c180225ade9182930 SHA256 958e36f839b3d3fd9dab90a4a5e69da3069aec5147f6cb6d73dc3d80d34b105a EBUILD kdeplasma-addons-9999.ebuild 1856 RMD160 0db79e24565e3c14f5d9250c4317c74a153c516b SHA1 fb632595e558a2f6fd1cd65c180225ade9182930 SHA256 958e36f839b3d3fd9dab90a4a5e69da3069aec5147f6cb6d73dc3d80d34b105a MISC metadata.xml 590 RMD160 348b8b1bc247366b339794cc2aec564b2226e067 SHA1 677e55796be545f56fc4b7351268fb7aff49aaa9 SHA256 f1b43f2d7869ec912de095ae4cac3d50bcd7cd8295d73f65e57e0ff7d8ca9ea6 diff --git a/kde-base/kdeplasma-addons/files/kdeplasma-addons-4.7.0-groupingdesktop-crash.patch b/kde-base/kdeplasma-addons/files/kdeplasma-addons-4.7.0-groupingdesktop-crash.patch new file mode 100644 index 00000000000..587295afc89 --- /dev/null +++ b/kde-base/kdeplasma-addons/files/kdeplasma-addons-4.7.0-groupingdesktop-crash.patch @@ -0,0 +1,69 @@ +commit 67b5c56e564f5052238bab38342a85e5f4af570b +Author: Christoph Feck <christoph@maxiom.de> +Date: Sat Jul 30 19:15:28 2011 +0200 + + Fix assignment operator and add copy constructor + + This fixes the crash in Grid Desktop and Grouping Desktop. + Thanks to Aaron Seigo for investigation and patch review. + + BUG: 278222 + FIXED-IN: 4.7.1 + +diff --git a/containments/groupingdesktop/lib/groupinfo.cpp b/containments/groupingdesktop/lib/groupinfo.cpp +index 2106cca..c945551 100644 +--- a/containments/groupingdesktop/lib/groupinfo.cpp ++++ b/containments/groupingdesktop/lib/groupinfo.cpp +@@ -43,6 +43,12 @@ GroupInfo::GroupInfo(const QString &name, const QString &prettyName) + d->prettyName = prettyName; + } + ++GroupInfo::GroupInfo(const GroupInfo &other) ++ : d(new GroupInfoPrivate()) ++{ ++ *d = *other.d; ++} ++ + GroupInfo::~GroupInfo() + { + delete d; +@@ -78,13 +84,12 @@ QString GroupInfo::icon() const + return d->icon; + } + +-GroupInfo GroupInfo::operator=(const GroupInfo &gi) ++GroupInfo &GroupInfo::operator=(const GroupInfo &gi) + { +- GroupInfo g(gi.name(), gi.prettyName()); +- g.setFormFactors(gi.formFactors()); +- g.setIcon(gi.icon()); +- +- return g; ++ if (this != &gi) { ++ *d = *gi.d; ++ } ++ return *this; + } + + bool GroupInfo::operator==(const GroupInfo &gi) const +diff --git a/containments/groupingdesktop/lib/groupinfo.h b/containments/groupingdesktop/lib/groupinfo.h +index f8cc66f..320c800 100644 +--- a/containments/groupingdesktop/lib/groupinfo.h ++++ b/containments/groupingdesktop/lib/groupinfo.h +@@ -31,6 +31,7 @@ class GroupInfo + { + public: + explicit GroupInfo(const QString &name, const QString &prettyName = QString()); ++ GroupInfo(const GroupInfo &other); + ~GroupInfo(); + void setFormFactors(QSet<Plasma::FormFactor> formFactors); + void setIcon(const QString &icon); +@@ -40,7 +41,7 @@ class GroupInfo + QSet<Plasma::FormFactor> formFactors() const; + QString icon() const; + +- GroupInfo operator=(const GroupInfo &gi); ++ GroupInfo &operator=(const GroupInfo &gi); + bool operator==(const GroupInfo &gi) const; + bool operator<(const GroupInfo &gi) const; + diff --git a/kde-base/kdeplasma-addons/kdeplasma-addons-4.7.0-r1.ebuild b/kde-base/kdeplasma-addons/kdeplasma-addons-4.7.0-r1.ebuild new file mode 100644 index 00000000000..5e3b86248fc --- /dev/null +++ b/kde-base/kdeplasma-addons/kdeplasma-addons-4.7.0-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdeplasma-addons/kdeplasma-addons-4.7.0.ebuild,v 1.1 2011/07/27 14:04:49 alexxy Exp $ + +EAPI=4 + +KDE_SCM="git" +inherit kde4-base + +DESCRIPTION="Extra Plasma applets and engines." +HOMEPAGE="http://www.kde.org/" +LICENSE="GPL-2 LGPL-2" + +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="attica debug desktopglobe exif qalculate qwt scim semantic-desktop" + +# krunner is only needed to generate dbus interface for lancelot +COMMON_DEPEND=" + app-crypt/qca:2 + app-crypt/qca-ossl:2 + $(add_kdebase_dep kdelibs 'semantic-desktop=') + $(add_kdebase_dep krunner) + $(add_kdebase_dep plasma-workspace 'semantic-desktop=') + x11-misc/shared-mime-info + attica? ( dev-libs/libattica ) + desktopglobe? ( $(add_kdebase_dep marble) ) + exif? ( $(add_kdebase_dep libkexiv2) ) + qalculate? ( sci-libs/libqalculate ) + qwt? ( x11-libs/qwt:5 ) + scim? ( app-i18n/scim ) + semantic-desktop? ( + $(add_kdebase_dep kdepimlibs 'semantic-desktop') + $(add_kdebase_dep plasma-workspace 'rss') + ) +" +DEPEND="${COMMON_DEPEND} + dev-cpp/eigen:2 +" +# kde-misc/plasmaboard: moved here in 4.3.65 +# kde-misc/qalculate-applet: since 4.4.0 +RDEPEND="${COMMON_DEPEND} + !kde-misc/plasmaboard + !kde-misc/qalculate-applet +" + +PATCHES=( + # needed for 4.7.0, can be removed in 4.7.1, see KDE Bug#278222 + "${FILESDIR}/${P}-groupingdesktop-crash.patch" +) + +# kdebase-data: some svg icons moved from data directly here. +add_blocker kdebase-data '<4.2.88' + +src_prepare() { + use semantic-desktop || epatch "${FILESDIR}/${PN}-4.6.2-optional-akonadi.patch" + kde4-base_src_prepare +} + +src_configure() { + mycmakeargs=( + -DDBUS_INTERFACES_INSTALL_DIR="${EPREFIX}/usr/share/dbus-1/interfaces/" + $(cmake-utils_use_with attica LibAttica) + $(cmake-utils_use_with desktopglobe Marble) + $(cmake-utils_use_with exif Kexiv2) + $(cmake-utils_use_with qalculate) + $(cmake-utils_use_with qwt) + $(cmake-utils_use_with semantic-desktop KdepimLibs) + $(cmake-utils_use_with semantic-desktop Nepomuk) + $(cmake-utils_use_with scim) + ) + + kde4-base_src_configure +} |
