public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Kent Fredric" <kentnl@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Test-CleanNamespaces/
Date: Tue,  2 Aug 2016 22:15:13 +0000 (UTC)	[thread overview]
Message-ID: <1470176075.1e16f7f70a224731b1b7bc53bb47b8ab1da211e9.kentnl@gentoo> (raw)

commit:     1e16f7f70a224731b1b7bc53bb47b8ab1da211e9
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  2 21:51:05 2016 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Tue Aug  2 22:14:35 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e16f7f7

dev-perl/Test-CleanNamespaces: Weaken dependency on dev-perl/Test-Tester

Without this fix, Test-CleanNamespaces effectively needs perl-5.22
stabilized in order to satisfy Test-Tester from Perl-5.22

However, satisfying Test-Tester from a mechanism other than Perl-5.22
confuses portages dependency resolver, and confuses portage to not be able
to upgrade perl, and not being able to upgrade perl means perl can't be
stabilized, invoking a stabilization-needs-stabilization bug.

Hence, the choice here optimises for assuming stabilization will
happen/has happened, and removes any dependency on Test::Tester, assuming
portage will eventually provide it for you.

And just to be sure, we use perl before the test phase executes
to determine if Test::Tester was /actually/ installed and then only run tests
if it was.

This means before stabilization, some people *might* install this and not have
tests run, but everyone *will* get tests working after stabilization, as
opposed to the opposite occurring and stabilization being blocked.

Bug: https://bugs.gentoo.org/584238

Package-Manager: portage-2.3.0
RepoMan-Options: --include-arches="alpha amd64 amd64-fbsd arm arm64 hppa ia64 m68k mips nios2 ppc ppc64 riscv s390 sh sparc sparc-fbsd x86 x86-fbsd"

 .../Test-CleanNamespaces-0.180.0.ebuild                    | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/dev-perl/Test-CleanNamespaces/Test-CleanNamespaces-0.180.0.ebuild b/dev-perl/Test-CleanNamespaces/Test-CleanNamespaces-0.180.0.ebuild
index 9341e56..fcb229a 100644
--- a/dev-perl/Test-CleanNamespaces/Test-CleanNamespaces-0.180.0.ebuild
+++ b/dev-perl/Test-CleanNamespaces/Test-CleanNamespaces-0.180.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -43,7 +43,6 @@ DEPEND="${RDEPEND}
 		dev-perl/Test-Deep
 		>=virtual/perl-Test-Simple-0.880.0
 		dev-perl/Test-Requires
-		|| ( >=virtual/perl-Test-Simple-1.1.14 dev-perl/Test-Tester )
 		>=dev-perl/Test-Warnings-0.9.0
 		virtual/perl-if
 		virtual/perl-parent
@@ -51,3 +50,14 @@ DEPEND="${RDEPEND}
 "
 
 SRC_TEST="do parallel"
+
+src_test() {
+	# Bug 584238 Avoidance
+	if perl -e 'exit ( eval { require Test::Tester; 1 } ? 0 : 1 )'; then
+		perl-module_src_test
+	else
+		einfo "Test phase skipped: Test::Tester required for tests"
+		einfo "Please upgrade to >=dev-lang/perl-5.22.0 or >=virtual/perl-Test-Simple-1.1.10"
+		einfo "if you want this tested"
+	fi
+}


             reply	other threads:[~2016-08-02 22:15 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-02 22:15 Kent Fredric [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-09-17  7:51 [gentoo-commits] repo/gentoo:master commit in: dev-perl/Test-CleanNamespaces/ Yixun Lan
2021-08-16 21:12 Andreas K. Hüttel
2021-08-16 21:12 Andreas K. Hüttel
2020-07-20 20:45 Kent Fredric
2020-07-06  2:51 Matt Turner
2020-04-14 15:45 Agostino Sarubbo
2020-04-14 14:03 Agostino Sarubbo
2020-04-14 12:59 Agostino Sarubbo
2020-04-12 18:27 Sergei Trofimovich
2020-04-12 11:39 Mart Raudsepp
2020-04-12  9:34 Sergei Trofimovich
2019-09-13 23:51 Matt Turner
2019-07-28 17:16 Aaron Bauman
2019-07-25  6:48 Kent Fredric
2019-06-24 10:13 Kent Fredric
2019-04-13 17:27 Aaron Bauman
2018-12-01 15:10 Sergei Trofimovich
2018-11-23 13:06 Agostino Sarubbo
2018-10-27 19:04 Fabian Groffen
2018-10-06 19:34 Matt Turner
2018-10-01  0:07 Thomas Deutschmann
2018-09-07 23:28 Kent Fredric
2018-07-16  6:54 Sergei Trofimovich
2018-02-28 22:10 Kent Fredric
2017-05-22 11:43 Michael Weber
2017-05-22 10:36 Michael Weber
2016-02-06  7:59 Jeroen Roovers
2016-01-24 16:40 Agostino Sarubbo
2015-09-27  8:36 Mikle Kolyada
2015-09-27  5:52 Jeroen Roovers
2015-09-08  5:08 Jeroen Roovers
2015-08-11 20:32 Mikle Kolyada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1470176075.1e16f7f70a224731b1b7bc53bb47b8ab1da211e9.kentnl@gentoo \
    --to=kentnl@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox