On Mon, Aug 15, 2016 at 12:21:07PM +0000, Debian Bug Tracking System wrote:
> Thank you for filing a new Bug report with Debian.
> 
> This is an automatically generated reply to let you know your message
> has been received.

Oops, patch attached.
>From 58e974d2a5c65cf7f040b86ddeb671bba2433450 Mon Sep 17 00:00:00 2001
From: Dominic Hargreaves <[email protected]>
Date: Mon, 15 Aug 2016 10:15:34 +0100
Subject: [PATCH] Invoke perl Makefile.PL with -I.

This fixes a FTBFS with '.' removed from @INC.
---
 perl/modules/Makefile.am | 2 +-
 perl/modules/Makefile.in | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/perl/modules/Makefile.am b/perl/modules/Makefile.am
index 186ae4a..b312dcb 100644
--- a/perl/modules/Makefile.am
+++ b/perl/modules/Makefile.am
@@ -8,7 +8,7 @@ $(MODULES): %: %/Makefile
 
 MODULES_MAKEFILE = $(MODULES:=/Makefile)
 $(MODULES_MAKEFILE): %/Makefile: %/Makefile.PL
-	$(AM_V_GEN)(cd $* && perl -I../../lib Makefile.PL)
+	$(AM_V_GEN)(cd $* && perl -I../../lib -I. Makefile.PL)
 
 MODULES_CLEAN = $(MODULES:%=clean_%)
 clean-local: $(MODULES_CLEAN)
diff --git a/perl/modules/Makefile.in b/perl/modules/Makefile.in
index e489680..8e706cf 100644
--- a/perl/modules/Makefile.in
+++ b/perl/modules/Makefile.in
@@ -406,7 +406,7 @@ all-local: $(MODULES)
 $(MODULES): %: %/Makefile
 	(cd $* && $(MAKE) $*.par)
 $(MODULES_MAKEFILE): %/Makefile: %/Makefile.PL
-	$(AM_V_GEN)(cd $* && perl -I../../lib Makefile.PL)
+	$(AM_V_GEN)(cd $* && perl -I../../lib -I. Makefile.PL)
 clean-local: $(MODULES_CLEAN)
 $(MODULES_CLEAN): clean_%:
 	(cd $* && (test ! -f Makefile || $(MAKE) clean))
-- 
2.1.4

Reply via email to