public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Dist-Zilla] f44: Fix tmp dir in tests
Date: Tue, 15 Sep 2026 16:45:06 GMT	[thread overview]
Message-ID: <178949070632.1.8419659464277050184.rpms-perl-Dist-Zilla-d7b82150ce5d@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/perl-Dist-Zilla
Branch : f44
Commit : d7b82150ce5da8de46d5e385af9f30953e8202cf
Author : Michal Josef Špaček <mspacek@redhat.com>
Date   : 2026-09-15T15:50:01+02:00
Stats  : +43/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-Dist-Zilla/c/d7b82150ce5da8de46d5e385af9f30953e8202cf?branch=f44

Log:
Fix tmp dir in tests

---
diff --git a/Dist-Zilla-6.039-tmp_dir.patch b/Dist-Zilla-6.039-tmp_dir.patch
new file mode 100644
index 0000000..3047752
--- /dev/null
+++ b/Dist-Zilla-6.039-tmp_dir.patch
@@ -0,0 +1,40 @@
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/fakerelease.t Dist-Zilla-6.039/t/plugins/fakerelease.t
+--- Dist-Zilla-6.039.orig/t/plugins/fakerelease.t	2026-09-15 14:27:33.779749994 +0200
++++ Dist-Zilla-6.039/t/plugins/fakerelease.t	2026-09-15 14:38:36.081005104 +0200
+@@ -2,9 +2,12 @@
+ use warnings;
+ use Test::More 0.88;
+ 
++use File::Temp qw(tempdir);
+ use Test::DZil qw(Builder simple_ini);
+ use Test::Fatal qw(exception);
+ 
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ {
+   my $tzil = Builder->from_config(
+     { dist_root => 'corpus/dist/DZT' },
+@@ -12,6 +15,7 @@
+       add_files => {
+         'source/dist.ini' => simple_ini(qw(GatherDir FakeRelease)),
+       },
++      tempdir_root => $temp_dir,
+     },
+   );
+ 
+@@ -35,6 +39,7 @@
+           } ]
+         ),
+       },
++      tempdir_root => $temp_dir,
+     },
+   );
+ 
+@@ -55,6 +60,7 @@
+           'source/dist.ini' => simple_ini(qw(GatherDir FakeRelease)),
+         },
+       },
++      tempdir_root => $temp_dir,
+     );
+ 
+     local $ENV{DZIL_FAKERELEASE_FAIL} = 1;

diff --git a/perl-Dist-Zilla.spec b/perl-Dist-Zilla.spec
index 416dbcd..1fb82a1 100644
--- a/perl-Dist-Zilla.spec
+++ b/perl-Dist-Zilla.spec
@@ -5,6 +5,7 @@ Summary:        Distribution builder; installer not included!
 License:        GPL-1.0-or-later OR Artistic-1.0-Perl
 URL:            https://metacpan.org/release/Dist-Zilla
 Source0:        https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Dist-Zilla-%{version}.tar.gz
+Patch0:         Dist-Zilla-6.039-tmp_dir.patch
 BuildArch:      noarch
 # Build
 BuildRequires:  coreutils
@@ -164,6 +165,7 @@ with "%{_libexecdir}/%{name}/test".
 
 %prep
 %setup -q -n Dist-Zilla-%{version}
+%patch -P0 -p1
 # Help generators to recognize Perl scripts
 for F in t/*.t; do
     perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
@@ -210,6 +212,7 @@ make test
 * Tue Sep 15 2026 Michal Josef Špaček <mspacek@redhat.com> - 6.039-1
 - 6.039 bump
 - Fix bash completition
+- Fix tmp dir in tests
 - Package tests
 - Remove nonsense filter
 

                 reply	other threads:[~2026-09-15 16:45 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=178949070632.1.8419659464277050184.rpms-perl-Dist-Zilla-d7b82150ce5d@fedoraproject.org \
    --to=git-commits@fedoraproject.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