summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2009-01-25 16:20:36 +0000
committerAlexis Ballier <aballier@gentoo.org>2009-01-25 16:20:36 +0000
commitcc73751df1d743f0a9d3e6c396db663ada4464b3 (patch)
tree3fdbd1e01cdd7fe3247d0e8fb8fd8c2966b232d1 /profiles/default
parentClean out and fix for bug 250138. (diff)
downloadgentoo-2-cc73751df1d743f0a9d3e6c396db663ada4464b3.tar.gz
gentoo-2-cc73751df1d743f0a9d3e6c396db663ada4464b3.tar.bz2
gentoo-2-cc73751df1d743f0a9d3e6c396db663ada4464b3.zip
Add a profile.bashrc test for test == construction that does not work on BSD in order to get automatic warnings for things like bug #256305
Diffstat (limited to 'profiles/default')
-rw-r--r--profiles/default/bsd/ChangeLog6
-rw-r--r--profiles/default/bsd/profile.bashrc6
2 files changed, 11 insertions, 1 deletions
diff --git a/profiles/default/bsd/ChangeLog b/profiles/default/bsd/ChangeLog
index e5b31c857f81..a42b473e0ce0 100644
--- a/profiles/default/bsd/ChangeLog
+++ b/profiles/default/bsd/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for profile directory
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/profiles/default/bsd/ChangeLog,v 1.12 2009/01/24 21:58:18 the_paya Exp $
+# $Header: /var/cvsroot/gentoo-x86/profiles/default/bsd/ChangeLog,v 1.13 2009/01/25 16:20:36 aballier Exp $
+
+ 25 Jan 2009; Alexis Ballier <aballier@gentoo.org> profile.bashrc:
+ Add a profile.bashrc test for test == construction that does not work on
+ BSD in order to get automatic warnings for things like bug #256305
24 Jan 2009; Javier Villavicencio <the_paya@gentoo.org>
fbsd/profile.bashrc:
diff --git a/profiles/default/bsd/profile.bashrc b/profiles/default/bsd/profile.bashrc
index 03950c99ee6b..78b6152ab4c9 100644
--- a/profiles/default/bsd/profile.bashrc
+++ b/profiles/default/bsd/profile.bashrc
@@ -5,4 +5,10 @@ if [[ ${EBUILD_PHASE} == compile ]] ; then
eerror "http://bugs.gentoo.org/enter_bug.cgi?product=Gentoo%20BSD"
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 BSD product."
+ eerror "http://bugs.gentoo.org/enter_bug.cgi?product=Gentoo%20BSD"
+ fi
fi