Your message dated Tue, 13 Sep 2016 11:00:18 +0000
with message-id <e1bjlrq-0004dj...@franck.debian.org>
and subject line Bug#836833: fixed in request-tracker4 4.2.13-2
has caused the Debian Bug report #836833,
regarding request-tracker4: FTBFS with '.' removed from @INC
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
836833: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836833
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: request-tracker4
Version: 4.2.13-1
Severity: serious
User: debian-p...@lists.debian.org
Usertags: perl-cwd-inc-removal
Tags: patch

As reported in #835536 this package FTBFS with no '.' in @INC.
Patch from Niko attached.
>From 9251965c2ee5f9e23a9b196aad97fe404343b386 Mon Sep 17 00:00:00 2001
From: Niko Tyni <nt...@debian.org>
Date: Sun, 4 Sep 2016 11:41:29 +0300
Subject: [PATCH] Fix RT::I18N and the test suite to work without cwd in @INC

---
 lib/RT/I18N.pm                 | 5 +++--
 t/lifecycles/basics.t          | 2 +-
 t/lifecycles/dates.t           | 2 +-
 t/lifecycles/moving.t          | 2 +-
 t/lifecycles/types.t           | 2 +-
 t/lifecycles/unresolved-deps.t | 2 +-
 6 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/lib/RT/I18N.pm b/lib/RT/I18N.pm
index 60a6622..1bf0b57 100644
--- a/lib/RT/I18N.pm
+++ b/lib/RT/I18N.pm
@@ -56,6 +56,7 @@ package RT::I18N;
 
 use strict;
 use warnings;
+use Cwd ();
 
 
 use Locale::Maketext 1.04;
