Skip to content

Commit

Permalink
cygwin: perl-Encode-Locale fix
Browse files Browse the repository at this point in the history
disabling tests which test setting environment variable with a name outside
7-bit ASCII.  this causes a segmentation fault in cygwin.
  • Loading branch information
garbas committed Jun 3, 2015
1 parent bcc8eec commit 7b2448d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/top-level/perl-packages.nix
Expand Up @@ -3384,6 +3384,11 @@ let self = _self // overrides; _self = with self; {
url = "mirror://cpan/modules/by-module/Encode/${name}.tar.gz";
sha256 = "0m9d1vdphlyzybgmdanipwd9ndfvyjgk3hzw250r299jjgh3fqzp";
};
preCheck = if stdenv.isCygwin then ''
sed -i"" -e "s@plan tests => 13@plan tests => 10@" t/env.t
sed -i"" -e "s@ok(env(\"\\\x@#ok(env(\"\\\x@" t/env.t
sed -i"" -e "s@ok(\$ENV{\"\\\x@#ok(\$ENV{\"\\\x@" t/env.t
'' else null;
};

EnvPath = buildPerlPackage {
Expand Down

0 comments on commit 7b2448d

Please sign in to comment.