Your message dated Sun, 17 May 2020 12:04:00 +0000
with message-id <[email protected]>
and subject line Bug#930095: fixed in perl 5.30.2-1
has caused the Debian Bug report #930095,
regarding perl: FTBFS when invoked by sbuild with broken environment inside
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 [email protected]
immediately.)


-- 
930095: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930095
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: perl
Version: 5.28.1-6
Severity: important
Tags: upstream patch

Perl FTBFS in environments where sbuild is run in such a way that
LANG is propagated to the sbuild environmment, but the locale it
references is missing.

Patch attached, which I will apply.
From 26fb83d00925234e9c5617b9ed4ebd693a1aae46 Mon Sep 17 00:00:00 2001
From: Dominic Hargreaves <[email protected]>
Date: Thu, 6 Jun 2019 21:02:25 +0100
Subject: [PATCH] Fix pathological test failure case in ext/POSIX/t/mb.t

This new test fails in an environment where LANG is set to one thing and
LC_ALL is set to another, and where LANG is set to a locale which is
not installed in the environment in question.

Such a test environment is arguably broken, but appears in common
chroot setups such as Debian's sbuild tool where LANG is inherited from
the parent environment, and LC_ALL is used to override it.

Patch-Name: fixes/posix-mb-sbuild-fix.diff
---
 ext/POSIX/t/mb.t | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/ext/POSIX/t/mb.t b/ext/POSIX/t/mb.t
index 961edf6cf2..cdd0808eee 100644
--- a/ext/POSIX/t/mb.t
+++ b/ext/POSIX/t/mb.t
@@ -33,9 +33,13 @@ SKIP: {
     my $utf8_locale = find_utf8_ctype_locale();
     skip("no utf8 locale available", 2) unless $utf8_locale;
 
+    # Here we need to influence LC_CTYPE, but it's not enough to just
+    # set this because LC_ALL could override it. It's also not enough
+    # to delete LC_ALL because it could be used to override other
+    # variables such as LANG in the underlying test environment.
+    # Continue to set LC_CTYPE just in case...
     local $ENV{LC_CTYPE} = $utf8_locale;
-    local $ENV{LC_ALL};
-    delete $ENV{LC_ALL};
+    local $ENV{LC_ALL} = $utf8_locale;
 
     fresh_perl_is(
       'use POSIX; print &POSIX::mblen("\x{c3}\x{28}", &POSIX::MB_CUR_MAX)',
-- 
2.11.0


--- End Message ---
--- Begin Message ---
Source: perl
Source-Version: 5.30.2-1
Done: Dominic Hargreaves <[email protected]>

We believe that the bug you reported is fixed in the latest version of
perl, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dominic Hargreaves <[email protected]> (supplier of updated perl 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 17 May 2020 00:19:12 +0100
Source: perl
Architecture: source
Version: 5.30.2-1
Distribution: unstable
Urgency: medium
Maintainer: Niko Tyni <[email protected]>
Changed-By: Dominic Hargreaves <[email protected]>
Closes: 930095
Changes:
 perl (5.30.2-1) unstable; urgency=medium
 .
   [ Niko Tyni ]
   * Convert rt.perl.org links to GitHub issues in patch descriptions.
 .
   [ Dominic Hargreaves ]
   * Update to new upstream version 5.30.2.
   * Fix test failure with certain sbuild configurations (Closes: #930095)
Checksums-Sha1:
 0be5b475d97d99fc9b8399b42933b9fab43a8c40 2868 perl_5.30.2-1.dsc
 8998cffbb866af0e302baa62949cfba37006fc0d 870970 
perl_5.30.2.orig-regen-configure.tar.gz
 d82cdaa610a3e749e821fc77004b1b4bfd5ebd28 12373480 perl_5.30.2.orig.tar.xz
 5064d81cc3e9197c8b3b79ebe93d0b26a75d83a6 162372 perl_5.30.2-1.debian.tar.xz
 783d05820483b190cd109fc8ff4fc2ac6d47813a 5902 perl_5.30.2-1_source.buildinfo
Checksums-Sha256:
 b7f57b8075f40b9d5184b3a68a96a15a01c87d25087b19f7f9ed7e60a784f6d0 2868 
perl_5.30.2-1.dsc
 99174174fbfc550f801076ab8a1a5831c92f75c1b81e553150351f14a111dcf8 870970 
perl_5.30.2.orig-regen-configure.tar.gz
 a1aa88bd6fbbdc2e82938afbb76c408b0ea847317737b712dc196cc7907a5259 12373480 
perl_5.30.2.orig.tar.xz
 dfbf0e2a1d9840beca5098bf728e05e554aeb616e77f9e63bbc52bfad7a852e9 162372 
perl_5.30.2-1.debian.tar.xz
 22b3c9dea84ac562a3e7d63b0713fdb667020c32e0c4ff3b60a736e00cfa156b 5902 
perl_5.30.2-1_source.buildinfo
Files:
 a1ef7d6d9b43d30e23b20eb025764e1c 2868 perl standard perl_5.30.2-1.dsc
 0311edd9e01c1ae4101df137f13bd2f0 870970 perl standard 
perl_5.30.2.orig-regen-configure.tar.gz
 4bfa12b528522a50de0470b8b70b9b3b 12373480 perl standard perl_5.30.2.orig.tar.xz
 c827da59ef1b53bb2e96726c48aff843 162372 perl standard 
perl_5.30.2-1.debian.tar.xz
 801477f71098520cf893c2c565001201 5902 perl standard 
perl_5.30.2-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJBBAEBCAArFiEEy0llJ/kAnyscGnbawAV+cU1pT7IFAl7BIxMNHGRvbUBlYXJ0
aC5saQAKCRDABX5xTWlPsgJKD/9Wv4tL0InKr2/0wOijX9/3dpiyrCrxsZP5BUx1
Ls/mkz+I6KAwV41KBbyQ3/w6Y90/rnlggbo8zGH+oii1fi4c8ShE7Hs7yYauF+Im
pyzwXt0yCzFvQ4DIeQaeGcsNP8wWayUSeFr9ZprkJwyiNrS2yUW9oNd7/UJXDHUc
Q9jUpTpb9ks2vA1iCBRs6ws+cyM/GTBLrMs64r47s0ki2vz5/Yd2KMPcoKBqN080
xQfgSHSU2YUS4L9pnGtC6WLxgzpvDXQSgb4ZF7H+hvPfwywtdTdBDCKz7c2QQMmt
+x3/Nq1qiuT526NntMcY76ew/rVAM6Kx/dZ79fdqEexDKXUN1RHgsMLX6u65+zSM
xmgTJrXxIt46S5e28V2N7jGOnW0BoGIJ2IQZ9mCzozNOFemZulWtQmwLhhP3D1aP
0R/msVAd1BRngeCm1jC7eOFqcTxG8pOdVdyK9VZ26dH0Gl18NVQzdw2JujEV2Lo9
lAlFry51cUu2Ij8Q115rMPUZsUkKdiXlH+QND5aOwayIpfwV8pD1WbvtbOYn4Lb7
4EVE66QPwr7Lihs/Dni6W8qcyHM2+dlGyz+bKjpsEFnvwD7ju5bUiITwyxEAv77G
YxQaZqbsFn/dKP4FVH6u3SJWIeAsYAcIGZnQW0hn8gVOrMXjz2fVNgpEmzqn3kMO
vvcRlQ==
=+0BN
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to