@@ -97,10 +98,10 @@ sub Init {
     @lang = ('*') unless @lang;
 
     # load default functions
-    require substr(__FILE__, 0, -3) . '/i_default.pm';
+    require substr(Cwd::abs_path(__FILE__), 0, -3) . '/i_default.pm';
 
     # Load language-specific functions
-    foreach my $file ( File::Glob::bsd_glob(substr(__FILE__, 0, -3) . "/*.pm") ) {
+    foreach my $file ( File::Glob::bsd_glob(substr(Cwd::abs_path(__FILE__), 0, -3) . "/*.pm") ) {
         my ($lang) = ($file =~ /([^\\\/]+?)\.pm$/);
         next unless grep $_ eq '*' || $_ eq $lang, @lang;
         require $file;
diff --git a/t/lifecycles/basics.t b/t/lifecycles/basics.t
index e18bea3..85e77c7 100644
--- a/t/lifecycles/basics.t
+++ b/t/lifecycles/basics.t
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-BEGIN {require  't/lifecycles/utils.pl'};
+BEGIN {require  './t/lifecycles/utils.pl'};
 
 my $general = RT::Test->load_or_create_queue(
     Name => 'General',
diff --git a/t/lifecycles/dates.t b/t/lifecycles/dates.t
index 0c74a1b..a8dd8cf 100644
--- a/t/lifecycles/dates.t
+++ b/t/lifecycles/dates.t
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-BEGIN {require 't/lifecycles/utils.pl'};
+BEGIN {require './t/lifecycles/utils.pl'};
 
 my $general = RT::Test->load_or_create_queue(
     Name => 'General',
diff --git a/t/lifecycles/moving.t b/t/lifecycles/moving.t
index 8a03e3e..379b646 100644
--- a/t/lifecycles/moving.t
+++ b/t/lifecycles/moving.t
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-BEGIN {require 't/lifecycles/utils.pl'};
+BEGIN {require './t/lifecycles/utils.pl'};
 
 my $general = RT::Test->load_or_create_queue(
     Name => 'General',
diff --git a/t/lifecycles/types.t b/t/lifecycles/types.t
index 79b0714..84cfd86 100644
--- a/t/lifecycles/types.t
+++ b/t/lifecycles/types.t
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-BEGIN {require  't/lifecycles/utils.pl'};
+BEGIN {require  './t/lifecycles/utils.pl'};
 
 is_deeply( [ RT::Lifecycle->ListAll ], [qw/ approvals default delivery /],
        "Get the list of all lifecycles (implicitly for for tickets)");
diff --git a/t/lifecycles/unresolved-deps.t b/t/lifecycles/unresolved-deps.t
index 5da4b8f..fe09d3b 100644
--- a/t/lifecycles/unresolved-deps.t
+++ b/t/lifecycles/unresolved-deps.t
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-BEGIN {require  't/lifecycles/utils.pl'};
+BEGIN {require  './t/lifecycles/utils.pl'};
 
 my $general = RT::Test->load_or_create_queue(
     Name => 'General',
-- 
2.9.3


--- End Message ---
--- Begin Message ---
Source: request-tracker4
Source-Version: 4.2.13-2

We believe that the bug you reported is fixed in the latest version of
request-tracker4, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 836...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dominic Hargreaves <d...@earth.li> (supplier of updated request-tracker4 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 06 Sep 2016 13:26:01 +0100
Source: request-tracker4
Binary: request-tracker4 rt4-clients rt4-standalone rt4-fcgi rt4-apache2 
rt4-db-postgresql rt4-db-mysql rt4-db-sqlite rt4-doc-html
Architecture: all source
Version: 4.2.13-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Request Tracker Group 
<pkg-request-tracker-maintain...@lists.alioth.debian.org>
Changed-By: Dominic Hargreaves <d...@earth.li>
Closes: 835536 836833
Description: 
 request-tracker4 - extensible trouble-ticket tracking system
 rt4-apache2 - Apache 2 specific files for request-tracker4
 rt4-clients - mail gateway and command-line interface to request-tracker4
 rt4-db-mysql - MySQL database backend for request-tracker4
 rt4-db-postgresql - PostgreSQL database backend for request-tracker4
 rt4-db-sqlite - SQLite database backend for request-tracker4
 rt4-doc-html - HTML documentation for request-tracker4
 rt4-fcgi   - External FastCGI support for request-tracker4
 rt4-standalone - Standalone web server support for request-tracker4
Changes:
 request-tracker4 (4.2.13-2) unstable; urgency=medium
 .
   * Correct typo in gpg1 patch description
   * Fix another use of gpg in the test suite (Closes: #835536)
   * Fix FTBFS with '.' removed from @INC (Closes: #836833)
Checksums-Sha1: 
 ce5eb5930e886fdc464e136dc287dd57d6b0bd4a 5637 request-tracker4_4.2.13-2.dsc
 7b1f02224e04fc5bc80388deffa18092761e7fb5 76600 
request-tracker4_4.2.13-2.debian.tar.xz
 33f4b69665c5159124e66fc9527c2edec1a1896a 3092058 
request-tracker4_4.2.13-2_all.deb
 7da4690748b03d200ba624136a46455bbbbf0da6 19222 rt4-apache2_4.2.13-2_all.deb
 b7ed9bc5afb604c9f50cdebd43a8d99dc942f111 53364 rt4-clients_4.2.13-2_all.deb
 a2fb168cff269e1fb46393601e0b2cdb281b0e6d 18508 rt4-db-mysql_4.2.13-2_all.deb
 c54249d9918d3b5ab2b7fae9dacdd518ecf22b0a 18500 
rt4-db-postgresql_4.2.13-2_all.deb
 76648ca3a45f15d4ad1640e19ab9b5f082a3cd29 18602 rt4-db-sqlite_4.2.13-2_all.deb
 eeb68ab6f22bf418156a703e6fca0c55cb2679e8 987068 rt4-doc-html_4.2.13-2_all.deb
 256c7b037d387e2d9d4e3255b69ddcdda161413a 20982 rt4-fcgi_4.2.13-2_all.deb
 079a74ada60d796c184a55a46ed9a23f7f734d56 17978 rt4-standalone_4.2.13-2_all.deb
Checksums-Sha256: 
 9e75300afba7c0673ca4cde4b205affc8b67f18c812b22740713c4a98af3024a 5637 
request-tracker4_4.2.13-2.dsc
 546e9708c31b29c936157e0620702ae958f181f28a0b8895d1ac09d4e9019dce 76600 
request-tracker4_4.2.13-2.debian.tar.xz
 4af15a0afebe150f277941ca8c050e312f05225517fa271adf5dd15343431879 3092058 
request-tracker4_4.2.13-2_all.deb
 bc3a3df3f930e703284bb85367efd31f6a52059620161fdac224941d291d8050 19222 
rt4-apache2_4.2.13-2_all.deb
 23fbaecf414dd67703b97d235b57b0325f6303259501c1c47b9fb827f9efa35e 53364 
rt4-clients_4.2.13-2_all.deb
 c5051268647858f7fea8ad6670d7805defafc9b171fd2a12d7446966b7e7c2be 18508 
rt4-db-mysql_4.2.13-2_all.deb
 d6b4e8e33c831ccea57a79b072936bd7739b9f6623782f17906427198676b5a6 18500 
rt4-db-postgresql_4.2.13-2_all.deb
 b9d9c96c5fcb95be1c9ae89dbbfef9bb31dfaadc92a4ea8a8af1cfca45dab555 18602 
rt4-db-sqlite_4.2.13-2_all.deb
 2fe72ff62403d05a5141c2a1f87d1840f90d90f74682b87d6b8822420a794374 987068 
rt4-doc-html_4.2.13-2_all.deb
 fc83f4c31d0c8956b2c9782d49d0b6c78d396ddbe5c7be9d279e4e3ffbfa0908 20982 
rt4-fcgi_4.2.13-2_all.deb
 3548817eaa3af5bbbb32657c33b052db9821b4b327a4c6fc6ba94d240935f1fd 17978 
rt4-standalone_4.2.13-2_all.deb
Files: 
 45dc9cf48234ebde5e61560f1637717e 5637 misc optional 
request-tracker4_4.2.13-2.dsc
 b68fd5128c5f6e45a1834b8cfc2a899d 76600 misc optional 
request-tracker4_4.2.13-2.debian.tar.xz
 d1da5d0b0f4f7e751f72a306837985a7 3092058 misc optional 
request-tracker4_4.2.13-2_all.deb
 e8cf311e515f82d30f72772d9bf887f4 19222 misc optional 
rt4-apache2_4.2.13-2_all.deb
 5352be7c4707c8dbed6626a320c714a3 53364 misc optional 
rt4-clients_4.2.13-2_all.deb
 0757568c32bab8fe873f0a3754e779c6 18508 misc optional 
rt4-db-mysql_4.2.13-2_all.deb
 a3a7564f7c4b6ef6c1003c836610ab94 18500 misc optional 
rt4-db-postgresql_4.2.13-2_all.deb
 f798a7f54591f0e5b6f0484e09691fd5 18602 misc optional 
rt4-db-sqlite_4.2.13-2_all.deb
 2fcf03b441fbb40efee2ffc0217d58e9 987068 doc optional 
rt4-doc-html_4.2.13-2_all.deb
 63188dfcd4a860f57d11b62d1604e222 20982 misc optional rt4-fcgi_4.2.13-2_all.deb
 461e0f7d493e784953c46df50c988052 17978 misc optional 
rt4-standalone_4.2.13-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJXzsvEAAoJEMAFfnFNaU+ymIAP/An+zoOjlgkBP/yQYHk7/9Ec
nOOdWrAXQTUi1g/JoOEp2d9PoESs8Co6QVsIHYff3TdmLjg4DxkYtDCuwPzQLbUm
ygAIxEhvzq+Xm9v1pkZfItUwyYuwYIQfz1APB4c7ycm96oKZwdTGY/VpDUoQEcSO
E/2kBr2rSV+bDYk3zVnDTCrxLkdjPCXd2FzKvas28ZfcWUF7deYcGSIyWsoem5A8
4B/FpkPjocuSMWpt5snErVpSFs8r2FLk6YQw8PKhaAVRw2m8LYlIuF4nNtqIIpAh
1oilvtoary2/BK1koLhIFh1gvWXhf0R9YxeWK7BUHvS3OOR2K+mV4QGKGmwsYBsc
XL5UC/yY0XM/STlPvgT67Knw7R++9zn1JJH60fiBHou6H/upEpIeRDhSZarKY9Ty
n37YW8Vj/TNJ5JHuQa4PfDeo1rtsdPkLbOw5z6daMSMgituwsEax+c5bY8Ep3hK9
O8+hYqAJAwDGvKGaezg+cRhdzAb87WZWIX0a8yKMMFTJhY2GjOSGH1N/SC7+snw4
TQkSBuGkmgvJXywuHP0NaTOS1qQRXaITv+9EsISRvKzt+uf5Ch/y0YDvbuTps5A5
wMVcBVkNKZ2aKNmWnZDOyJTZRrJnws2ru6vuNh+3gWCT3B5mIv2mkh/e+WKDl9/+
Dk6InuOUq2uyOZSgRjs5
=+GFZ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to