From f67f3acc0a48c733c5f7b1960d8b45a5fe2c342d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 28 Apr 2017 11:34:47 +0200 Subject: [PATCH] perlPackages.FileSlurp: silence perl 5.24.1 warnings this silence annoying warnings happens in nixos-rebuild activating the configuration... setting up /etc... syswrite() is deprecated on :utf8 handles at /nix/store/d51apm4c8mr5hiwh134vdkzgivf4hrl7-perl-File-Slurp-9999.19/lib/perl5/site_perl/5.24.1/File/Slurp.pm line 506. syswrite() is deprecated on :utf8 handles at /nix/store/d51apm4c8mr5hiwh134vdkzgivf4hrl7-perl-File-Slurp-9999.19/lib/perl5/site_perl/5.24.1/File/Slurp.pm line 506. ... syswrite() is deprecated on :utf8 handles at /nix/store/d51apm4c8mr5hiwh134vdkzgivf4hrl7-perl-File-Slurp-9999.19/lib/perl5/site_perl/5.24.1/File/Slurp.pm line 506. setting up tmpfiles --- .../perl-modules/File-Slurp/silence-deprecation.patch | 10 ++++++++++ pkgs/top-level/perl-packages.nix | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 pkgs/development/perl-modules/File-Slurp/silence-deprecation.patch diff --git a/pkgs/development/perl-modules/File-Slurp/silence-deprecation.patch b/pkgs/development/perl-modules/File-Slurp/silence-deprecation.patch new file mode 100644 index 000000000000..7b513f21a29f --- /dev/null +++ b/pkgs/development/perl-modules/File-Slurp/silence-deprecation.patch @@ -0,0 +1,10 @@ +--- File-Slurp-9999.19.orig/lib/File/Slurp.pm 2011-05-30 21:58:53.000000000 +0200 ++++ File-Slurp-9999.19/lib/File/Slurp.pm 2017-04-28 10:05:59.047681755 +0200 +@@ -4,6 +4,7 @@ + + use strict; + use warnings ; ++no warnings 'deprecated'; + + use Carp ; + use Exporter ; diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 4faea93ec47b..86159714a40a 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -5537,6 +5537,8 @@ let self = _self // overrides; _self = with self; { FileSlurp = buildPerlPackage { name = "File-Slurp-9999.19"; + # WARNING: check on next update if deprecation warning is gone + patches = [ ../development/perl-modules/File-Slurp/silence-deprecation.patch ]; src = fetchurl { url = mirror://cpan/authors/id/U/UR/URI/File-Slurp-9999.19.tar.gz; sha256 = "0hrn4nipwx40d6ji8ssgr5nw986z9iqq8cn0kdpbszh9jplynaff";