From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QA8It-0006s9-7Q for garchives@archives.gentoo.org; Wed, 13 Apr 2011 22:12:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 879E71C002; Wed, 13 Apr 2011 22:12:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 562A51C002 for ; Wed, 13 Apr 2011 22:12:43 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A70A61B4038 for ; Wed, 13 Apr 2011 22:12:42 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id BBE5380065 for ; Wed, 13 Apr 2011 22:12:41 +0000 (UTC) From: "Andreas K. Huettel" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas K. Huettel" Message-ID: Subject: [gentoo-commits] proj/kde:master commit in: eclass/ X-VCS-Repository: proj/kde X-VCS-Files: eclass/kde4-functions.eclass X-VCS-Directories: eclass/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Huettel X-VCS-Revision: c7074a2aa1bb9be6530175f930a104d6d96684e1 Date: Wed, 13 Apr 2011 22:12:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 8a26a69fc9dd52d62efb38cc73369d14 commit: c7074a2aa1bb9be6530175f930a104d6d96684e1 Author: Andreas K. Huettel (dilfridge) akhuettel de> AuthorDate: Wed Apr 13 22:14:55 2011 +0000 Commit: Andreas K. Huettel gentoo org> CommitDate: Wed Apr 13 22:15:30 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/kde.git;a=3Dc= ommit;h=3Dc7074a2a [eclass] Work nicely with BSD stat, bug 318237 --- 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 f229775..c0f26ee 100644 --- a/eclass/kde4-functions.eclass +++ b/eclass/kde4-functions.eclass @@ -131,7 +131,15 @@ buildsycoca() { [[ ${KDEDIR} =3D=3D /usr ]] && DIRS=3D${EROOT}usr || DIRS=3D"${EROOT}u= sr ${EROOT}${KDEDIR}" for y in ${DIRS}; do [[ -d "${y}/${x}" ]] || break # nothing to do if directory does not e= xist - if [[ $(stat --format=3D%a "${y}/${x}") !=3D 755 ]]; then + # fixes Bug 318237 + if use userland_BSD ; then + [[ $(stat -f %p "${y}/${x}") !=3D 40755 ]] + local stat_rtn=3D"$?" + else + [[ $(stat --format=3D%a "${y}/${x}") !=3D 755 ]] + local stat_rtn=3D$? + fi + if [[ $stat_rtn !=3D 1 ]] ; then ewarn "QA Notice:" ewarn "Package ${PN} is breaking ${y}/${x} permissions." ewarn "Please report this issue to gentoo bugzilla."