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

Re: [XEN PATCH 04/11] tools/configure: Introduce deps on json-c lib for libxl


  • To: Anthony PERARD <anthony@xxxxxxxxxxxxxx>
  • From: Jason Andryuk <jason.andryuk@xxxxxxx>
  • Date: Sun, 31 Aug 2025 10:42:01 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • 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=UYefZG4gNLNkaBAmS/Edmymgpv+xYAJFMTGExgmzmpc=; b=b28niprxvcVS7i1bFDXLS3IV4nRDerpXG3xmfv4X4FKY77zTX+o8Ux5HcKyjewxgS5cXmjOk13ftKDyP9LzQiXaW3FwVVW0FU9d5gX+CIDq7ClDpVOHLBeP2wehoo+Z8XkqTjA0km6eKHj+y81jHuQW3OH5y5E3NT2lyRl3f275PfEKW/G2b4vhPGeKa9FSi4+sfF2GnPywst0TYz2ZxbgrSJnIx1DpSXtYE9ff0dm8oW+W9EGR/3SGHMAcC3QCzynPoYVLedi4KLfDd7+i+SxW1OKqz/NONwfbuzEnFIMfvymR7qQx09yjm+21qDCq0FAxINZjVaAfIbGoenDctYQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AOL8FJS0/qPmvPcjgt8U7bKjZOrFQwx2E8uZ9NeTJ17JOom+Ty9+f/HDoFwVGvBlRoORi1TChjASJCyf9v5VrGQuH2oWaBjWrkc5E5P2dHrmzdO6Qy16g+Le4tfOyDHmmcYdxahgZO8ibpRhe7FjizOF+mdHoIjaK9ejjyMZl55jEU/KR1ChIMv4dps295IX7UqAJcwFZcjSrBJVP9r5rYt1sdZ82NLMQl3kHigYE+gjBicIUBTIHnlnl5b8ZemXfUwoiGsQdupbJa0IAIFF7dmJSD+wt9eNLK/zfu+f/8MuYGkaAy7AMz268As1vbHpzi6U4z02y7HEm2/0QP7dug==
  • Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>
  • Delivery-date: Sun, 31 Aug 2025 14:42:26 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 2025-08-29 09:17, Anthony PERARD wrote:
On Wed, Aug 27, 2025 at 11:01:59AM -0400, Jason Andryuk wrote:
On 2025-08-08 10:55, Anthony PERARD wrote:
From: Anthony PERARD <anthony.perard@xxxxxxxxxx>

To replace yajl.

Introduce YAJL_LIBS variable, to be able to remove "-lyajl" later.

Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>

Should the two configure changes be merged and placed at the end of the
series?  That avoids a half implemented conversion in between.

It might be half-converted, but it's fully working. Every single patch
introduce changes that can be use right away. I've actually make use of
this possibility. On every single patch, we can run ./testidl, which
will exercise both lib against each other.

./testidl does LibxlObj-to-JSONstring and back and forth. So on the next
commit, we would have JSON generated with json-c, which is then parsed
with YAJL, to finally be generated to JSON with json-c again, then both
JSON output are compared.

I've actually prepared the patch "libxl: Convert libxl__json_parse() to
use json-c' last, then put it in front and check that ./testidl was
still working.

This help me be confident enough that the conversion to json-c was
correct.

So if we squash both config change, every patch until the config change
would only introduce dead code.

Oh, I didn't realize that.  Yes, your approach sounds great.

Thanks,
Jason



 


Rackspace

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