diff options
author | 2011-01-12 10:15:14 +0000 | |
---|---|---|
committer | 2011-01-12 10:15:14 +0000 | |
commit | b82df7de36fdba60365f8e15b6d9336d03fa78ae (patch) | |
tree | 8d35c5ad299542f035dbb2ce80c8364eaffe7a33 /app-text/gtranslator | |
parent | aix lacks FNMATCH_CASEFOLD (diff) | |
download | historical-b82df7de36fdba60365f8e15b6d9336d03fa78ae.tar.gz historical-b82df7de36fdba60365f8e15b6d9336d03fa78ae.tar.bz2 historical-b82df7de36fdba60365f8e15b6d9336d03fa78ae.zip |
Fix sandbox violation due to unneeded call to update-desktop-database, bug #318797.
Package-Manager: portage-2.2.0_alpha13/cvs/Linux x86_64
Diffstat (limited to 'app-text/gtranslator')
-rw-r--r-- | app-text/gtranslator/ChangeLog | 10 | ||||
-rw-r--r-- | app-text/gtranslator/Manifest | 13 | ||||
-rw-r--r-- | app-text/gtranslator/files/gtranslator-1.9.13-desktop-database.patch | 53 | ||||
-rw-r--r-- | app-text/gtranslator/gtranslator-1.9.11.ebuild | 62 | ||||
-rw-r--r-- | app-text/gtranslator/gtranslator-1.9.13.ebuild | 17 |
5 files changed, 81 insertions, 74 deletions
diff --git a/app-text/gtranslator/ChangeLog b/app-text/gtranslator/ChangeLog index 664f3678d495..93cac8d224d8 100644 --- a/app-text/gtranslator/ChangeLog +++ b/app-text/gtranslator/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-text/gtranslator -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/gtranslator/ChangeLog,v 1.38 2010/12/17 22:57:01 eva Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/gtranslator/ChangeLog,v 1.39 2011/01/12 10:15:14 eva Exp $ + + 12 Jan 2011; Gilles Dartiguelongue <eva@gentoo.org> + -gtranslator-1.9.11.ebuild, gtranslator-1.9.13.ebuild, + +files/gtranslator-1.9.13-desktop-database.patch: + Fix sandbox violation due to unneeded call to update-desktop-database, bug + #318797. 17 Dec 2010; Gilles Dartiguelongue <eva@gentoo.org> gtranslator-1.9.13.ebuild: diff --git a/app-text/gtranslator/Manifest b/app-text/gtranslator/Manifest index 4071aaf2c821..5e907a0553af 100644 --- a/app-text/gtranslator/Manifest +++ b/app-text/gtranslator/Manifest @@ -1,16 +1,15 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -DIST gtranslator-1.9.11.tar.bz2 4349138 RMD160 a780a81f4627d545c1c90e1f8f5cf079156f82b1 SHA1 71cae0161d572e12c161b8c07eb19cbb7dc1da13 SHA256 e87e95bccc69fac2e14468dd191df822bbe3bc6a384c8ea4d00165b807d34504 +AUX gtranslator-1.9.13-desktop-database.patch 1375 RMD160 043e1a45cf81482fd43fd8bef8642a07126ce715 SHA1 5f87d5f426ca26f4f1d5382fcd963ef08c8ecb04 SHA256 703c1308d8afc1d79c10039c33705b5b241ca5ae377f88e9331f4f9f38d65cc3 DIST gtranslator-1.9.13.tar.bz2 4655865 RMD160 aa98aff79d5f7148310776fa4d699547e1241ab0 SHA1 b8a7927452b8a5c02c491fc1191ea0e7a60a42ce SHA256 c0b371b81630cf2e4efb6968c20f7580c62c34d9161c852a5d008622cd91408e -EBUILD gtranslator-1.9.11.ebuild 1475 RMD160 0989b51965a0f47a376fd478d9045213bb64f3a6 SHA1 e63d9ef2028da9e37956bec5ded5ed427752087d SHA256 ea71859bf6045a3a9809a22f62eed830ddda274865c55d51ce9bc1be76dcf769 -EBUILD gtranslator-1.9.13.ebuild 1489 RMD160 565d7d485ada12e2e81826c529a7d0a6a5c3c3c5 SHA1 3c6ae56bbb527defebf4c1f70e60cc260a6143c6 SHA256 3e0b2b2552b8174deba01ac320255ddddf2dfe3efb834db9db25180dcf023112 -MISC ChangeLog 4952 RMD160 1bb449ad80ac41836f55cfa6e5c4b64c3f6ca853 SHA1 c35b2db13dca49df3b2636a073f2957969227fc8 SHA256 ed40296b548937aa7458408acf3c20dcf64c5e7e858829a60bdc7d74c39ab1e8 +EBUILD gtranslator-1.9.13.ebuild 1788 RMD160 06401302dd836acfed437558b5397d56d56a57f3 SHA1 69b73aaa9c7825bb1f474106da3ab3cd53713ca1 SHA256 6c863ff6e6b4b435b4ce4e7782d1cc5482a9097b8a668b2e25d936ae3a5cf420 +MISC ChangeLog 5204 RMD160 3f5a86075f2b84727ff7ce1429b2a3c3deffddb1 SHA1 272aec80d3ceab356676df74d5e43b06b6202160 SHA256 c8d46758774b41291672f180b1e8ad8a1555f049b5387bea02c4765a7af5573c MISC metadata.xml 276 RMD160 23ac7cf8852c854a0b77e4395bf7474372ea2b32 SHA1 721905200eb3702b3c7f029a626f5fd37c2212f4 SHA256 ca0f4d21839ee08ead7762f87786e0862800abc51eb3de256d2b265d355f2661 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) -iEYEARECAAYFAk0L6sMACgkQ1fmVwcYIWAY3YQCeKCx704GwH9EC+BTM4hE4h++J -czIAoMOes5+QJz5Ig4cv/e/HuBfom+XA -=BKe0 +iEYEARECAAYFAk0tfz0ACgkQ1fmVwcYIWAZCaACgoZ/ARrYem63NoaPBlonl16O7 +NGEAn2ttKswklikzjloJnMlcU3+DqCLR +=JFlO -----END PGP SIGNATURE----- diff --git a/app-text/gtranslator/files/gtranslator-1.9.13-desktop-database.patch b/app-text/gtranslator/files/gtranslator-1.9.13-desktop-database.patch new file mode 100644 index 000000000000..644a2b664e66 --- /dev/null +++ b/app-text/gtranslator/files/gtranslator-1.9.13-desktop-database.patch @@ -0,0 +1,53 @@ +From e4ecdf31c9f53ea95fe803b5d25a892c5e72279d Mon Sep 17 00:00:00 2001 +From: Ignacio Casal Quinteiro <icq@gnome.org> +Date: Sat, 06 Nov 2010 11:36:18 +0000 +Subject: Remove call to update-desktop-database. Fixes bug #628726. + +--- +diff --git a/data/desktop/Makefile.am b/data/desktop/Makefile.am +index 313cb9f..3812f9a 100644 +--- a/data/desktop/Makefile.am ++++ b/data/desktop/Makefile.am +@@ -1,34 +1,14 @@ + SUBDIRS = icons + +-## +-## the dirs where all the DATA should go .. +-## +-Applicationdir = $(datadir)/applications +- +-## +-## and the DATA +-## +-Application_predata = gtranslator.desktop.in +-Application_DATA = $(Application_predata:.desktop.in=.desktop) +- ++desktopdir = $(datadir)/applications ++desktop_in_files = gtranslator.desktop.in ++desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) + @INTLTOOL_DESKTOP_RULE@ + +-EXTRA_DIST = $(Application_DATA) \ +- $(Applicationicon_DATA) \ +- $(Application_predata) +- +-CLEANFILES = $(Application_DATA) ++EXTRA_DIST = $(desktop_in_files) + +-UPDATE_DESKTOP = \ +- if [ -f $(Applicationdir)/defaults.list ] ; then \ +- if which update-desktop-database>/dev/null 2>&1 ; then \ +- update-desktop-database $(Applicationdir); \ +- fi \ +- fi ++CLEANFILES = $(desktop_DATA) + +-install-data-hook: +- $(UPDATE_DESKTOP) ++DISTCLEANFILES = $(desktop_DATA) + +-uninstall-hook: +- $(UPDATE_DESKTOP) + -include $(top_srcdir)/git.mk +-- +cgit v0.8.3.1 diff --git a/app-text/gtranslator/gtranslator-1.9.11.ebuild b/app-text/gtranslator/gtranslator-1.9.11.ebuild deleted file mode 100644 index 42c4c5230c29..000000000000 --- a/app-text/gtranslator/gtranslator-1.9.11.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/gtranslator/gtranslator-1.9.11.ebuild,v 1.1 2010/05/14 20:10:23 eva Exp $ - -EAPI="3" -GCONF_DEBUG="no" - -inherit gnome2 - -DESCRIPTION="An enhanced gettext po file editor for GNOME" -HOMEPAGE="http://gtranslator.sourceforge.net/" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" -IUSE="doc http gnome spell" - -RDEPEND=" - >=dev-libs/glib-2.16:2 - >=dev-libs/gdl-2.26 - >=dev-libs/libunique-1 - >=dev-libs/libxml2-2.4.12 - >=gnome-base/gconf-2.18 - gnome-extra/libgda:4 - >=x11-libs/gtk+-2.18:2 - >=x11-libs/gtksourceview-2.4:2.0 - - gnome? ( - gnome-extra/gnome-utils - >=gnome-extra/gucharmap-2 ) - http? ( >=net-libs/libsoup-2.4:2.4 ) - spell? ( >=app-text/gtkspell-2.0.2 )" -DEPEND="${RDEPEND} - >=app-text/scrollkeeper-0.1.4 - >=dev-util/intltool-0.40 - >=sys-devel/gettext-0.17 - dev-util/pkgconfig - app-text/gnome-doc-utils - app-text/docbook-xml-dtd:4.1.2 - doc? ( >=dev-util/gtk-doc-1 )" - -DOCS="AUTHORS ChangeLog HACKING INSTALL NEWS README THANKS TODO" - -pkg_setup() { - G2CONF="${G2CONF} - --disable-static - $(use_with gnome dictionary) - $(use_with spell gtkspell)" - - if use http; then - G2CONF="${G2CONF} enable_opentran=yes" - else - G2CONF="${G2CONF} enable_opentran=no" - fi -} - -src_install() { - gnome2_src_install - - # Clean up unused libtool generated content - find "${D}" -name "*.la" -delete || die "failed to remove *.la" -} diff --git a/app-text/gtranslator/gtranslator-1.9.13.ebuild b/app-text/gtranslator/gtranslator-1.9.13.ebuild index d477139c7a38..400bdfb3e104 100644 --- a/app-text/gtranslator/gtranslator-1.9.13.ebuild +++ b/app-text/gtranslator/gtranslator-1.9.13.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/gtranslator/gtranslator-1.9.13.ebuild,v 1.2 2010/12/17 22:57:01 eva Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/gtranslator/gtranslator-1.9.13.ebuild,v 1.3 2011/01/12 10:15:14 eva Exp $ EAPI="3" GCONF_DEBUG="no" -inherit gnome2 +inherit autotools eutils gnome2 DESCRIPTION="An enhanced gettext po file editor for GNOME" HOMEPAGE="http://gtranslator.sourceforge.net/" @@ -53,6 +53,17 @@ pkg_setup() { fi } +src_prepare() { + gnome2_src_prepare + + # Let package manager handle desktop database updates, bug #318797 + # patch from upstream gtk3 branch + epatch "${FILESDIR}/${PN}-1.9.13-desktop-database.patch" + + intltoolize --force --copy --automake || die "intltoolize failed" + eautoreconf +} + src_install() { gnome2_src_install |