Skip to content

Commit

Permalink
Makefile: unexport PERL_MM_OPT
Browse files Browse the repository at this point in the history
Compilation of Perl-related packages fails if `PERL_MM_OPT` is defined.

We previously issued an error in this case.
Instead, simply `unexport` the variable.

Signed-off-by: Gleb Mazovetskiy <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
  • Loading branch information
glebm authored and tpetazzoni committed Nov 7, 2022
1 parent 8450b76 commit f7a6011
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ unexport DESTDIR
# Causes breakage with packages that needs host-ruby
unexport RUBYOPT

# Compilation of perl-related packages will fail otherwise
unexport PERL_MM_OPT

include package/pkg-utils.mk
include package/doc-asciidoc.mk

Expand Down
9 changes: 0 additions & 9 deletions support/dependencies/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ case ":${PATH:-unset}:" in
;;
esac

if test -n "$PERL_MM_OPT" ; then
echo
echo "You have PERL_MM_OPT defined because Perl local::lib"
echo "is installed on your system. Please unset this variable"
echo "before starting Buildroot, otherwise the compilation of"
echo "Perl related packages will fail"
exit 1
fi

check_prog_host()
{
prog="$1"
Expand Down

0 comments on commit f7a6011

Please sign in to comment.