--- games.eclass 21 Nov 2014 21:47:16 -0000 1.159 +++ games.eclass 24 Jan 2015 19:26:16 -0000 @@ -246,10 +246,11 @@ [[ ${dir} = ${GAMES_STATEDIR} ]] && mode=o-rwx,g+r find "${D}/${dir}" -type f -print0 | xargs -0 chmod $mode - # common trees should not be games owned #264872 - if [[ ${dir} == "${GAMES_PREFIX_OPT}" ]] ; then - fowners root:root "${dir}" - fperms 755 "${dir}" + # common trees should not be games owned #264872 #537580 + fowners root:root "${dir}" + fperms 755 "${dir}" + if [[ ${dir} == "${GAMES_PREFIX}" \ + || ${dir} == "${GAMES_PREFIX_OPT}" ]] ; then for d in $(get_libdir) bin ; do # check if dirs exist to avoid "nonfatal" option if [[ -e ${D}/${dir}/${d} ]] ; then