git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #25392 from armijnhemel/json-c

json-c: 0.12 -> 0.12.1

commit27b7e2f7dae0ab57746320e1900f3175ad7f2847 authorJörg Thalheim <Mic92@users.noreply.github.com> dateMon 1 May 2017, 17:57 (10 years ago) parentba4fd616d57c28
2 files changed+2−22
pkgs/development/libraries/json-c/default.nix+2−4 pkgs/development/libraries/json-c/unused-variable.patch−18
pkgs/development/libraries/json-c/default.nix+2−4
@@ -1,14 +1,12 @@
11{ stdenv, fetchurl, autoreconfHook }:
22
33stdenv.mkDerivation rec {
4− name = "json-c-0.12";
4+ name = "json-c-0.12.1";
55 src = fetchurl {
66 url = "https://s3.amazonaws.com/json-c_releases/releases/${name}-nodoc.tar.gz";
7− sha256 = "0dgvjjyb9xva63l6sy70sdch2w4ryvacdmfd3fg2f2v13lqx5mkg";
7+ sha256 = "148jkvpnxmg1fwwigp0nq9qbd5vzpnmgiw3y34w7k6fymalpsqas";
88 };
99
10− patches = [ ./unused-variable.patch ];
11−
1210 outputs = [ "out" "dev" ];
1311
1412 nativeBuildInputs = [ autoreconfHook ]; # won't configure without it, no idea why
pkgs/development/libraries/json-c/unused-variable.patchdeleted−18
@@ -1,18 +0,0 @@
1−See https://groups.google.com/forum/#!topic/json-c/TYodemkG338
2−diff --git a/json_tokener.c b/json_tokener.c
3−index 19de8ef..32bc8af 100644
4−--- a/json_tokener.c
5−+++ b/json_tokener.c
6−@@ -352,12 +352,10 @@ struct json_object* json_tokener_parse_ex(struct json_tokener *tok,
7−
8− case json_tokener_state_inf: /* aka starts with 'i' */
9− {
10−- int size;
11− int size_inf;
12− int is_negative = 0;
13−
14− printbuf_memappend_fast(tok->pb, &c, 1);
15−- size = json_min(tok->st_pos+1, json_null_str_len);
16− size_inf = json_min(tok->st_pos+1, json_inf_str_len);
17− char *infbuf = tok->pb->buf;
18− if (*infbuf == '-')