summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/default/bsd/profile.bashrc')
-rw-r--r--profiles/default/bsd/profile.bashrc14
1 files changed, 14 insertions, 0 deletions
diff --git a/profiles/default/bsd/profile.bashrc b/profiles/default/bsd/profile.bashrc
new file mode 100644
index 000000000000..6e1f856d2214
--- /dev/null
+++ b/profiles/default/bsd/profile.bashrc
@@ -0,0 +1,14 @@
+if [[ ${EBUILD_PHASE} == compile ]] && [ -d "${S}" ] ; then
+ if grep -q "Assume that mode_t is passed compatibly" ${S} -r --include openat.c; then
+ eerror "The source code contains a faulty openat.c unit from gnulib."
+ eerror "Please report this on Gentoo Bugzilla in Gentoo/Alt product for component FreeBSD."
+ eerror "http://bugs.gentoo.org/enter_bug.cgi?product=Gentoo%2FAlt&component=FreeBSD&op_sys=FreeBSD"
+ die "Broken openat.c gnulib unit."
+ fi
+ if grep -q "\\<test .*==" "${S}" -r --include configure; then
+ eerror "Found a non POSIX test construction in a configure script"
+ eerror "The configure checks of this package may not function properly"
+ eerror "Please report this on Gentoo Bugzilla in Gentoo/Alt product for component FreeBSD."
+ eerror "http://bugs.gentoo.org/enter_bug.cgi?product=Gentoo%2FAlt&component=FreeBSD&op_sys=FreeBSD"
+ fi
+fi