on BSD I get warnings such that: stat: illegal option -- - usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...] * QA Notice: * Package kfile is breaking /usr/share/config permissions. * Please report this issue to gentoo bugzilla. * Permissions will get adjusted automatically now. stat: illegal option -- - usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...] * QA Notice: * Package kfile is breaking /usr/share/kde4 permissions. * Please report this issue to gentoo bugzilla. * Permissions will get adjusted automatically now. at the end of emerge of every single kde4 package. Would it be possible to disable this check if USERLAND!=GNU or use userland_GNU isnt set?
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!