git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #10953 from rycee/bump/perl-packages

Bump versions of some Perl packages

commit2eec8b978cc80d7e7f3296aedb5b28306781f559 authorPascal Wittmann <PascalWittmann@gmx.net> dateWed 11 Nov 2015, 09:41 (11 years ago) parent55553073fca9ad
3 files changed+79−80
pkgs/development/perl-modules/dbix-class-fix-52leaks.patch+23 pkgs/development/perl-modules/dbix-class-fix-tests.patch−52 pkgs/top-level/perl-packages.nix+56−28
pkgs/development/perl-modules/dbix-class-fix-52leaks.patchnew file+23
@@ -0,0 +1,23 @@
1+From e9d552de92cde6552f35cd45a3572df1e25609cc Mon Sep 17 00:00:00 2001
2+From: Peter Rabbitson <ribasushi@cpan.org>
3+Date: Tue, 19 May 2015 05:49:48 +0200
4+Subject: [PATCH] Make sure tests pass without a compiler present (another step
5+ to RT#74706)
6+
7+--- a/t/52leaks.t
8++++ b/t/52leaks.t
9+@@ -446,6 +446,14 @@ for my $addr (keys %$weak_registry) {
10+ delete $weak_registry->{$addr}
11+ unless $cleared->{hash_merge_singleton}{$weak_registry->{$addr}{weakref}{behavior}}++;
12+ }
13++ elsif ($names =~ /^B::Hooks::EndOfScope::PP::_TieHintHashFieldHash/m) {
14++ # there is one tied lexical which stays alive until GC time
15++ # https://metacpan.org/source/ETHER/B-Hooks-EndOfScope-0.15/lib/B/Hooks/EndOfScope/PP/FieldHash.pm#L24
16++ # simply ignore it here, instead of teaching the leaktracer to examine ties
17++ # the latter is possible yet terrible: https://github.com/dbsrgits/dbix-class/blob/v0.082820/t/lib/DBICTest/Util/LeakTracer.pm#L113-L117
18++ delete $weak_registry->{$addr}
19++ unless $cleared->{bheos_pptiehinthashfieldhash}++;
20++ }
21+ elsif ($names =~ /^DateTime::TimeZone::UTC/m) {
22+ # DT is going through a refactor it seems - let it leak zones for now
23+ delete $weak_registry->{$addr};
pkgs/development/perl-modules/dbix-class-fix-tests.patchdeleted−52
@@ -1,52 +0,0 @@
1−diff --git a/t/multi_create/standard.t b/t/multi_create/standard.t
2−index 5a02947..6c1efd8 100644
3−--- a/t/multi_create/standard.t
4−+++ b/t/multi_create/standard.t
5−@@ -444,7 +444,11 @@ throws_ok ( sub {
6− #$t->cd($t->new_related('cd', { artist => undef } ) );
7− #$t->{_rel_in_storage} = 0;
8− $t->insert;
9−-}, qr/cd.artist may not be NULL/, "Exception propogated properly");
10−+}, qr/DBI Exception.+(?x:
11−+ \QNOT NULL constraint failed: cd.artist\E
12−+ |
13−+ \Qcd.artist may not be NULL\E
14−+)/s, "Exception propogated properly");
15−
16− lives_ok ( sub {
17− $schema->resultset('CD')->create ({
18−diff --git a/t/relationship/update_or_create_multi.t b/t/relationship/update_or_create_multi.t
19−index 8710048..c7cce7a 100644
20−--- a/t/relationship/update_or_create_multi.t
21−+++ b/t/relationship/update_or_create_multi.t
22−@@ -69,7 +69,12 @@ throws_ok {
23− year => 2020,
24− title => 'the best thing since sliced bread',
25− })
26−-} qr/\Qcd.artist may not be NULL/, 'ambiguous find + create failed';
27−+} qr/DBI Exception.+(?x:
28−+ \QNOT NULL constraint failed: cd.artist\E
29−+ |
30−+ \Qcd.artist may not be NULL\E
31−+)/s, 'ambiguous find + create failed'
32−+;
33−
34− # expect a create, after a failed search using *only* the
35− # *current* relationship and the unique column constraints
36−diff --git a/t/storage/error.t b/t/storage/error.t
37−index d5980eb..61d6782 100644
38−--- a/t/storage/error.t
39−+++ b/t/storage/error.t
40−@@ -15,7 +15,11 @@ warnings_are ( sub {
41− sub {
42− $schema->resultset('CD')->create({ title => 'vacation in antarctica' })
43− },
44−- qr/DBI Exception.+cd\.artist.+NULL/s
45−+ qr/DBI Exception.+(?x:
46−+ \QNOT NULL constraint failed: cd.artist\E
47−+ |
48−+ \Qcd.artist may not be NULL\E
49−+ )/s
50− ); # as opposed to some other error
51− }, [], 'No warnings besides exception' );
52−
pkgs/top-level/perl-packages.nix+56−28
@@ -1270,6 +1270,21 @@ let self = _self // overrides; _self = with self; {
12701270 };
12711271 };
12721272
1273+ CatalystViewCSV = buildPerlPackage rec {
1274+ name = "Catalyst-View-CSV-1.7";
1275+ src = fetchurl {
1276+ url = "mirror://cpan/authors/id/M/MC/MCB/${name}.tar.gz";
1277+ sha256 = "e41326b6099891f244b432921ed10096ac619f32b8c4f8b41633313bd54662db";
1278+ };
1279+ buildInputs = [ CatalystActionRenderView CatalystModelDBICSchema CatalystPluginConfigLoader CatalystRuntime CatalystXComponentTraits ConfigGeneral DBDSQLite DBIxClass Moose TestException ];
1280+ propagatedBuildInputs = [ CatalystRuntime TextCSV URI ];
1281+ meta = {
1282+ description = "CSV view class";
1283+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
1284+ maintainers = [ maintainers.rycee ];
1285+ };
1286+ };
1287+
12731288 CatalystViewDownload = buildPerlPackage rec {
12741289 name = "Catalyst-View-Download-0.09";
12751290 src = fetchurl {
@@ -3108,19 +3123,23 @@ let self = _self // overrides; _self = with self; {
31083123 };
31093124 };
31103125
3111− DBIxClass = buildPerlPackage {
3112− name = "DBIx-Class-0.082801";
3126+ DBIxClass = buildPerlPackage rec {
3127+ name = "DBIx-Class-0.082820";
31133128 src = fetchurl {
3114− url = mirror://cpan/authors/id/R/RI/RIBASUSHI/DBIx-Class-0.082801.tar.gz;
3115− sha256 = "889d6f9139d8e73f5524dfa211019126042e84cb7a0ec30cd2ed7d315d73484b";
3129+ url = "mirror://cpan/authors/id/R/RI/RIBASUSHI/${name}.tar.gz";
3130+ sha256 = "7b6083a1273d474d785aa93581dc1da334bbe5d83c741574ee2e3942559daeb9";
31163131 };
3117− buildInputs = [ DBDSQLite PackageStash TestDeep TestException TestWarn ];
3118− propagatedBuildInputs = [ ClassAccessorGrouped ClassC3Componentised ClassInspector ConfigAny ContextPreserve DBI DataDumperConcise DataPage DevelGlobalDestruction HashMerge MROCompat ModuleFind Moo PathClass SQLAbstract ScopeGuard SubName TryTiny namespaceclean ];
3119− doCheck = false;
3132+ buildInputs = [ DBDSQLite PackageStash SQLTranslator TestDeep TestException TestWarn ];
3133+ propagatedBuildInputs = [ ClassAccessorGrouped ClassC3Componentised ClassInspector ConfigAny ContextPreserve DBI DataDumperConcise DataPage DevelGlobalDestruction HashMerge MROCompat ModuleFind Moo PathClass SQLAbstract ScopeGuard SubName namespaceclean ];
3134+ patches = [
3135+ # Fix test error inside t/52leaks.t
3136+ ../development/perl-modules/dbix-class-fix-52leaks.patch
3137+ ];
31203138 meta = {
31213139 homepage = http://www.dbix-class.org/;
31223140 description = "Extensible and flexible object <-> relational mapper";
31233141 license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
3142+ maintainers = [ maintainers.rycee ];
31243143 };
31253144 };
31263145
@@ -7214,17 +7233,18 @@ let self = _self // overrides; _self = with self; {
72147233 };
72157234 };
72167235
7217− Moo = buildPerlPackage {
7218− name = "Moo-1.006000";
7236+ Moo = buildPerlPackage rec {
7237+ name = "Moo-2.000002";
72197238 src = fetchurl {
7220− url = mirror://cpan/authors/id/H/HA/HAARG/Moo-1.006000.tar.gz;
7221− sha256 = "0gjh6dyz825cwjibq2wlpx14drjqx4pxxh931p4x3jd2617hax17";
7239+ url = "mirror://cpan/authors/id/H/HA/HAARG/${name}.tar.gz";
7240+ sha256 = "fb4bfa751f0dd06bd70f2e06e811f85a640501f263c228a8efafbf6b26691fd4";
72227241 };
72237242 buildInputs = [ TestFatal ];
7224− propagatedBuildInputs = [ ClassMethodModifiers DevelGlobalDestruction ImportInto ModuleRuntime RoleTiny strictures ];
7243+ propagatedBuildInputs = [ ClassMethodModifiers DevelGlobalDestruction ModuleRuntime RoleTiny ];
72257244 meta = {
72267245 description = "Minimalist Object Orientation (with Moose compatibility)";
72277246 license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
7247+ maintainers = [ maintainers.rycee ];
72287248 };
72297249 };
72307250
@@ -9470,16 +9490,17 @@ let self = _self // overrides; _self = with self; {
94709490 };
94719491 };
94729492
9473− RoleTiny = buildPerlPackage {
9474− name = "Role-Tiny-1.003003";
9493+ RoleTiny = buildPerlPackage rec {
9494+ name = "Role-Tiny-2.000001";
94759495 src = fetchurl {
9476− url = mirror://cpan/authors/id/H/HA/HAARG/Role-Tiny-1.003003.tar.gz;
9477− sha256 = "1k823g4wnya18yx2v1xrfl73qqavqpzvaydyg1r7gdzcdvdwl4mp";
9496+ url = "mirror://cpan/authors/id/H/HA/HAARG/${name}.tar.gz";
9497+ sha256 = "31883410a7c85d6dc7501c718b1f83edba013a7b9bbccf0338a1033c391f296d";
94789498 };
94799499 buildInputs = [ TestFatal ];
94809500 meta = {
9481− description = "Roles, like a nouvelle cuisine portion size slice of Moose";
9501+ description = "Roles. Like a nouvelle cuisine portion size slice of Moose";
94829502 license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
9503+ maintainers = [ maintainers.rycee ];
94839504 };
94849505 };
94859506
@@ -9676,17 +9697,18 @@ let self = _self // overrides; _self = with self; {
96769697 buildInputs = [ pkgs.which ];
96779698 };
96789699
9679− SoftwareLicense = buildPerlPackage {
9680− name = "Software-License-0.103005";
9700+ SoftwareLicense = buildPerlPackage rec {
9701+ name = "Software-License-0.103010";
96819702 src = fetchurl {
9682− url = mirror://cpan/authors/id/R/RJ/RJBS/Software-License-0.103005.tar.gz;
9683− sha256 = "050a14e0b3fb15763fd267fdd8ccc7ec8c459d8cc830b0bdc39ce09f5910f88c";
9703+ url = "mirror://cpan/authors/id/R/RJ/RJBS/${name}.tar.gz";
9704+ sha256 = "929fbace96f69a0977a0380000820c93fc1af4e973a422c73e6cd254405fa47c";
96849705 };
9685− propagatedBuildInputs = [ DataSection SubInstall TextTemplate ];
9706+ propagatedBuildInputs = [ DataSection TextTemplate TryTiny ];
96869707 meta = {
9687− homepage = https://github.com/rjbs/software-license;
9708+ homepage = https://github.com/rjbs/Software-License;
96889709 description = "Packages that provide templated software licenses";
96899710 license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
9711+ maintainers = [ maintainers.rycee ];
96909712 };
96919713 };
96929714
@@ -9717,17 +9739,18 @@ let self = _self // overrides; _self = with self; {
97179739 propagatedBuildInputs = [ IOStringy OLEStorageLight ];
97189740 };
97199741
9720− SQLAbstract = buildPerlPackage {
9721− name = "SQL-Abstract-1.80";
9742+ SQLAbstract = buildPerlPackage rec {
9743+ name = "SQL-Abstract-1.81";
97229744 src = fetchurl {
9723− url = mirror://cpan/authors/id/R/RI/RIBASUSHI/SQL-Abstract-1.80.tar.gz;
9724− sha256 = "de4d0507fca0c6340c17867abca0632017bd56594443e67ea6ace826ba9a07a2";
9745+ url = "mirror://cpan/authors/id/R/RI/RIBASUSHI/${name}.tar.gz";
9746+ sha256 = "5f4d5618ce2424d62bbfdb5228b382e8be0e0ccedbb273d6d850e25d07e64f9f";
97259747 };
97269748 buildInputs = [ TestDeep TestException TestWarn ];
97279749 propagatedBuildInputs = [ HashMerge MROCompat Moo ];
97289750 meta = {
97299751 description = "Generate SQL from Perl data structures";
97309752 license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
9753+ maintainers = [ maintainers.rycee ];
97319754 };
97329755 };
97339756
@@ -11525,7 +11548,12 @@ let self = _self // overrides; _self = with self; {
1152511548 name = "Text-CSV-1.33";
1152611549 src = fetchurl {
1152711550 url = "mirror://cpan/authors/id/M/MA/MAKAMAKA/${name}.tar.gz";
11528− sha256 = "05a1nayxv04n0hx7y3m8327ijm34k9nhngrbxl18zmgzpawqynww";
11551+ sha256 = "9c5b8fb9baffd58f02ed2b3f0b6d9a6454198f18a80e7f3a049680ddbdb24115";
11552+ };
11553+ meta = {
11554+ description = "Comma-separated values manipulator (using XS or PurePerl)";
11555+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
11556+ maintainers = [ maintainers.rycee ];
1152911557 };
1153011558 };
1153111559