Blame SOURCES/0155-build-Move-utility-helpers-to-libutil.a.patch

26ccd9
From 6d0e543f8bf01219b793cf4d7a603d3dfd7844ed Mon Sep 17 00:00:00 2001
26ccd9
From: Dan Williams <dan.j.williams@intel.com>
26ccd9
Date: Thu, 28 Apr 2022 15:10:05 -0700
26ccd9
Subject: [PATCH 155/217] build: Move utility helpers to libutil.a
26ccd9
26ccd9
Stop listing util/json.c and util/log.c per command, just add them to
26ccd9
the common libutil.a object.
26ccd9
26ccd9
Link: https://lore.kernel.org/r/165118380572.1676208.16232543117821121022.stgit@dwillia2-desk3.amr.corp.intel.com
26ccd9
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
26ccd9
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
26ccd9
---
26ccd9
 cxl/meson.build    | 2 --
26ccd9
 daxctl/meson.build | 1 -
26ccd9
 ndctl/meson.build  | 2 --
26ccd9
 util/meson.build   | 2 ++
26ccd9
 4 files changed, 2 insertions(+), 5 deletions(-)
26ccd9
26ccd9
diff -up ndctl-71.1/cxl/meson.build.orig ndctl-71.1/cxl/meson.build
26ccd9
--- ndctl-71.1/cxl/meson.build.orig	2022-10-07 16:54:43.451540066 -0400
26ccd9
+++ ndctl-71.1/cxl/meson.build	2022-10-07 16:55:35.330716698 -0400
26ccd9
@@ -3,8 +3,6 @@ cxl_src = [
26ccd9
   'list.c',
26ccd9
   'port.c',
26ccd9
   'memdev.c',
26ccd9
-  '../util/json.c',
26ccd9
-  '../util/log.c',
26ccd9
   'json.c',
26ccd9
   'filter.c',
26ccd9
 ]
26ccd9
diff -up ndctl-71.1/daxctl/meson.build.orig ndctl-71.1/daxctl/meson.build
26ccd9
--- ndctl-71.1/daxctl/meson.build.orig	2022-10-07 16:54:43.333539664 -0400
26ccd9
+++ ndctl-71.1/daxctl/meson.build	2022-10-07 16:55:35.330716698 -0400
26ccd9
@@ -4,7 +4,6 @@ daxctl_src = [
26ccd9
   'list.c',
26ccd9
   'migrate.c',
26ccd9
   'device.c',
26ccd9
-  '../util/json.c',
26ccd9
   'json.c',
26ccd9
   'filter.c',
26ccd9
 ]
26ccd9
diff -up ndctl-71.1/ndctl/meson.build.orig ndctl-71.1/ndctl/meson.build
26ccd9
--- ndctl-71.1/ndctl/meson.build.orig	2022-10-07 16:54:43.333539664 -0400
26ccd9
+++ ndctl-71.1/ndctl/meson.build	2022-10-07 16:55:35.330716698 -0400
26ccd9
@@ -6,11 +6,9 @@ ndctl_src = [
26ccd9
   'check.c',
26ccd9
   'region.c',
26ccd9
   'dimm.c',
26ccd9
-  '../util/log.c',
26ccd9
   '../daxctl/filter.c',
26ccd9
   'filter.c',
26ccd9
   'list.c',
26ccd9
-  '../util/json.c',
26ccd9
   '../daxctl/json.c',
26ccd9
   'json.c',
26ccd9
   'json-smart.c',
26ccd9
diff -up ndctl-71.1/util/meson.build.orig ndctl-71.1/util/meson.build
26ccd9
--- ndctl-71.1/util/meson.build.orig	2022-10-07 16:54:43.334539667 -0400
26ccd9
+++ ndctl-71.1/util/meson.build	2022-10-07 16:55:35.330716698 -0400
26ccd9
@@ -2,6 +2,8 @@ util = static_library('util', [
26ccd9
   'parse-options.c',
26ccd9
   'usage.c',
26ccd9
   'size.c',
26ccd9
+  'json.c',
26ccd9
+  'log.c',
26ccd9
   'main.c',
26ccd9
   'help.c',
26ccd9
   'strbuf.c',