From a0c7e833b23567c41193e892428e90049796ba02 Mon Sep 17 00:00:00 2001 From: Ciaran McCreesh Date: Wed, 7 Dec 2005 17:53:25 +0000 Subject: Try to avoid sandbox violations thanks to silly glib misfeature. Bug #114475 --- eclass/vim-doc.eclass | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'eclass') diff --git a/eclass/vim-doc.eclass b/eclass/vim-doc.eclass index c30212df5d38..7b13cdad0ee5 100644 --- a/eclass/vim-doc.eclass +++ b/eclass/vim-doc.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vim-doc.eclass,v 1.9 2005/07/06 20:23:20 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vim-doc.eclass,v 1.10 2005/12/07 17:53:25 ciaranm Exp $ # # This eclass is used by vim.eclass and vim-plugin.eclass to update # the documentation tags. This is necessary since vim doesn't look in @@ -32,6 +32,13 @@ update_vim_helptags() { fi fi + # Make vim not try to connect to X. See :help gui-x11-start + # in vim for how this evil trickery works. + if ! [[ -z "${vim}" ]] ; then + ln -s "${vim}" "${T}/tagvim" + vim="${T}/tagvim" + fi + # Install the documentation symlinks into the versioned vim # directory and run :helptags for d in /usr/share/vim/vim[0-9]*; do @@ -62,6 +69,7 @@ update_vim_helptags() { '+set nobackup nomore' \ "+helptags $d/doc" \ '+qa!' /dev/null + rm "${vim}" fi done } -- cgit v1.2.3-65-gdbad