diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2011-04-21 22:32:33 +0000 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2011-04-21 22:32:33 +0000 |
commit | ba2bb47885e74af2bf37e6988098df4c086e0595 (patch) | |
tree | 622d5de5291272402bd44b1292ad599e37b566f3 | |
parent | New library (diff) | |
download | gentoo-2-ba2bb47885e74af2bf37e6988098df4c086e0595.tar.gz gentoo-2-ba2bb47885e74af2bf37e6988098df4c086e0595.tar.bz2 gentoo-2-ba2bb47885e74af2bf37e6988098df4c086e0595.zip |
Fix stat usage for BSD, bug 318237
-rw-r--r-- | eclass/kde4-functions.eclass | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass index f2297750f142..6f84f52177d9 100644 --- a/eclass/kde4-functions.eclass +++ b/eclass/kde4-functions.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.45 2011/04/06 14:22:14 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.46 2011/04/21 22:32:33 dilfridge Exp $ inherit versionator @@ -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." |