diff options
| -rw-r--r-- | eclass/kde4-functions.eclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass index f2297750f14..c0f26ee07b5 100644 --- a/eclass/kde4-functions.eclass +++ b/eclass/kde4-functions.eclass @@ -131,7 +131,15 @@ buildsycoca() { [[ ${KDEDIR} == /usr ]] && DIRS=${EROOT}usr || DIRS="${EROOT}usr ${EROOT}${KDEDIR}" for y in ${DIRS}; do [[ -d "${y}/${x}" ]] || break # nothing to do if directory does not exist - if [[ $(stat --format=%a "${y}/${x}") != 755 ]]; then + # fixes Bug 318237 + if use userland_BSD ; then + [[ $(stat -f %p "${y}/${x}") != 40755 ]] + local stat_rtn="$?" + else + [[ $(stat --format=%a "${y}/${x}") != 755 ]] + local stat_rtn=$? + fi + if [[ $stat_rtn != 1 ]] ; then ewarn "QA Notice:" ewarn "Package ${PN} is breaking ${y}/${x} permissions." ewarn "Please report this issue to gentoo bugzilla." |
