summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/default/bsd/profile.bashrc')
-rw-r--r--profiles/default/bsd/profile.bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/profiles/default/bsd/profile.bashrc b/profiles/default/bsd/profile.bashrc
index 0cf58d3be47f..4c5ecd579207 100644
--- a/profiles/default/bsd/profile.bashrc
+++ b/profiles/default/bsd/profile.bashrc
@@ -1,4 +1,4 @@
-if [[ ${EBUILD_PHASE} == compile ]] ; then
+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."