From 3675d34a8eaa80fd5b06d62617f306a8e628c33c Mon Sep 17 00:00:00 2001 From: "Jorge Manuel B. S. Vicetto (jmbsvicetto)" Date: Sun, 21 Sep 2008 13:48:35 +0000 Subject: Applied fixes from the master branch to the kde4-functions eclass. --- eclass/kde4-functions.eclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'eclass/kde4-functions.eclass') diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass index fad94c4ebc5..2407877ef21 100644 --- a/eclass/kde4-functions.eclass +++ b/eclass/kde4-functions.eclass @@ -396,6 +396,9 @@ buildsycoca() { chown root:0 /usr/share/services chmod 0755 /usr/share/services + # Make sure tha cache file exists, or kbuildsycoca4 will fail + touch "${KDEDIR}/share/kde4/services/ksycoca4" + # kbuildsycoca4 needs a running dbus session to work correctly. # We have to start a new dbus session, because the DBUS_SESSION_BUS_ADDRESS in the environment # could from from the user's environment (through su [without '-']), causing kbuildsycoca4 to hang. @@ -412,7 +415,7 @@ buildsycoca() { ebegin "Running kbuildsycoca4 to build global database" # This is needed because we support multiple kde versions installed together. XDG_DATA_DIRS="/usr/share:${KDEDIRS//:/\/share:}/share:/usr/local/share" \ - ${KDEDIR}/bin/kbuildsycoca4 --global --noincremental &> /dev/null + DISPLAY="" ${KDEDIR}/bin/kbuildsycoca4 --global --noincremental &> /dev/null eend $? echo "Killing dbus session for kbuildsycoca4" -- cgit v1.2.3