From patchwork Fri Jul 3 19:41:27 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 10008 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail01.haj.ipfire.org", Issuer "YR2" (not verified)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4gsPJz0D9vz3wvc for ; Fri, 03 Jul 2026 19:41:55 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [IPv6:2001:678:b28::201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail02.haj.ipfire.org", Issuer "YE1" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4gsPJv5mFMz70f for ; Fri, 03 Jul 2026 19:41:51 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4gsPJp5RHZz378L for ; Fri, 03 Jul 2026 19:41:46 +0000 (UTC) X-Original-To: development@lists.ipfire.org Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail01.haj.ipfire.org", Issuer "YR2" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4gsPJl5HZMz33yl for ; Fri, 03 Jul 2026 19:41:43 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4gsPJh57yyz6tt; Fri, 03 Jul 2026 19:41:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1783107700; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1Hbr5FLyJ6tA2fYtGMRbeFXSFLwGP8d6fXkawLQzaxg=; b=vK/fSMvMiBscuGslNuTxvp0CvzhJC1lfEJ4VBHJyBHbzjtWAfK+0Ax7ESuXq+znNThPFJF deL/EwulrKd7hvqicv/WYFLltaRrBcVOgG6/xnD4OnwAjx7JUojYhIlKggAotkcYTWNp/t 0agwbP+86Pyo6RBcrhbPuX8UW2UUjUzuymt2VmjeZwY6dkhzwkZoYUbCe7p+sGZM54wn8F r0b4KNPletNN3IsOA1NxcDnxmwaKoFgofaVKFNZVuHcJuE8R8lmzRZCQAFAhDCrQVKJydG UdY4BJ6coeRvCulHF2V/jWrrqEVtFEnrO7slzhakAsFxKLdIqACmRNxKguvk9Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1783107700; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1Hbr5FLyJ6tA2fYtGMRbeFXSFLwGP8d6fXkawLQzaxg=; b=dQGx2ArrrQZjsYmO3rZyT5w+tWKd5nNACtPcifZki46z3JbotYL7/M29RMfkUA7VD4QaW3 DI/AVA17WNQrBMBQ== From: Adolf Belka To: development@lists.ipfire.org Cc: Adolf Belka Subject: [PATCH] json-c: Update to version 0.19 Date: Fri, 3 Jul 2026 21:41:27 +0200 Message-ID: <20260703194133.2938870-13-adolf.belka@ipfire.org> In-Reply-To: <20260703194133.2938870-1-adolf.belka@ipfire.org> References: <20260703194133.2938870-1-adolf.belka@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 - Update from version 0.18 to 0.19 - Update of rootfile - Removal of cmake patch as now included in the tarball. - Changelog 0.19 New features * Add support for Commodore Amiga and MorphOS * Allow builds with CMake 4 - sync minimum version across all CMakeLists.txt files * Update openssl command to work for newer versions of openssl. * Add support for building json-c with meson * Support MSVC in packages that use GNU Autoconf. * Add VERSIONINFO to libjson-c.dll * Make json_tokener_free(NULL) a no-op, to simplify cleanup paths. * Explicitly handle NaN values when converting to int * Set errno=RANGE in json_object_get_int/int64/uint64() when the source value can't be represented in the target type. * Make json_parse a bit more useful by adding -u (validate UTF8) and -P (specify arbitrary tokener parse flags), and read from stdin if no filename is provided. * Fix the apps/json_parse "-s" (strict) option so it actually does something, and default to non-strict. Significant changes and bug fixes * Issue #867 - also disallow control characters in keys in JSON_TOKENER_STRICT mode * Issue #875: cast to unsigned char so bytes above 0x7f aren't interpreted as negative, which was causing the strict-mode control characters check to incorrectly trigger. * Issue #881: don't allow json_tokener_new_ex() with a depth < 1 * Fix linkhash breaking -std=c89 * Fixing Cmake build when using clang-cl, avoids errors about redefining existing symbols * Fix AIX build failure - Add CMake detection for getopt.h * Fix bug involving supplemental code points that look like high surrogates * Fix runtime issue with test_util_file.c in Windows (add O_BINARY) * Fix macro WIN32_LEAN_AND_MEAN redefined * Issue #914: Fix Memory usage regression due to newlocale() on macOS * Issue #916: Fix OOM via large array index in json_pointer_set * Issue #923: Avoid stack recursion in json_object_put() * Issue #927: CVE-2026-9146 - update json_object_iterator documentation * Issue #929: CVE-2026-11322 - fix information disclosure bug in apps/json_parse (not installed by default) * Issue #930: fix locale-dependent strtod in json_object_get_double * Issue #931: deep copy values in json_patch copy op to avoid aliasing and cycles Signed-off-by: Adolf Belka --- config/rootfiles/common/json-c | 2 +- lfs/json-c | 7 +++---- .../json-c-0.18_allow_build_with_cmake_4.0.0.patch | 9 --------- 3 files changed, 4 insertions(+), 14 deletions(-) delete mode 100644 src/patches/json-c-0.18_allow_build_with_cmake_4.0.0.patch diff --git a/config/rootfiles/common/json-c b/config/rootfiles/common/json-c index dbf87f32c..c92c46937 100644 --- a/config/rootfiles/common/json-c +++ b/config/rootfiles/common/json-c @@ -21,5 +21,5 @@ #usr/lib/cmake/json-c/json-c-targets.cmake #usr/lib/libjson-c.so usr/lib/libjson-c.so.5 -usr/lib/libjson-c.so.5.4.0 +usr/lib/libjson-c.so.5.5.0 #usr/lib/pkgconfig/json-c.pc diff --git a/lfs/json-c b/lfs/json-c index 2669e3825..b988e0b0f 100644 --- a/lfs/json-c +++ b/lfs/json-c @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2025 IPFire Team # +# Copyright (C) 2007-2026 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -24,7 +24,7 @@ include Config -VER = 0.18 +VER = 0.19 THISAPP = json-c-$(VER) DL_FILE = $(THISAPP).tar.gz @@ -40,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_BLAKE2 = d39bab289976cb2f76bcf3ad8254f7f5b4d11e2aa4dedebd60dc7d131a3f6ec57beacdc575aeeb191cf449d16c549d424172e78464731eeb66305f47f72371c2 +$(DL_FILE)_BLAKE2 = 9d0d96520f6c3f8708d2ff3dd98de49b34982b88e8b3eecd5bb706a2fbca0dd79b23a40b4e30efb6162dd96ffaf986580814826627dda4719e61b727402911c7 install : $(TARGET) @@ -73,7 +73,6 @@ $(subst %,%_BLAKE2,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) - cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/json-c-0.18_allow_build_with_cmake_4.0.0.patch cd $(DIR_APP) && mkdir -pv build cd $(DIR_APP)/build && cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ diff --git a/src/patches/json-c-0.18_allow_build_with_cmake_4.0.0.patch b/src/patches/json-c-0.18_allow_build_with_cmake_4.0.0.patch deleted file mode 100644 index faff25de5..000000000 --- a/src/patches/json-c-0.18_allow_build_with_cmake_4.0.0.patch +++ /dev/null @@ -1,9 +0,0 @@ ---- json-c-0.18/apps/CMakeLists.txt.orig 2024-09-15 18:15:01.000000000 +0200 -+++ json-c-0.18/apps/CMakeLists.txt 2025-05-06 19:08:35.807635404 +0200 -@@ -1,5 +1,5 @@ - --cmake_minimum_required(VERSION 2.8) # see ../CMakeLists.txt for why 2.8 -+cmake_minimum_required(VERSION 3.9...3.12) - - if(POLICY CMP0075) - cmake_policy(SET CMP0075 NEW)