[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XEN PATCH for-4.21] tools: require at least json-c 0.15


  • To: Anthony PERARD <anthony@xxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Thu, 23 Oct 2025 16:05:56 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ep14Fjn2U69DKo4o9l0vy3NCooP1RZIdT7PiC9uK0LY=; b=N3k+p6fGCw3EgX3pNFxBTHtcc8TzC7h8FzODMyW8wQjFy+71FDxtKSYOI0LJALmWRjGzVVbOibYb3CCVMsCEhSHsEbJwQ79ZNvOJzkgThhWL4IcxlorEs9IvFMgsix1D59R1Dy+m+Q1bkgCJ+3CJsqNBOHjyXt9gjS1Zw3SgRC0NMiNRNf3lFzdDLOzBeyuhDsvPLXwSn1+xg1EbpmlexUSZ3wXC8K/bzJUoMASA0vgrx6UajB82/Ea5MmAxZlbCng+Eabo+FZUcbQPDpL2y1RtcZ2mtgFOWAnzRlzJ70U6Z3RJFDi7wOl1u1c0cy/pjczqp0NkAaWsee+75REZzfw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hBHIXmVvI5wanT1D2KG0mTPWptcSr5FZJ6PnPs1NC9yRiLy7Zq9FH73G6tup2HU1YItTjjS8E6EBGHfJQT/PY4RMxUCbvctdTi9LINm7nuOsVCvk1Ze1YPldcWlJRjgHpEdWMJpKd7dZGlwYRzwAsy/zyGPvKIofN34xDu3SqST4OzZl+jaGtTsySCGdhtoYANDWDLL+q13EAVjNFq1IxARubINrzlGLlO0poH9IYsjfQ7FrtogeePV9MSWeej+yZOvMiETaCsdWcu8leV4HBrHzHd3ivQexwHCT2j/H3R8C0TrnJtjawEOpx8HP/w9xN4KVYyQ/drtuvo9pjJYGBQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Jan Beulich <jbeulich@xxxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Thu, 23 Oct 2025 15:06:12 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 23/10/2025 4:04 pm, Anthony PERARD wrote:
> On Thu, Oct 23, 2025 at 03:45:55PM +0100, Andrew Cooper wrote:
>> On 23/10/2025 9:57 am, Anthony PERARD wrote:
>>> From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
>>>
>>> If not available, fallback to using YAJL.
>>>
>>> The code is using json_c_visit() which was introduced in 0.13.
>>> json_object_new_null() and json_object_new_uint64() where added to
>>> 0.14. And the last one json_object_new_array_ext() was introduced in
>>> 0.15.
>>>
>>> Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
>> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
>>
>> However, you should adjust README and possibly Changelog.md to give this
>> new minimum version.
>
> Will this do?
>
> diff --git a/CHANGELOG.md b/CHANGELOG.md
> index 0cf9ad2d95..fc4f6d7c8a 100644
> --- a/CHANGELOG.md
> +++ b/CHANGELOG.md
> @@ -14,8 +14,8 @@ The format is based on [Keep a 
> Changelog](https://keepachangelog.com/en/1.0.0/)
>   - Debian Trixie added to CI.  Debian Bullseye retired from CI for RISC-V due
>     to the baseline change.
>   - Linux based device model stubdomains are now fully supported.
> - - New dependency on library json-c, the toolstack will prefer it to `YAJL`
> -   when available.
> + - New dependency on library json-c 0.15 or later, the toolstack will prefer 
> it
> +   to `YAJL` when available.
>
>   - On x86:
>     - Restrict the cache flushing done as a result of guest physical memory 
> map
> diff --git a/README b/README
> index eaee78bd73..53a4d5c2ae 100644
> --- a/README
> +++ b/README
> @@ -53,7 +53,8 @@ provided by your OS distributor:
>      * Development install of Python 2.7 or later (e.g., python-dev)
>      * Development install of curses (e.g., libncurses-dev)
>      * Development install of uuid (e.g. uuid-dev)
> -    * Development install of json-c (e.g. libjson-c-dev) or yajl (e.g. 
> libyajl-dev)
> +    * Development install of json-c 0.15 or later (e.g. libjson-c-dev)
> +      or yajl (e.g. libyajl-dev)
>      * Development install of libaio (e.g. libaio-dev) version 0.3.107 or
>        greater.
>      * Development install of GLib v2.0 (e.g. libglib2.0-dev)

Yup.  LGTM.

~Andrew



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.