summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a6dbf88)
raw | patch | inline | side by side (parent: a6dbf88)
author | Brandon Casey <drafnel@gmail.com> | |
Thu, 24 Sep 2009 18:21:03 +0000 (13:21 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 25 Sep 2009 21:00:04 +0000 (14:00 -0700) |
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>
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>
perl/Makefile.PL | patch | blob | history |
diff --git a/perl/Makefile.PL b/perl/Makefile.PL
index 320253eb8e91eb1d914aa4e34f7d3af4649b9b39..0b9deca2cc6ef77897a23b2096a7acdd577c2482 100644 (file)
--- a/perl/Makefile.PL
+++ b/perl/Makefile.PL
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
}