diff options
author | Samuli Suominen <drac@gentoo.org> | 2008-02-25 15:06:10 +0000 |
---|---|---|
committer | Samuli Suominen <drac@gentoo.org> | 2008-02-25 15:06:10 +0000 |
commit | 232d2bae3432bdb0317d90018f78203eca59a167 (patch) | |
tree | 628e9a3259a65b2f74056f8e448cee31360489aa /xfce-base/xfdesktop | |
parent | Stable for HPPA (bug #210902). (diff) | |
download | gentoo-2-232d2bae3432bdb0317d90018f78203eca59a167.tar.gz gentoo-2-232d2bae3432bdb0317d90018f78203eca59a167.tar.bz2 gentoo-2-232d2bae3432bdb0317d90018f78203eca59a167.zip |
Fix memory leak as described in upstream bug #3812, comment #8.
(Portage version: 2.1.4.4)
Diffstat (limited to 'xfce-base/xfdesktop')
-rw-r--r-- | xfce-base/xfdesktop/ChangeLog | 10 | ||||
-rw-r--r-- | xfce-base/xfdesktop/files/xfdesktop-4.4.2-memory-leak.patch | 11 | ||||
-rw-r--r-- | xfce-base/xfdesktop/xfdesktop-4.4.2-r1.ebuild | 74 |
3 files changed, 93 insertions, 2 deletions
diff --git a/xfce-base/xfdesktop/ChangeLog b/xfce-base/xfdesktop/ChangeLog index 299d40bc24d9..b280c41e3089 100644 --- a/xfce-base/xfdesktop/ChangeLog +++ b/xfce-base/xfdesktop/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for xfce-base/xfdesktop -# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/xfce-base/xfdesktop/ChangeLog,v 1.118 2007/12/17 18:39:05 jer Exp $ +# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/xfce-base/xfdesktop/ChangeLog,v 1.119 2008/02/25 15:06:10 drac Exp $ + +*xfdesktop-4.4.2-r1 (25 Feb 2008) + + 25 Feb 2008; Samuli Suominen <drac@gentoo.org> + +files/xfdesktop-4.4.2-memory-leak.patch, +xfdesktop-4.4.2-r1.ebuild: + Fix memory leak as described in upstream bug #3812, comment #8. 17 Dec 2007; Jeroen Roovers <jer@gentoo.org> xfdesktop-4.4.2.ebuild: Stable for HPPA (bug #201747). diff --git a/xfce-base/xfdesktop/files/xfdesktop-4.4.2-memory-leak.patch b/xfce-base/xfdesktop/files/xfdesktop-4.4.2-memory-leak.patch new file mode 100644 index 000000000000..4b7ac36966cc --- /dev/null +++ b/xfce-base/xfdesktop/files/xfdesktop-4.4.2-memory-leak.patch @@ -0,0 +1,11 @@ +diff -ur xfdesktop-4.4.2.orig/modules/menu/desktop-menu-dentry.c xfdesktop-4.4.2/modules/menu/desktop-menu-dentry.c +--- xfdesktop-4.4.2.orig/modules/menu/desktop-menu-dentry.c 2007-11-17 21:31:43.000000000 +0200 ++++ xfdesktop-4.4.2/modules/menu/desktop-menu-dentry.c 2008-02-25 17:00:37.000000000 +0200 +@@ -173,6 +173,7 @@ + if(cmpname && g_ascii_strcasecmp(name, cmpname) < 0) + break; + } ++ g_list_free(items); + + gtk_menu_shell_insert(menu_shell, mi, i); + diff --git a/xfce-base/xfdesktop/xfdesktop-4.4.2-r1.ebuild b/xfce-base/xfdesktop/xfdesktop-4.4.2-r1.ebuild new file mode 100644 index 000000000000..0f32f178145a --- /dev/null +++ b/xfce-base/xfdesktop/xfdesktop-4.4.2-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/xfce-base/xfdesktop/xfdesktop-4.4.2-r1.ebuild,v 1.1 2008/02/25 15:06:10 drac Exp $ + +EAPI=1 + +inherit eutils xfce44 + +XFCE_VERSION=4.4.2 +xfce44 +xfce44_core_package + +DESCRIPTION="Desktop manager" +HOMEPAGE="http://www.xfce.org/projects/xfdesktop" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="debug doc +file-icons +menu-plugin" + +LANG="be ca cs da de el es et eu fi fr he hu it ja ko nb_NO nl pa pl pt_BR ro ru sk sv tr uk vi zh_CN zh_TW" + +RDEPEND="x11-libs/libX11 + x11-libs/libSM + >=dev-libs/glib-2.6 + >=x11-libs/gtk+-2.6 + gnome-base/librsvg + >=xfce-base/libxfce4mcs-${XFCE_MASTER_VERSION} + >=xfce-base/libxfce4util-${XFCE_MASTER_VERSION} + >=xfce-base/libxfcegui4-${XFCE_MASTER_VERSION} + >=xfce-base/xfce-mcs-manager-${XFCE_MASTER_VERSION} + file-icons? ( >=xfce-base/thunar-${THUNAR_MASTER_VERSION} + >=xfce-extra/exo-0.3.2 dev-libs/dbus-glib ) + menu-plugin? ( >=xfce-base/xfce4-panel-${XFCE_MASTER_VERSION} )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + dev-util/intltool" + +for X in ${LANG}; do + IUSE="${IUSE} linguas_${X}" +done + +DOCS="AUTHORS ChangeLog NEWS TODO README" + +XFCE_LOCALIZED_CONFIGS="/etc/xdg/xfce4/desktop/xfce-registered-categories.xml + /etc/xdg/xfce4/desktop/menu.xml" + +pkg_setup() { + XFCE_CONFIG+=" $(use_enable doc xsltproc) $(use_enable menu-plugin panel-plugin)" + + if use file-icons; then + XFCE_CONFIG+=" --enable-thunarx --enable-file-icons --enable-exo" + else + XFCE_CONFIG+=" --disable-thunarx --disable-file-icons --disable-exo" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + echo src/xfdesktop-clipboard-manager.c >> po/POTFILES.skip + epatch "${FILESDIR}"/${P}-memory-leak.patch +} + +src_install() { + xfce44_src_install + + local config lang + for config in ${XFCE_LOCALIZED_CONFIGS}; do + for lang in ${LANG}; do + local localized_config="${D}/${config}.${lang}" + if [[ -f ${localized_config} ]]; then + use "linguas_${lang}" || rm ${localized_config} + fi + done + done +} |