Source: interchange
Version: 5.7.7-2
Severity: important
User: [email protected]
Usertags: perl-cwd-inc-removal
Tags: patch
This package FTBFS when '.' is removed from @INC, as seen at [1].
Here is a patch:
--- interchange-5.7.7.orig/relocate.pl
+++ interchange-5.7.7/relocate.pl
@@ -23,7 +23,7 @@
use Config;
-require 'scripts/initp.pl';
+require './scripts/initp.pl';
sub doit {
my ($key) = @_;
This change is being made for security reasons; for more background,
see #588017 and [2].
This bug will become RC when the perl package change removing '.' from
@INC by default is uploaded to unstable, expected in a week or two.
Thanks,
Dominic.
[1]
<http://perl.debian.net/rebuild-logs/experimental/interchange_5.7.7-2/interchange_5.7.7-2_amd64-20160729-0703.build>
[2] <https://lists.debian.org/debian-release/2016/07/msg00456.html>
>From e23eaa20bcca86c3348d2d00492d3c317598606b Mon Sep 17 00:00:00 2001
From: Dominic Hargreaves <[email protected]>
Date: Tue, 16 Aug 2016 17:27:08 +0100
Subject: [PATCH] Load DUCK.pm from the current directory when testing with
perl -c
This fixes a FTBFS when '.' is removed from @INC (and also fixes testing
the wrong version of DUCK.pm on systems with duck already installed).
---
debian/rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index cc5fe0b..2359a05 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,4 +7,4 @@ LIBDIR = lib
dh $@
override_dh_auto_test:
- $(PERL) -wc duck
\ No newline at end of file
+ $(PERL) -I. -wc duck
--
2.1.4