public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-shells/posh/files/, app-shells/posh/
@ 2016-02-14  9:41 Michał Górny
  0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2016-02-14  9:41 UTC (permalink / raw
  To: gentoo-commits

commit:     452e1fdf6c96a7cb0f81adc2a73e253b8d2e8b66
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 14 09:40:35 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Feb 14 09:40:59 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=452e1fdf

app-shells/posh: Fix tests to work with perl-5.15+

 .../posh/files/posh-0.12.5-test-perl-fix.patch     | 37 ++++++++++++++++++++++
 app-shells/posh/posh-0.12.5.ebuild                 |  5 ++-
 2 files changed, 39 insertions(+), 3 deletions(-)

diff --git a/app-shells/posh/files/posh-0.12.5-test-perl-fix.patch b/app-shells/posh/files/posh-0.12.5-test-perl-fix.patch
new file mode 100644
index 0000000..4959afe
--- /dev/null
+++ b/app-shells/posh/files/posh-0.12.5-test-perl-fix.patch
@@ -0,0 +1,37 @@
+From 893b644fc8c840d0a29974c90e0a80f7ce8146ba Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Sun, 14 Feb 2016 10:21:02 +0100
+Subject: [PATCH] tests/th: Update to work with perl-5.16+
+
+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
+

diff --git a/app-shells/posh/posh-0.12.5.ebuild b/app-shells/posh/posh-0.12.5.ebuild
index fe95f2c..925876f 100644
--- a/app-shells/posh/posh-0.12.5.ebuild
+++ b/app-shells/posh/posh-0.12.5.ebuild
@@ -17,10 +17,9 @@ IUSE=""
 
 DEPEND="app-arch/xz-utils"
 
-# Tests fails looking for some 'getopts.pl'
-RESTRICT="test"
-
 src_prepare() {
+	eapply "${FILESDIR}/${P}-test-perl-fix.patch"
+
 	default
 
 	# tarball bundles outdated generated files


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-14  9:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-14  9:41 [gentoo-commits] repo/gentoo:master commit in: app-shells/posh/files/, app-shells/posh/ Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox