[Buildroot] [PATCH 1/1] dependencies: additional check for PERL_MM_OPT
thomas.petazzoni at free-electrons.com
Fri Oct 14 07:50:02 UTC 2011
When the user has Perl local::lib installed, its environment contains
a PERL_MM_OPT variables which defines
INSTALL_BASE="/some/location". Unfortunately, having this makes the
build of libxml-parser-perl (and probably other Perl related packages)
fail, because it complains that both PREFIX (passed in our .mk file)
and INSTALL_BASE (passed from the PERL_MM_OPT environment variable)
are defined. Since in Buildroot we want our PREFIX to be considered,
we error out when the user has PERL_MM_OPT defined.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
toolchain/dependencies/dependencies.sh | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/toolchain/dependencies/dependencies.sh b/toolchain/dependencies/dependencies.sh
index 410f663..2b9c0b3 100755
@@ -40,6 +40,14 @@ if test -n "$PATH" ; then
+if test -n "$PERL_MM_OPT" ; then
+ /bin/echo -e "\nYou have PERL_MM_OPT defined because Perl local::lib"
+ /bin/echo -e "is installed on your system. Please unset this variable"
+ /bin/echo -e "before starting Buildroot, otherwise the compilation of"
+ /bin/echo -e "Perl related packages will fail"
+ exit 1
# Verify that which is installed
if ! which which > /dev/null ; then
/bin/echo -e "\nYou must install 'which' on your build machine\n";
More information about the buildroot