perl: when Makefile.PL fails give more feedback
authorPhilip Prindeville <redacted>
Fri, 27 Oct 2017 23:17:29 +0000 (17:17 -0600)
committerPhilip Prindeville <redacted>
Sat, 28 Oct 2017 00:22:13 +0000 (18:22 -0600)
There are a few packages which mysteriously fail during the configure
stage.  Give us better means of understanding why.

Also, some Makefile.PL's have "use" statements which reference
files which are in or under ".".

Signed-off-by: Philip Prindeville <redacted>
lang/perl/perlmod.mk

index 7adf16b1b3f3518ff7d17d53ed99463cdd7c0b80..2ad21e4b537143137b4f621e2c98e1725a6c876e 100644 (file)
@@ -57,7 +57,7 @@ define perlmod/Configure
        (cd $(if $(3),$(3),$(PKG_BUILD_DIR)); \
        PERL_MM_USE_DEFAULT=1 \
        $(2) \
-       $(PERL_CMD) -MConfig -e '$$$${tied %Config::Config}{cpprun}="$(GNU_TARGET_NAME)-cpp -E"; do "./Makefile.PL"' \
+       $(PERL_CMD) -MConfig -e '$$$${tied %Config::Config}{cpprun}="$(GNU_TARGET_NAME)-cpp -E"; unshift(@INC, "."); unless (defined (do "./Makefile.PL")) { if ($$$$@) { die "couldn\047t parse Makefile.PL: $$$$@"; } else { die "couldn\047t do Makefile.PL: $$$$!"; } }; die "No Makefile generated!" unless -f "Makefile";' \
                $(1) \
                AR=ar \
                CC=$(GNU_TARGET_NAME)-gcc \
git clone https://git.99rst.org/PROJECT