Skip to content

Commit

Permalink
perl/Makefile.PL: detect MakeMaker versions incompatible with DESTDIR
Browse files Browse the repository at this point in the history
It appears that ExtUtils::MakeMaker versions older than 6.11 do not
implement the DESTDIR mechanism.  So add a test to the generated perl.mak
to detect when DESTDIR is used along with a too old ExtUtils::MakeMaker and
abort with a message suggesting the use of NO_PERL_MAKEMAKER.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information
Brandon Casey authored and Shawn O. Pearce committed Sep 25, 2009
1 parent a6dbf88 commit efe47f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions perl/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ sub MY::postamble {
instlibdir:
@echo '$(INSTALLSITELIB)'
ifneq (,$(DESTDIR))
ifeq (0,$(shell expr '$(MM_VERSION)' '>' 6.10))
$(error ExtUtils::MakeMaker version "$(MM_VERSION)" is older than 6.11 and so \
is likely incompatible with the DESTDIR mechanism. Try setting \
NO_PERL_MAKEMAKER=1 instead)
endif
endif
MAKE_FRAG
}

Expand Down

0 comments on commit efe47f8

Please sign in to comment.