public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Emmanuel Seyman <emmanuel@seyman.fr>
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Catalyst-Plugin-PageCache] rawhide: Fix failing tests (#2443739)
Date: Wed, 11 Nov 2026 13:11:37 GMT	[thread overview]
Message-ID: <179440269743.1.10376975460497415393.rpms-perl-Catalyst-Plugin-PageCache-d8d2dd3008de@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/perl-Catalyst-Plugin-PageCache
Branch : rawhide
Commit : d8d2dd3008dea0a1bc42c62fc875e5ee2b0d78d1
Author : Emmanuel Seyman <emmanuel@seyman.fr>
Date   : 2026-11-11T14:05:09+01:00
Stats  : +34/-104 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-Catalyst-Plugin-PageCache/c/d8d2dd3008dea0a1bc42c62fc875e5ee2b0d78d1?branch=rawhide

Log:
Fix failing tests (#2443739)

---
diff --git a/Catalyst-Plugin-PageCache-0.32-Fix-building-on-Perl-without-dot-in-INC.patch b/Catalyst-Plugin-PageCache-0.32-Fix-building-on-Perl-without-dot-in-INC.patch
deleted file mode 100644
index 6801fc9..0000000
--- a/Catalyst-Plugin-PageCache-0.32-Fix-building-on-Perl-without-dot-in-INC.patch
+++ /dev/null
@@ -1,8 +0,0 @@
-diff -up Catalyst-Plugin-PageCache-0.32/Makefile.PL.orig Catalyst-Plugin-PageCache-0.32/Makefile.PL
---- Catalyst-Plugin-PageCache-0.32/Makefile.PL.orig	2017-05-25 14:27:59.767156324 +0200
-+++ Catalyst-Plugin-PageCache-0.32/Makefile.PL	2017-05-25 14:29:22.319679928 +0200
-@@ -1,3 +1,4 @@
-+BEGIN { push @INC, '.'; }
- use inc::Module::Install 0.87;
- 
- name 'Catalyst-Plugin-PageCache';

diff --git a/Catalyst-Plugin-PageCache-0.32-Fix-datetime-test.patch b/Catalyst-Plugin-PageCache-0.32-Fix-datetime-test.patch
new file mode 100644
index 0000000..efb7e2d
--- /dev/null
+++ b/Catalyst-Plugin-PageCache-0.32-Fix-datetime-test.patch
@@ -0,0 +1,12 @@
+diff -up ./t/09datetime.t.orig ./t/09datetime.t
+--- ./t/09datetime.t.orig	2026-11-11 12:09:24.819117901 +0100
++++ ./t/09datetime.t	2026-11-11 12:09:04.504267886 +0100
+@@ -45,7 +45,7 @@ cmp_ok( $res->headers->last_modified, '>
+ 
+ require DateTime;
+ 
+-my $dt_epoch = DateTime->new( day => 24, month => 1, year => 2026, time_zone => 'UTC' )->epoch;
++my $dt_epoch = DateTime->now()->add(minutes => 5)->epoch;
+ is( $res->headers->expires, $dt_epoch, 'expires header matches correct time' );
+ 
+ 

diff --git a/FileCache.pm b/FileCache.pm
deleted file mode 100644
index 0e010b5..0000000
--- a/FileCache.pm
+++ /dev/null
@@ -1,90 +0,0 @@
-package Catalyst::Plugin::Cache::FileCache;
-
-use strict;
-use base 'Class::Data::Inheritable';
-
-our $VERSION = '0.7';
-
-use Cache::FileCache;
-
-__PACKAGE__->mk_classdata('cache');
-
-sub setup {
-    my $self = shift;
-
-    my $params = {};
-
-    if ( $self->config->{cache} ) {
-        $params = { %{ $self->config->{cache} } };
-    }
-
-    if ( $params->{storage} ) {
-        $params->{cache_root} = delete $params->{storage};
-    }
-
-    if ( $params->{expires} ) {
-        $params->{default_expires_in} = delete $params->{expires};
-    }
-
-    $self->cache( Cache::FileCache->new($params) );
-
-    return $self->NEXT::setup(@_);
-}
-
-1;
-
-
-__END__
-
-=head1 NAME
-
-Catalyst::Plugin::Cache::FileCache - (DEPRECATED) File cache
-
-=head1 SYNOPSIS
-
-    use Catalyst qw[Cache::FileCache];
-
-    MyApp->config->{cache}->{storage} = '/tmp';
-    MyApp->config->{cache}->{expires} = 3600;
-
-    my $data;
-
-    unless ( $data = $c->cache->get('data') ) {
-        $data = MyApp::Model::Data->retrieve('data');
-        $c->cache->set( 'data', $data );
-    }
-
-    $c->response->body($data);
-
-=head1 DEPRECATION NOTICE
-
-This module has been deprecated in favor of L<Catalyst::Plugin::Cache>.
-You can configure that module to use a FileCache backend.
-
-=head1 DESCRIPTION
-
-Extends base class with a file cache.
-
-=head1 METHODS
-
-=head2 setup
-
-=head2 cache
-
-Returns an instance of C<Cache::FileCache>
-
-=head1 SEE ALSO
-
-L<Catalyst::Plugin::Cache>, L<Cache::FileCache>, L<Catalyst>.
-
-=head1 AUTHOR
-
-Christian Hansen, C<ch@ngmedia.com>
-Sebastian Riedel C<sri@oook.de>
-
-=head1 LICENSE
-
-This library is free software . You can redistribute it and/or modify it under
-the same terms as perl itself.
-
-=cut

diff --git a/perl-Catalyst-Plugin-PageCache.spec b/perl-Catalyst-Plugin-PageCache.spec
index 48d302d..dee0fa2 100644
--- a/perl-Catalyst-Plugin-PageCache.spec
+++ b/perl-Catalyst-Plugin-PageCache.spec
@@ -2,13 +2,13 @@ Name:           perl-Catalyst-Plugin-PageCache
 Version:        0.32
 Release:        30%{?dist}
 Summary:        Cache the output of entire pages
-# Automatically converted from old format: GPL+ or Artistic - review is highly recommended.
 License:        GPL-1.0-or-later OR Artistic-1.0-Perl
 URL:            https://metacpan.org/release/Catalyst-Plugin-PageCache
 Source0:        https://cpan.metacpan.org/authors/id/V/VE/VERISSIMO/Catalyst-Plugin-PageCache-%{version}.tar.gz
 # Define POD encoding, CPAN RT#87667
 Patch0:         Catalyst-Plugin-PageCache-0.31-Define-POD-encoding.patch
-Patch1:         Catalyst-Plugin-PageCache-0.32-Fix-building-on-Perl-without-dot-in-INC.patch
+# Fix t/09datetime.t, CPAN RT#174378
+Patch1:         Catalyst-Plugin-PageCache-0.32-Fix-datetime-test.patch
 BuildArch:      noarch
 BuildRequires:  make
 BuildRequires:  perl-interpreter
@@ -27,6 +27,16 @@ BuildRequires:  perl(Test::More)
 BuildRequires:  perl(Test::Pod)
 BuildRequires:  perl(Test::Pod::Coverage)
 
+BuildRequires:  perl(inc::Module::Install)
+BuildRequires:  perl(Module::Install::AutoInstall)
+BuildRequires:  perl(Module::Install::Base)
+BuildRequires:  perl(Module::Install::Can)
+BuildRequires:  perl(Module::Install::Fetch)
+BuildRequires:  perl(Module::Install::Include)
+BuildRequires:  perl(Module::Install::Makefile)
+BuildRequires:  perl(Module::Install::Metadata)
+BuildRequires:  perl(Module::Install::WriteAll)
+
 Requires:       perl(Catalyst::Runtime)
 Requires:       perl(Class::Accessor::Fast)
 
@@ -39,20 +49,22 @@ for withstanding a Slashdotting, for example.
 
 %prep
 %setup -q -n Catalyst-Plugin-PageCache-%{version}
+rm -rf inc
+perl -pi -e '/^inc\//d' MANIFEST
 %patch -P0 -p1
 %patch -P1 -p1
 iconv -f iso-8859-1 -t utf-8 README >README.conv && mv README.conv README
 
 %build
-PERL5_CPANPLUS_IS_RUNNING=1 %{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
-make %{?_smp_mflags}
+PERL5_CPANPLUS_IS_RUNNING=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
+%{make_build}
 
 %install
-make pure_install DESTDIR=$RPM_BUILD_ROOT
+%{make_install}
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
-TEST_POD=yep make test
+TEST_POD=yep %{make_build} test
 
 %files
 %doc Changes README
@@ -60,6 +72,10 @@ TEST_POD=yep make test
 %{_mandir}/man3/Catalyst*
 
 %changelog
+* Wed Nov 11 2026 Emmanuel Seyman <emmanuel@seyman.fr> - 0.32-31
+- Fix t/09datetime.t
+- Modernize spec file
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.32-30
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

                 reply	other threads:[~2026-11-11 13:11 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=179440269743.1.10376975460497415393.rpms-perl-Catalyst-Plugin-PageCache-d8d2dd3008de@fedoraproject.org \
    --to=emmanuel@seyman.fr \
    --cc=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