diff options
author | 2006-05-19 22:39:34 +0000 | |
---|---|---|
committer | 2006-05-19 22:39:34 +0000 | |
commit | 079a0bb51a9850aed6865bf62b2300bbab9dba8c (patch) | |
tree | b02da00cfa7f9f5e01aa7cb0817122645d958771 /eclass/kde-functions.eclass | |
parent | added to ~mips for testing (diff) | |
download | historical-079a0bb51a9850aed6865bf62b2300bbab9dba8c.tar.gz historical-079a0bb51a9850aed6865bf62b2300bbab9dba8c.tar.bz2 historical-079a0bb51a9850aed6865bf62b2300bbab9dba8c.zip |
Make sure that buildsycoca function creates and sets the right permissions on /usr/share/services directory, or things will start breaking.
Diffstat (limited to 'eclass/kde-functions.eclass')
-rw-r--r-- | eclass/kde-functions.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/kde-functions.eclass b/eclass/kde-functions.eclass index 347434767ac7..2af2ab422d82 100644 --- a/eclass/kde-functions.eclass +++ b/eclass/kde-functions.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/kde-functions.eclass,v 1.135 2006/05/07 18:20:45 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde-functions.eclass,v 1.136 2006/05/19 22:39:34 flameeyes Exp $ # # Author Dan Armak <danarmak@gentoo.org> # @@ -937,6 +937,12 @@ kde_remove_flag() { buildsycoca() { if [[ -x ${KDEDIR}/bin/kbuildsycoca ]] && [[ -z ${ROOT} || ${ROOT} == "/" ]] && has "~${ARCH}" "${ACCEPT_KEYWORDS}"; then + # First of all, make sure that the /usr/share/services directory exists + # and it has the right permissions + mkdir -p /usr/share/services + chown root:0 /usr/share/services + chmod 0755 /usr/share/services + ebegin "Running kbuildsycoca to build global database" ${KDEDIR}/bin/kbuildsycoca --global --noincremental &> /dev/null eend $? |