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/Dist-Zilla-Plugin-NextVersion-Semantic/files/, ...
Date: Sat, 19 Sep 2020 10:50:32 +0000 (UTC)	[thread overview]
Message-ID: <1600512615.5ac48a2a6af4d86a0b76f58ef8f2d54f42033254.kentnl@gentoo> (raw)

commit:     5ac48a2a6af4d86a0b76f58ef8f2d54f42033254
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 19 10:49:53 2020 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Sat Sep 19 10:50:15 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ac48a2a

dev-perl/Dist-Zilla-Plugin-NextVersion-Semantic: -r bump for bug #737308

Patch t/basic.t not to be broken by MAKEOPTS =~ "V=1", which instead of
simply turning on verbosity like in autotools, deeply trips the code
under testing to change the desired "output version", which, when not
guarded, breaks tests that inherently rely on this variable being unset.

Bug: https://bugs.gentoo.org/737308
Bug: https://github.com/yanick/Dist-Zilla-Plugin-NextVersion-Semantic/pull/6
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>

 ...lla-Plugin-NextVersion-Semantic-0.2.5-r1.ebuild | 34 ++++++++++++++++++
 ...n-NextVersion-Semantic-0.2.5-no-V-in-test.patch | 40 ++++++++++++++++++++++
 2 files changed, 74 insertions(+)

diff --git a/dev-perl/Dist-Zilla-Plugin-NextVersion-Semantic/Dist-Zilla-Plugin-NextVersion-Semantic-0.2.5-r1.ebuild b/dev-perl/Dist-Zilla-Plugin-NextVersion-Semantic/Dist-Zilla-Plugin-NextVersion-Semantic-0.2.5-r1.ebuild
new file mode 100644
index 00000000000..7116913a277
--- /dev/null
+++ b/dev-perl/Dist-Zilla-Plugin-NextVersion-Semantic/Dist-Zilla-Plugin-NextVersion-Semantic-0.2.5-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DIST_AUTHOR=YANICK
+DIST_VERSION=0.2.5
+inherit perl-module
+
+DESCRIPTION="update the next version, semantic-wise"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+RDEPEND="
+	>=dev-perl/CPAN-Changes-0.200.0
+	dev-perl/Dist-Zilla
+	dev-perl/List-AllUtils
+	dev-perl/Moose
+	dev-perl/Perl-Version
+	virtual/perl-Scalar-List-Utils
+"
+BDEPEND="${RDEPEND}
+	virtual/perl-ExtUtils-MakeMaker
+	test? (
+		virtual/perl-File-Spec
+		virtual/perl-IO
+		dev-perl/Test-Exception
+		virtual/perl-Test-Simple
+	)
+"
+PATCHES=(
+	"${FILESDIR}/${PN}-0.2.5-no-V-in-test.patch"
+)

diff --git a/dev-perl/Dist-Zilla-Plugin-NextVersion-Semantic/files/Dist-Zilla-Plugin-NextVersion-Semantic-0.2.5-no-V-in-test.patch b/dev-perl/Dist-Zilla-Plugin-NextVersion-Semantic/files/Dist-Zilla-Plugin-NextVersion-Semantic-0.2.5-no-V-in-test.patch
new file mode 100644
index 00000000000..ab09936f283
--- /dev/null
+++ b/dev-perl/Dist-Zilla-Plugin-NextVersion-Semantic/files/Dist-Zilla-Plugin-NextVersion-Semantic-0.2.5-no-V-in-test.patch
@@ -0,0 +1,40 @@
+From e38c5bfa847361ab251ce533fdd6e8993afbd2f3 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Sat, 19 Sep 2020 22:13:21 +1200
+Subject: t/basic.t: Don't become broken when MAKEOPTS includes V=1
+
+Some people set MAKEOPTS to include V=1, in order to coax autotools
+based makefiles into being more verbose.
+
+But when that ENV var is used to direct perl ebuilds for Dzil things,
+well, it unintentionally uses "1" as the *next version*, and so breaks
+all code that isn't expecting that to happen.
+
+Given its not the job of tests to tell people their system is weird, it
+just makes the scope "normal" ( that is, defaulting V to be unset
+internally )
+
+Bug: https://bugs.gentoo.org/737308
+Bug: https://github.com/yanick/Dist-Zilla-Plugin-NextVersion-Semantic/pull/6
+---
+ t/basic.t | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/t/basic.t b/t/basic.t
+index 22d04fe..b2942c8 100644
+--- a/t/basic.t
++++ b/t/basic.t
+@@ -6,6 +6,10 @@ use Test::Exception;
+ 
+ use Test::DZil;
+ 
++# V=1 is common in MAKEOPTS for gnu autotools
++# to set "verbose mode"
++delete $ENV{V} if exists $ENV{V};
++
+ my $changes = make_changes(<<'END_CHANGES');
+     - got included in an awesome test suite
+ END_CHANGES
+-- 
+2.28.0
+


                 reply	other threads:[~2020-09-19 10:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1600512615.5ac48a2a6af4d86a0b76f58ef8f2d54f42033254.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