Your message dated Sun, 14 Feb 2016 18:24:08 +0000
with message-id <[email protected]>
and subject line Bug#814688: fixed in posh 0.12.6
has caused the Debian Bug report #814688,
regarding posh: tests/th uses deprecated perl4 'getopts.pl' module that is
removed in perl-5.15+
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.)
--
814688: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814688
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: posh
Version: 0.12.5
Tags: patch
The tests/th Perl script is using perl4-specific 'getopts.pl' module for
option parsing. As noted in [1], those modules are no longer included
in perl since version 5.15. Therefore, an attempt to run tests results
in the following error:
./th-sh ./th -s . -p ../posh -C
sh,posix,pdksh,posh,debian,no-history,no-typeset,no-aliases,no-arrays,no-coprocs,no-herestrings,no-ulimit
Can't locate getopts.pl in @INC (@INC contains: /etc/perl
/usr/local/lib64/perl5/5.22.1/x86_64-linux-thread-multi
/usr/local/lib64/perl5/5.22.1
/usr/lib64/perl5/vendor_perl/5.22.1/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.22.1 /usr/local/lib64/perl5
/usr/lib64/perl5/vendor_perl/5.22.0/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.22.0 /usr/lib64/perl5/vendor_perl
/usr/lib64/perl5/5.22.1/x86_64-linux-thread-multi /usr/lib64/perl5/5.22.1 .) at
./th line 133.
I am attaching a patch that fixes the issue by using the more modern
Getopt::Std module that is part of Perl core distribution since
perl-5.0.
I've tested the resulting patch on Gentoo with perl-5.22.1.
[1]:https://metacpan.org/pod/Perl4::CoreLibs
--
Best regards,
Michał Górny
<http://dev.gentoo.org/~mgorny/>
From 893b644fc8c840d0a29974c90e0a80f7ce8146ba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <[email protected]>
Date: Sun, 14 Feb 2016 10:21:02 +0100
Subject: [PATCH] tests/th: Update to work with perl-5.15+
The 'getopts.pl' module (dating back to perl4) was finally nuked in
perl-5.16+, therefore making it impossible to run tests in posh. Use
the perl5 Getopt::Std module instead.
---
tests/th | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/th b/tests/th
index 72eb812..920d54c 100755
--- a/tests/th
+++ b/tests/th
@@ -130,7 +130,7 @@
$os = defined $^O ? $^O : 'unknown';
-require 'getopts.pl';
+use Getopt::Std;
($prog = $0) =~ s#.*/##;
@@ -200,7 +200,7 @@ $nxpassed = 0;
%known_tests = ();
-if (!&Getopts('C:p:Ps:t:ve:')) {
+if (!&getopts('C:p:Ps:t:ve:')) {
print STDERR $Usage;
exit 1;
}
--
2.7.1
pgpc8N6GXOrv2.pgp
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---
Source: posh
Source-Version: 0.12.6
We believe that the bug you reported is fixed in the latest version of
posh, 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.
Clint Adams <[email protected]> (supplier of updated posh 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: SHA512
Format: 1.8
Date: Sun, 14 Feb 2016 12:52:21 -0500
Source: posh
Binary: posh posh-dbg
Architecture: source
Version: 0.12.6
Distribution: unstable
Urgency: medium
Maintainer: Clint Adams <[email protected]>
Changed-By: Clint Adams <[email protected]>
Description:
posh - Policy-compliant Ordinary SHell
posh-dbg - Policy-compliant Ordinary SHell - debugging symbols
Closes: 814688
Changes:
posh (0.12.6) unstable; urgency=medium
.
* tests/th: patch from Michał Górny to use modern perl getopts,
thus obviating build dependency on libperl4-corelibs-perl.
closes: #814688.
Checksums-Sha1:
9759d91d0da775f6fbce0bb6c55f36ffa9accbfe 1718 posh_0.12.6.dsc
d69fdf0657ef6dd3ebd4fea8589c0b27d1e58a0c 268872 posh_0.12.6.tar.xz
Checksums-Sha256:
2cbb90ed40caa3266c16fb5fb5ace0ea3da59a8ed5599664ab03d019c5e2d71f 1718
posh_0.12.6.dsc
32d00153b448df535fd095d768db2771794bfc54002efd711abc48a40481170d 268872
posh_0.12.6.tar.xz
Files:
156935dddea70f177f26ef62cc0dcdc1 1718 shells optional posh_0.12.6.dsc
7f8ba439620ea64cc37c32b2255b27c9 268872 shells optional posh_0.12.6.tar.xz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Debian!
iQJ8BAEBCgBmBQJWwMCxXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ3NTgxRUM4NzQwNTNFNkM4MDc3OTFCOUI1
NTkyMzMxRTE5OUQzOEE4AAoJEFWSMx4ZnTioKPQQAIGvss65VZ3eIwPkCLoCUZbE
DgH4FEwM6RpoBIjwGKDqo7COGzNdqm0igJIA2swQDBSPnCtPNQxB5Dg2kK7FuXbe
Z/FL6MoyLD/KCBdhwH37Igtra5xIAbQQxugTNInM0uF3r1iHHqG4XSiKopzkVwoK
eELnXQB1mYXI+6WtXWEjqkgp8wgmtBLHlmo49kKVzL44vOVYrOfDjgKQMsvzfwVy
mUOgjyK0xJf3tr5oqB/ZNOMSV3ZOP+5gTMjv5fMT9m2NCFFZwGIm97swGANelc8y
WIVsZQ9LjYl0DXAv1UEXw2qBHyXmkVVzMI7EgXzFRF2UzzSImHYeSSIhtwpBXjv+
fVip9Jv8aBJ7RuchHOQQ6iB+2QkMJ3csqLCJXbzUgZ8eOrMd8hsEMyiuB1mffLOm
Y/8GnXUQCC246dwFZe1eBeWphmPuKzaM93WYW+/FgHjXy0tTseDqUCJMPDrSBgMz
iffj2vwwQmV9dFlyLWFv5Zc0NaZF+gF+hSktuY7lxq+rU+Tw3TECFkOreEKkjSKL
98uZRftMK3J26SvrD2lgsO6gVt5XRSil0vdhNsSqwlHAHNuvz0pLJZ9j3DXIQQu+
ooELREygktUDx4GqmWO0iVktMVzJSxhqV5xU2LWEVMU1FIfD8rTCIYzFHBQekWEH
hcAtJg20HpBC0HIOZnt8
=QOS7
-----END PGP SIGNATURE-----
--- End Message ---