Source: duck
Version: 0.10
Severity: important
User: debian-p...@lists.debian.org
Usertags: perl-cwd-inc-removal
Tags: patch

This package FTBFS when '.' is removed from @INC, as seen at [1].
In order to test against the current version of DUCK.pm (as opposed
to the version which might happen to be installed in /usr/share on
the build system) you need to add -I. to the perl invocation as per the
attached patch.

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/duck_0.10/duck_0.10_amd64-20160728-1015.build>
[2] <https://lists.debian.org/debian-release/2016/07/msg00456.html>
>From e23eaa20bcca86c3348d2d00492d3c317598606b Mon Sep 17 00:00:00 2001
From: Dominic Hargreaves <d...@earth.li>
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

Reply via email to