--- eclass/kde4-functions.eclass.old 2008-09-14 17:19:34.000000000 +0200 +++ eclass/kde4-functions.eclass 2008-09-14 17:20:08.000000000 +0200 @@ -379,11 +379,8 @@ debug-print-function ${FUNCNAME} "$@" if [[ -x ${KDEDIR}/bin/kbuildsycoca4 && -z "${ROOT%%/}" ]]; 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 + # 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