public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-HTML-FormFu-Model-DBIC] rawhide: Fix failures in tests due HTML-FormFu 2.09
@ 2026-11-08 14:35 Emmanuel Seyman
0 siblings, 0 replies; 2+ messages in thread
From: Emmanuel Seyman @ 2026-11-08 14:35 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/perl-HTML-FormFu-Model-DBIC
Branch : rawhide
Commit : 7e809029670e487bcbeb033c9488f8394165c559
Author : Emmanuel Seyman <emmanuel@seyman.fr>
Date : 2026-11-08T15:34:16+01:00
Stats : +20/-10 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/perl-HTML-FormFu-Model-DBIC/c/7e809029670e487bcbeb033c9488f8394165c559?branch=rawhide
Log:
Fix failures in tests due HTML-FormFu 2.09
---
diff --git a/perl-HTML-FormFu-Model-DBIC.spec b/perl-HTML-FormFu-Model-DBIC.spec
index cc67add..b1210f6 100644
--- a/perl-HTML-FormFu-Model-DBIC.spec
+++ b/perl-HTML-FormFu-Model-DBIC.spec
@@ -1,11 +1,14 @@
Name: perl-HTML-FormFu-Model-DBIC
Summary: Integrate HTML::FormFu with DBIx::Class
Version: 2.03
-Release: 26%{?dist}
-# Automatically converted from old format: GPL+ or Artistic - review is highly recommended.
+Release: 27%{?dist}
License: GPL-1.0-or-later OR Artistic-1.0-Perl
Source0: https://cpan.metacpan.org/authors/id/C/CF/CFRANKS/HTML-FormFu-Model-DBIC-%{version}.tar.gz
-URL: https://metacpan.org/release/HTML-FormFu-Model-DBIC
+# https://github.com/FormFu/HTML-FormFu-Model-DBIC/pull/12
+Patch0: HTML-FormFu-Model-DBIC-2.03-autoincrement.patch
+# https://github.com/FormFu/HTML-FormFu-Model-DBIC/pull/13
+Patch1: HTML-FormFu-Model-DBIC-2.03-missing-when.patch
+URL: https://metacpan.org/dist/HTML-FormFu-Model-DBIC
BuildArch: noarch
BuildRequires: coreutils
@@ -66,24 +69,31 @@ Integrate your HTML::FormFu forms with a DBIx::Class model.
%prep
%setup -q -n HTML-FormFu-Model-DBIC-%{version}
+%patch -P 0 -p1
+%patch -P 1 -p1
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
-make %{?_smp_mflags}
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
+%{make_build}
%install
-make pure_install DESTDIR=%{buildroot}
+%{make_install} DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*
%check
-make test
+%{make_build} test
%files
-%doc Changes
-%{perl_vendorlib}/*
-%{_mandir}/man3/*.3*
+%doc Changes README
+%{perl_vendorlib}/HTML*
+%{_mandir}/man3/HTML::FormFu*.3*
%changelog
+* Sun Oct 18 2026 Emmanuel Seyman <emmanuel@seyman.fr> - 2.03-27
+- Fix failures in tests due HTML-FormFu 2.09
+- Make auto_increment warnings in test ouput go away
+- Modernize spec file
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.03-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
^ permalink raw reply related [flat|nested] 2+ messages in thread* [rpms/perl-HTML-FormFu-Model-DBIC] rawhide: Fix failures in tests due HTML-FormFu 2.09
@ 2026-11-08 14:35 Emmanuel Seyman
0 siblings, 0 replies; 2+ messages in thread
From: Emmanuel Seyman @ 2026-11-08 14:35 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/perl-HTML-FormFu-Model-DBIC
Branch : rawhide
Commit : 6a47470b3e84bef8282d447d11aa11b7fd64b97b
Author : Emmanuel Seyman <emmanuel@seyman.fr>
Date : 2026-11-08T15:34:55+01:00
Stats : +174/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/perl-HTML-FormFu-Model-DBIC/c/6a47470b3e84bef8282d447d11aa11b7fd64b97b?branch=rawhide
Log:
Fix failures in tests due HTML-FormFu 2.09
---
diff --git a/HTML-FormFu-Model-DBIC-2.03-autoincrement.patch b/HTML-FormFu-Model-DBIC-2.03-autoincrement.patch
new file mode 100644
index 0000000..a18292d
--- /dev/null
+++ b/HTML-FormFu-Model-DBIC-2.03-autoincrement.patch
@@ -0,0 +1,161 @@
+commit b14920578f8aae7488fa1f18cb8179d0b10374d9
+Author: Emmanuel Seyman <emmanuel@seyman.fr>
+Date: Sun Oct 18 16:16:28 2026 +0200
+
+ Tag all id fields as been auto-increment
+
+diff --git a/t/lib/MySchema/Address.pm b/t/lib/MySchema/Address.pm
+index 5d9081a..c0c1a31 100644
+--- a/t/lib/MySchema/Address.pm
++++ b/t/lib/MySchema/Address.pm
+@@ -9,7 +9,7 @@ __PACKAGE__->load_components(qw/ Core /);
+ __PACKAGE__->table("address");
+
+ __PACKAGE__->add_columns(
+- id => { data_type => "INTEGER", is_nullable => 0 },
++ id => { data_type => "INTEGER", is_nullable => 0, is_auto_increment => 1 },
+ user => { data_type => "INTEGER", is_nullable => 0 },
+ my_label => { data_type => "TEXT", is_nullable => 1 },
+ address => { data_type => "TEXT", is_nullable => 0 },
+diff --git a/t/lib/MySchema/Band.pm b/t/lib/MySchema/Band.pm
+index bc91f01..f2fa075 100644
+--- a/t/lib/MySchema/Band.pm
++++ b/t/lib/MySchema/Band.pm
+@@ -9,7 +9,7 @@ __PACKAGE__->load_components(qw/ Core /);
+ __PACKAGE__->table("band");
+
+ __PACKAGE__->add_columns(
+- id => { data_type => "INTEGER", is_nullable => 0 },
++ id => { data_type => "INTEGER", is_nullable => 0, is_auto_increment => 1 },
+ manager => { data_type => "INTEGER", is_nullable => 1 },
+ band => { data_type => "TEXT", is_nullable => 0 },
+ );
+diff --git a/t/lib/MySchema/ManagedBand.pm b/t/lib/MySchema/ManagedBand.pm
+index 0dff749..dce8acf 100644
+--- a/t/lib/MySchema/ManagedBand.pm
++++ b/t/lib/MySchema/ManagedBand.pm
+@@ -9,7 +9,7 @@ __PACKAGE__->load_components(qw/ Core /);
+ __PACKAGE__->table("managed_band");
+
+ __PACKAGE__->add_columns(
+- id => { data_type => "INTEGER", is_nullable => 0 },
++ id => { data_type => "INTEGER", is_nullable => 0, is_auto_increment => 1 },
+ manager_id => { data_type => "INTEGER", is_nullable => 0 },
+ band => { data_type => "TEXT", is_nullable => 0 },
+ );
+diff --git a/t/lib/MySchema/Manager.pm b/t/lib/MySchema/Manager.pm
+index 2814b99..cb94dd8 100644
+--- a/t/lib/MySchema/Manager.pm
++++ b/t/lib/MySchema/Manager.pm
+@@ -9,7 +9,7 @@ __PACKAGE__->load_components(qw/ Core /);
+ __PACKAGE__->table("manager");
+
+ __PACKAGE__->add_columns(
+- id => { data_type => "INTEGER", is_nullable => 0 },
++ id => { data_type => "INTEGER", is_nullable => 0, is_auto_increment => 1 },
+ name => { data_type => "TEXT", is_nullable => 0 },
+ );
+
+diff --git a/t/lib/MySchema/Master.pm b/t/lib/MySchema/Master.pm
+index ab0f8a5..ebabe1b 100644
+--- a/t/lib/MySchema/Master.pm
++++ b/t/lib/MySchema/Master.pm
+@@ -14,6 +14,7 @@ __PACKAGE__->add_columns(
+ id => {
+ data_type => "INTEGER",
+ is_nullable => 0,
++ is_auto_increment => 1,
+ },
+ text_col => { data_type => "TEXT", is_nullable => 1 },
+ password_col => { data_type => "TEXT", is_nullable => 1 },
+diff --git a/t/lib/MySchema/Note.pm b/t/lib/MySchema/Note.pm
+index 6f22723..54cd8d8 100644
+--- a/t/lib/MySchema/Note.pm
++++ b/t/lib/MySchema/Note.pm
+@@ -9,7 +9,7 @@ __PACKAGE__->load_components(qw/ Core /);
+ __PACKAGE__->table("note");
+
+ __PACKAGE__->add_columns(
+- id => { data_type => "INTEGER", is_nullable => 0 },
++ id => { data_type => "INTEGER", is_nullable => 0, is_auto_increment => 1 },
+ master => { data_type => "INTEGER", is_nullable => 0 },
+ note => { data_type => "TEXT", is_nullable => 0 },
+ );
+diff --git a/t/lib/MySchema/Schedule.pm b/t/lib/MySchema/Schedule.pm
+index c98dd5d..839555a 100644
+--- a/t/lib/MySchema/Schedule.pm
++++ b/t/lib/MySchema/Schedule.pm
+@@ -9,7 +9,7 @@ __PACKAGE__->load_components(qw/ InflateColumn::DateTime Core /);
+ __PACKAGE__->table("schedule");
+
+ __PACKAGE__->add_columns(
+- id => { data_type => "INTEGER", is_nullable => 0 },
++ id => { data_type => "INTEGER", is_nullable => 0, is_auto_increment => 1 },
+ master => { data_type => "INTEGER", is_nullable => 0 },
+ date => { data_type => "DATETIME", is_nullable => 0 },
+ note => { data_type => "TEXT", is_nullable => 0 },
+diff --git a/t/lib/MySchema/Task.pm b/t/lib/MySchema/Task.pm
+index e672c7b..021b457 100644
+--- a/t/lib/MySchema/Task.pm
++++ b/t/lib/MySchema/Task.pm
+@@ -9,7 +9,7 @@ __PACKAGE__->load_components(qw/ Core /);
+ __PACKAGE__->table("task");
+
+ __PACKAGE__->add_columns(
+- id => { data_type => "INTEGER", is_nullable => 0 },
++ id => { data_type => "INTEGER", is_nullable => 0, is_auto_increment => 1 },
+ schedule => { data_type => "INTEGER", is_nullable => 0 },
+ deadline => { data_type => "DATETIME", is_nullable => 1 },
+ detail => { data_type => "TEXT", is_nullable => 0 },
+diff --git a/t/lib/MySchema/TwoNote.pm b/t/lib/MySchema/TwoNote.pm
+index 3133504..db4a82e 100644
+--- a/t/lib/MySchema/TwoNote.pm
++++ b/t/lib/MySchema/TwoNote.pm
+@@ -9,7 +9,7 @@ __PACKAGE__->load_components(qw/ Core /);
+ __PACKAGE__->table("two_note");
+
+ __PACKAGE__->add_columns(
+- id => { data_type => "INTEGER", is_nullable => 0 },
++ id => { data_type => "INTEGER", is_nullable => 0, is_auto_increment => 1 },
+ two_note_id => { data_type => "INTEGER", is_nullable => 0 },
+ note => { data_type => "TEXT", is_nullable => 0 },
+ );
+diff --git a/t/lib/MySchema/Type.pm b/t/lib/MySchema/Type.pm
+index 9b31e6c..4bd1e2b 100644
+--- a/t/lib/MySchema/Type.pm
++++ b/t/lib/MySchema/Type.pm
+@@ -9,7 +9,7 @@ __PACKAGE__->load_components(qw/ Core /);
+ __PACKAGE__->table("type");
+
+ __PACKAGE__->add_columns(
+- id => { data_type => "INTEGER", is_nullable => 0 },
++ id => { data_type => "INTEGER", is_nullable => 0, is_auto_increment => 1 },
+ type => { data_type => "TEXT", is_nullable => 0 },
+ );
+
+diff --git a/t/lib/MySchema/Type2.pm b/t/lib/MySchema/Type2.pm
+index 96507da..fcff006 100644
+--- a/t/lib/MySchema/Type2.pm
++++ b/t/lib/MySchema/Type2.pm
+@@ -9,7 +9,7 @@ __PACKAGE__->load_components(qw/ Core /);
+ __PACKAGE__->table("type2");
+
+ __PACKAGE__->add_columns(
+- id => { data_type => "INTEGER", is_nullable => 0 },
++ id => { data_type => "INTEGER", is_nullable => 0, is_auto_increment => 1 },
+ type => { data_type => "TEXT", is_nullable => 0 },
+ );
+
+diff --git a/t/lib/MySchema/User.pm b/t/lib/MySchema/User.pm
+index 3aaf2e0..2877f72 100644
+--- a/t/lib/MySchema/User.pm
++++ b/t/lib/MySchema/User.pm
+@@ -9,7 +9,7 @@ __PACKAGE__->load_components(qw/ Core /);
+ __PACKAGE__->table("user");
+
+ __PACKAGE__->add_columns(
+- id => { data_type => "INTEGER", is_nullable => 0 },
++ id => { data_type => "INTEGER", is_nullable => 0, is_auto_increment => 1 },
+ master => { data_type => "INTEGER", is_nullable => 1 },
+ name => { data_type => "TEXT", is_nullable => 0 },
+ title => { data_type => "TEXT", is_nullable => 1 },
diff --git a/HTML-FormFu-Model-DBIC-2.03-missing-when.patch b/HTML-FormFu-Model-DBIC-2.03-missing-when.patch
new file mode 100644
index 0000000..72fe735
--- /dev/null
+++ b/HTML-FormFu-Model-DBIC-2.03-missing-when.patch
@@ -0,0 +1,13 @@
+diff --git a/t/update/has_many_repeatable_new_required_when.t b/t/update/has_many_repeatable_new_required_when.t
+index 6696153..ee99be8 100644
+--- a/t/update/has_many_repeatable_new_required_when.t
++++ b/t/update/has_many_repeatable_new_required_when.t
+@@ -46,7 +46,7 @@ my $master = $schema->resultset('Master')->create({ id => 1 });
+ $form->process( {
+ 'id' => 2,
+ 'name' => 'new nick',
+- 'count' => 4,
++ 'count' => 3,
+ 'addresses_1.id' => 2,
+ 'addresses_1.address' => 'new home',
+ 'addresses_2.id' => 3,
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-08 14:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-08 14:35 [rpms/perl-HTML-FormFu-Model-DBIC] rawhide: Fix failures in tests due HTML-FormFu 2.09 Emmanuel Seyman
2026-11-08 14:35 Emmanuel Seyman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox