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-Deep/
Date: Tue,  2 Aug 2016 22:44:27 +0000 (UTC)	[thread overview]
Message-ID: <1470177823.4126f7aa2ec132ce4237e4f631ccd067349913ba.kentnl@gentoo> (raw)

commit:     4126f7aa2ec132ce4237e4f631ccd067349913ba
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  2 22:41:41 2016 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Tue Aug  2 22:43:43 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4126f7aa

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

Without this fix, Test-Deep 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"

 dev-perl/Test-Deep/Test-Deep-1.120.0.ebuild | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/dev-perl/Test-Deep/Test-Deep-1.120.0.ebuild b/dev-perl/Test-Deep/Test-Deep-1.120.0.ebuild
index 18203ba..85759f8 100644
--- a/dev-perl/Test-Deep/Test-Deep-1.120.0.ebuild
+++ b/dev-perl/Test-Deep/Test-Deep-1.120.0.ebuild
@@ -22,9 +22,16 @@ DEPEND="${RDEPEND}
 	virtual/perl-ExtUtils-MakeMaker
 	test? (
 		>=virtual/perl-Test-Simple-0.880.0
-		|| (
-			>=virtual/perl-Test-Simple-1.1.10
-			( <virtual/perl-Test-Simple-1.1.10 >=dev-perl/Test-Tester-0.40.0 )
-		)
 	)
 "
+
+src_test() {
+	# Bug 584238 Avoidance
+	if perl -e 'exit ( eval { require Test::Tester; Test::Tester->VERSION(0.04); 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:44 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-02 22:44 Kent Fredric [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-10  4:21 [gentoo-commits] repo/gentoo:master commit in: dev-perl/Test-Deep/ Ionen Wolkens
2024-06-14  0:43 Sam James
2024-06-09 21:21 Sam James
2024-06-09 21:18 Sam James
2024-06-09 20:36 Sam James
2024-05-01  8:11 Sam James
2022-05-14  7:04 WANG Xuerui
2021-12-09 19:46 Andreas K. Hüttel
2021-10-12 18:58 Sam James
2021-10-11 15:25 Sam James
2021-10-11  6:32 Agostino Sarubbo
2021-10-11  5:16 Sam James
2021-10-11  4:20 Sam James
2021-10-11  4:18 Sam James
2021-10-11  3:10 Sam James
2021-08-16 21:12 Andreas K. Hüttel
2021-08-16 21:12 Andreas K. Hüttel
2020-04-15  7:08 Agostino Sarubbo
2019-05-05 15:46 Mikle Kolyada
2018-12-08 15:22 Mikle Kolyada
2018-10-15 19:03 Fabian Groffen
2018-09-26 19:05 Markus Meier
2018-08-25 18:08 Sergei Trofimovich
2018-08-22 21:38 Mart Raudsepp
2018-08-20  2:26 Mikle Kolyada
2018-06-14 19:35 Mikle Kolyada
2017-05-30  2:18 Kent Fredric
2017-05-19 20:52 Kent Fredric
2017-05-04  0:27 Kent Fredric
2017-05-03  8:19 Agostino Sarubbo
2017-03-31 11:29 Kent Fredric
2017-02-24  4:16 Mike Frysinger
2016-11-05 14:37 Michael Palimaka
2016-06-05  0:17 Andreas Hüttel
2016-06-05  0:17 Andreas Hüttel
2016-06-01 11:43 Tobias Klausmann
2016-05-21  0:07 Andreas Hüttel
2016-04-15 19:56 Andreas Hüttel
2015-09-19 21:06 Andreas Hüttel

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=1470177823.4126f7aa2ec132ce4237e4f631ccd067349913ba.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