--- kde4-functions.eclass.orig 2011-04-06 23:31:13.000000000 +0900 +++ kde4-functions.eclass 2011-04-13 20:56:27.000000000 +0900 @@ -131,7 +131,15 @@ [[ ${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."