Browse Source

json-c: Update from 0.12 to 0.12.1

android-5
Fredrik Fornwall 8 years ago
parent
commit
08105423e8
  1. 16
      packages/json-c/001-unused-var.patch
  2. 3
      packages/json-c/build.sh

16
packages/json-c/001-unused-var.patch

@ -1,16 +0,0 @@
diff -Naur json-c-0.12.orig/json_tokener.c json-c-0.12/json_tokener.c
--- json-c-0.12.orig/json_tokener.c 2014-04-11 02:41:08.000000000 +0200
+++ json-c-0.12/json_tokener.c 2016-05-29 21:06:19.949897169 +0200
@@ -352,12 +352,10 @@
case json_tokener_state_inf: /* aka starts with 'i' */
{
- int size;
int size_inf;
int is_negative = 0;
printbuf_memappend_fast(tok->pb, &c, 1);
- size = json_min(tok->st_pos+1, json_null_str_len);
size_inf = json_min(tok->st_pos+1, json_inf_str_len);
char *infbuf = tok->pb->buf;
if (*infbuf == '-')

3
packages/json-c/build.sh

@ -1,8 +1,9 @@
TERMUX_PKG_HOMEPAGE=https://github.com/json-c/json-c/wiki TERMUX_PKG_HOMEPAGE=https://github.com/json-c/json-c/wiki
TERMUX_PKG_DESCRIPTION="A JSON implementation in C" TERMUX_PKG_DESCRIPTION="A JSON implementation in C"
TERMUX_PKG_VERSION=0.12 TERMUX_PKG_VERSION=0.12.1
TERMUX_PKG_MAINTAINER="Balazs Kutil @balazs_kutil" TERMUX_PKG_MAINTAINER="Balazs Kutil @balazs_kutil"
TERMUX_PKG_SRCURL=https://s3.amazonaws.com/json-c_releases/releases/json-c-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=https://s3.amazonaws.com/json-c_releases/releases/json-c-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=2a136451a7932d80b7d197b10441e26e39428d67b1443ec43bbba824705e1123
TERMUX_PKG_FOLDERNAME=json-c-${TERMUX_PKG_VERSION} TERMUX_PKG_FOLDERNAME=json-c-${TERMUX_PKG_VERSION}
termux_step_make () { termux_step_make () {

Loading…
Cancel
Save