Summary: | kde4-functions.eclass: stat usage requires GNU stat | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alexis Ballier <aballier> |
Component: | Current packages | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bsd+disabled, esigra, nigoro.dev |
Priority: | High | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | FreeBSD | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 313999 | ||
Attachments: | patch for kde4-functions.eclass |
Description
Alexis Ballier
2010-05-03 04:48:33 UTC
OK, this is the code snippet: ------ if [[ $(stat --format=%a "${y}/${x}") != 755 ]]; then ewarn "QA Notice:" ewarn "Package ${PN} is breaking ${y}/${x} permissions." ewarn "Please report this issue to gentoo bugzilla." einfo "Permissions will get adjusted automatically now." find "${y}/${x}" -type d -print0 | xargs -0 chmod 755 fi ------ Under linux, the short equivalent of "--format" is "-c". But, judging from your error message, that option does not exist with BSD stat. "%a" means "Access rights in octal". Could you please check what exactly is the BSD equivalent? Maybe "-f %a" ? We could need some help from the bsd guys here... Is it possible to install gnu stat on bsd (as gstat?), and what's the ebuild name then (for adding a dependency)? Created attachment 269801 [details, diff] patch for kde4-functions.eclass This problem reproduced my environment. I applied this patch and solved. KDE team, BTW, Gentoo/FreeBSD has the problem that the source cannot extract. When having free time to you, could you check Bug 363471 ? thanks in advance. Thanks a lot! I added the patch to the overlay eclass for testing, and will move it to the main tree later. Moved to main tree, thanks! |