Blame SOURCES/0084-ndctl-Jettison-autotools.patch

2eb93d
From 44f2f06c688fec84db41b26b47c2de45040906eb Mon Sep 17 00:00:00 2001
2eb93d
From: Dan Williams <dan.j.williams@intel.com>
2eb93d
Date: Wed, 5 Jan 2022 13:33:03 -0800
2eb93d
Subject: [PATCH 084/217] ndctl: Jettison autotools
2eb93d
2eb93d
Similar to several other projects, ndctl has run its course with autotools
2eb93d
and sees a better path forward with Meson. Now that the Meson conversion is
2eb93d
complete, remove the autotools infrastructure.
2eb93d
2eb93d
Link: https://lore.kernel.org/r/164141838349.3990253.14745993061779737304.stgit@dwillia2-desk3.amr.corp.intel.com
2eb93d
Tested-by: Alison Schofield <alison.schofield@intel.com>
2eb93d
Tested-by: Vaibhav Jain <vaibhav@linux.ibm.com>
2eb93d
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2eb93d
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
2eb93d
---
2eb93d
 .gitignore                        |  58 -------
2eb93d
 Documentation/cxl/Makefile.am     |  61 -------
2eb93d
 Documentation/cxl/lib/Makefile.am |  58 -------
2eb93d
 Documentation/daxctl/Makefile.am  |  72 --------
2eb93d
 Documentation/ndctl/Makefile.am   | 103 ------------
2eb93d
 Makefile.am                       | 104 ------------
2eb93d
 Makefile.am.in                    |  46 -----
2eb93d
 autogen.sh                        |  28 ----
2eb93d
 configure.ac                      | 270 ------------------------------
2eb93d
 cxl/Makefile.am                   |  25 ---
2eb93d
 cxl/lib/Makefile.am               |  32 ----
2eb93d
 daxctl/Makefile.am                |  45 -----
2eb93d
 daxctl/lib/Makefile.am            |  42 -----
2eb93d
 ndctl.spec.in                     |  28 +---
2eb93d
 ndctl/Makefile.am                 |  86 ----------
2eb93d
 ndctl/lib/Makefile.am             |  58 -------
2eb93d
 rhel/meson.build                  |   3 +-
2eb93d
 sles/meson.build                  |   3 +-
2eb93d
 test/Makefile.am                  | 169 -------------------
2eb93d
 19 files changed, 4 insertions(+), 1287 deletions(-)
2eb93d
 delete mode 100644 Documentation/cxl/Makefile.am
2eb93d
 delete mode 100644 Documentation/cxl/lib/Makefile.am
2eb93d
 delete mode 100644 Documentation/daxctl/Makefile.am
2eb93d
 delete mode 100644 Documentation/ndctl/Makefile.am
2eb93d
 delete mode 100644 Makefile.am
2eb93d
 delete mode 100644 Makefile.am.in
2eb93d
 delete mode 100755 autogen.sh
2eb93d
 delete mode 100644 configure.ac
2eb93d
 delete mode 100644 cxl/Makefile.am
2eb93d
 delete mode 100644 cxl/lib/Makefile.am
2eb93d
 delete mode 100644 daxctl/Makefile.am
2eb93d
 delete mode 100644 daxctl/lib/Makefile.am
2eb93d
 delete mode 100644 ndctl/Makefile.am
2eb93d
 delete mode 100644 ndctl/lib/Makefile.am
2eb93d
 delete mode 100644 test/Makefile.am
2eb93d
2eb93d
diff -up ndctl-71.1/.gitignore.orig ndctl-71.1/.gitignore
2eb93d
--- ndctl-71.1/.gitignore.orig	2022-10-07 18:39:13.182886649 -0400
2eb93d
+++ ndctl-71.1/.gitignore	2022-10-07 18:39:43.934991351 -0400
2eb93d
@@ -1,63 +1,5 @@
2eb93d
-*.o
2eb93d
-*.lo
2eb93d
-*.xml
2eb93d
-.deps/
2eb93d
-.libs/
2eb93d
-Makefile
2eb93d
-!contrib/Makefile
2eb93d
-Makefile.in
2eb93d
-/aclocal.m4
2eb93d
-/autom4te.cache
2eb93d
-/build-aux
2eb93d
-/config.h
2eb93d
-/config.log
2eb93d
-/config.status
2eb93d
-/configure
2eb93d
-/libtool
2eb93d
-/stamp-h1
2eb93d
-*.1
2eb93d
-*.3
2eb93d
-Documentation/daxctl/asciidoc.conf
2eb93d
-Documentation/ndctl/asciidoc.conf
2eb93d
-Documentation/cxl/asciidoc.conf
2eb93d
-Documentation/cxl/lib/asciidoc.conf
2eb93d
-Documentation/daxctl/asciidoctor-extensions.rb
2eb93d
-Documentation/ndctl/asciidoctor-extensions.rb
2eb93d
-Documentation/cxl/asciidoctor-extensions.rb
2eb93d
-Documentation/cxl/lib/asciidoctor-extensions.rb
2eb93d
-.dirstamp
2eb93d
 build/
2eb93d
-daxctl/config.h
2eb93d
-daxctl/daxctl
2eb93d
-daxctl/lib/libdaxctl.la
2eb93d
-daxctl/lib/libdaxctl.pc
2eb93d
-*.a
2eb93d
-ndctl/config.h
2eb93d
-ndctl/lib/libndctl.pc
2eb93d
-ndctl/ndctl
2eb93d
 rhel/ndctl.spec
2eb93d
 sles/ndctl.spec
2eb93d
-version.m4
2eb93d
 *.swp
2eb93d
-cscope.files
2eb93d
-cscope*.out
2eb93d
 tags
2eb93d
-test/*.log
2eb93d
-test/*.trs
2eb93d
-test/dax-dev
2eb93d
-test/dax-errors
2eb93d
-test/dax-pmd
2eb93d
-test/daxdev-errors
2eb93d
-test/device-dax
2eb93d
-test/dsm-fail
2eb93d
-test/hugetlb
2eb93d
-test/image
2eb93d
-test/libndctl
2eb93d
-test/mmap
2eb93d
-test/pmem-ns
2eb93d
-test/smart-listen
2eb93d
-test/smart-notify
2eb93d
-test/fio.job
2eb93d
-test/local-write-0-verify.state
2eb93d
-test/ack-shutdown-count-set
2eb93d
-test/list-smart-dimm
2eb93d
diff -up ndctl-71.1/Documentation/cxl/Makefile.am.orig /dev/null
2eb93d
--- ndctl-71.1/Documentation/cxl/Makefile.am	2022-10-07 18:39:13.067886258 -0400
2eb93d
+++ /dev/null	2022-07-27 11:30:34.495212588 -0400
2eb93d
@@ -1,61 +0,0 @@
2eb93d
-# SPDX-License-Identifier: GPL-2.0
2eb93d
-# Copyright (C) 2020-2021 Intel Corporation. All rights reserved.
2eb93d
-
2eb93d
-if USE_ASCIIDOCTOR
2eb93d
-
2eb93d
-do_subst = sed -e 's,@Utility@,Cxl,g' -e's,@utility@,cxl,g'
2eb93d
-CONFFILE = asciidoctor-extensions.rb
2eb93d
-asciidoctor-extensions.rb: ../asciidoctor-extensions.rb.in
2eb93d
-	$(AM_V_GEN) $(do_subst) < $< > $@
2eb93d
-
2eb93d
-else
2eb93d
-
2eb93d
-do_subst = sed -e 's,UTILITY,cxl,g'
2eb93d
-CONFFILE = asciidoc.conf
2eb93d
-asciidoc.conf: ../asciidoc.conf.in
2eb93d
-	$(AM_V_GEN) $(do_subst) < $< > $@
2eb93d
-
2eb93d
-endif
2eb93d
-
2eb93d
-man1_MANS = \
2eb93d
-	cxl.1 \
2eb93d
-	cxl-list.1 \
2eb93d
-	cxl-read-labels.1 \
2eb93d
-	cxl-write-labels.1 \
2eb93d
-	cxl-zero-labels.1
2eb93d
-
2eb93d
-EXTRA_DIST = $(man1_MANS)
2eb93d
-
2eb93d
-CLEANFILES = $(man1_MANS)
2eb93d
-
2eb93d
-XML_DEPS = \
2eb93d
-	../../version.m4 \
2eb93d
-	../copyright.txt \
2eb93d
-	Makefile \
2eb93d
-	$(CONFFILE)
2eb93d
-
2eb93d
-RM ?= rm -f
2eb93d
-
2eb93d
-if USE_ASCIIDOCTOR
2eb93d
-
2eb93d
-%.1: %.txt $(XML_DEPS)
2eb93d
-	$(AM_V_GEN)$(RM) $@+ $@ && \
2eb93d
-		$(ASCIIDOC) -b manpage -d manpage -acompat-mode \
2eb93d
-		-I. -rasciidoctor-extensions \
2eb93d
-		-amansource=cxl -amanmanual="cxl Manual" \
2eb93d
-		-andctl_version=$(VERSION) -o $@+ $< && \
2eb93d
-		mv $@+ $@
2eb93d
-
2eb93d
-else
2eb93d
-
2eb93d
-%.xml: %.txt $(XML_DEPS)
2eb93d
-	$(AM_V_GEN)$(RM) $@+ $@ && \
2eb93d
-		$(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf \
2eb93d
-		--unsafe -acxl_version=$(VERSION) -o $@+ $< && \
2eb93d
-		mv $@+ $@
2eb93d
-
2eb93d
-%.1: %.xml $(XML_DEPS)
2eb93d
-	$(AM_V_GEN)$(RM) $@ && \
2eb93d
-		$(XMLTO) -o . -m ../manpage-normal.xsl man $<
2eb93d
-
2eb93d
-endif
2eb93d
diff -up ndctl-71.1/Documentation/cxl/lib/Makefile.am /dev/null
2eb93d
--- ndctl-71.1/Documentation/cxl/lib/Makefile.am	2022-10-07 18:39:13.071886271 -0400
2eb93d
+++ /dev/null	2022-07-27 11:30:34.495212588 -0400
2eb93d
@@ -1,58 +0,0 @@
2eb93d
-# SPDX-License-Identifier: GPL-2.0
2eb93d
-# Copyright (C) 2020-2021 Intel Corporation. All rights reserved.
2eb93d
-
2eb93d
-if USE_ASCIIDOCTOR
2eb93d
-
2eb93d
-do_subst = sed -e 's,@Utility@,Libcxl,g' -e's,@utility@,libcxl,g'
2eb93d
-CONFFILE = asciidoctor-extensions.rb
2eb93d
-asciidoctor-extensions.rb: ../../asciidoctor-extensions.rb.in
2eb93d
-	$(AM_V_GEN) $(do_subst) < $< > $@
2eb93d
-
2eb93d
-else
2eb93d
-
2eb93d
-do_subst = sed -e 's,UTILITY,libcxl,g'
2eb93d
-CONFFILE = asciidoc.conf
2eb93d
-asciidoc.conf: ../../asciidoc.conf.in
2eb93d
-	$(AM_V_GEN) $(do_subst) < $< > $@
2eb93d
-
2eb93d
-endif
2eb93d
-
2eb93d
-man3_MANS = \
2eb93d
-	libcxl.3 \
2eb93d
-	cxl_new.3
2eb93d
-
2eb93d
-EXTRA_DIST = $(man3_MANS)
2eb93d
-
2eb93d
-CLEANFILES = $(man3_MANS)
2eb93d
-
2eb93d
-XML_DEPS = \
2eb93d
-	../../../version.m4 \
2eb93d
-	../../copyright.txt \
2eb93d
-	Makefile \
2eb93d
-	$(CONFFILE)
2eb93d
-
2eb93d
-RM ?= rm -f
2eb93d
-
2eb93d
-if USE_ASCIIDOCTOR
2eb93d
-
2eb93d
-%.3: %.txt $(XML_DEPS)
2eb93d
-	$(AM_V_GEN)$(RM) $@+ $@ && \
2eb93d
-		$(ASCIIDOC) -b manpage -d manpage -acompat-mode \
2eb93d
-		-I. -rasciidoctor-extensions \
2eb93d
-		-amansource=libcxl -amanmanual="libcxl Manual" \
2eb93d
-		-andctl_version=$(VERSION) -o $@+ $< && \
2eb93d
-		mv $@+ $@
2eb93d
-
2eb93d
-else
2eb93d
-
2eb93d
-%.xml: %.txt $(XML_DEPS)
2eb93d
-	$(AM_V_GEN)$(RM) $@+ $@ && \
2eb93d
-		$(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf \
2eb93d
-		--unsafe -alibcxl_version=$(VERSION) -o $@+ $< && \
2eb93d
-		mv $@+ $@
2eb93d
-
2eb93d
-%.3: %.xml $(XML_DEPS)
2eb93d
-	$(AM_V_GEN)$(RM) $@ && \
2eb93d
-		$(XMLTO) -o . -m ../../manpage-normal.xsl man $<
2eb93d
-
2eb93d
-endif
2eb93d
diff -up ndctl-71.1/Documentation/daxctl/Makefile.am /dev/null
2eb93d
--- ndctl-71.1/Documentation/daxctl/Makefile.am	2022-10-07 18:42:19.341520462 -0400
2eb93d
+++ /dev/null	2022-07-27 11:30:34.495212588 -0400
2eb93d
@@ -1,66 +0,0 @@
2eb93d
-# SPDX-License-Identifier: GPL-2.0
2eb93d
-# Copyright (C) 2015-2020 Intel Corporation. All rights reserved.
2eb93d
-
2eb93d
-if USE_ASCIIDOCTOR
2eb93d
-
2eb93d
-do_subst = sed -e 's,@Utility@,Daxctl,g' -e's,@utility@,daxctl,g'
2eb93d
-CONFFILE = asciidoctor-extensions.rb
2eb93d
-asciidoctor-extensions.rb: ../asciidoctor-extensions.rb.in
2eb93d
-	$(AM_V_GEN) $(do_subst) < $< > $@
2eb93d
-
2eb93d
-else
2eb93d
-
2eb93d
-do_subst = sed -e 's,UTILITY,daxctl,g'
2eb93d
-CONFFILE = asciidoc.conf
2eb93d
-asciidoc.conf: ../asciidoc.conf.in
2eb93d
-	$(AM_V_GEN) $(do_subst) < $< > $@
2eb93d
-
2eb93d
-endif
2eb93d
-
2eb93d
-man1_MANS = \
2eb93d
-	daxctl.1 \
2eb93d
-	daxctl-list.1 \
2eb93d
-	daxctl-migrate-device-model.1 \
2eb93d
-	daxctl-reconfigure-device.1 \
2eb93d
-	daxctl-online-memory.1 \
2eb93d
-	daxctl-offline-memory.1 \
2eb93d
-	daxctl-disable-device.1 \
2eb93d
-	daxctl-enable-device.1 \
2eb93d
-	daxctl-create-device.1 \
2eb93d
-	daxctl-destroy-device.1
2eb93d
-
2eb93d
-EXTRA_DIST = $(man1_MANS)
2eb93d
-
2eb93d
-CLEANFILES = $(man1_MANS)
2eb93d
-
2eb93d
-XML_DEPS = \
2eb93d
-	../../version.m4 \
2eb93d
-	../copyright.txt \
2eb93d
-	Makefile \
2eb93d
-	$(CONFFILE)
2eb93d
-
2eb93d
-RM ?= rm -f
2eb93d
-
2eb93d
-if USE_ASCIIDOCTOR
2eb93d
-
2eb93d
-%.1: %.txt $(XML_DEPS)
2eb93d
-	$(AM_V_GEN)$(RM) $@+ $@ && \
2eb93d
-		$(ASCIIDOC) -b manpage -d manpage -acompat-mode \
2eb93d
-		-I. -rasciidoctor-extensions \
2eb93d
-		-amansource=daxctl -amanmanual="daxctl Manual" \
2eb93d
-		-andctl_version=$(VERSION) -o $@+ $< && \
2eb93d
-		mv $@+ $@
2eb93d
-
2eb93d
-else
2eb93d
-
2eb93d
-%.xml: %.txt $(XML_DEPS)
2eb93d
-	$(AM_V_GEN)$(RM) $@+ $@ && \
2eb93d
-		$(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf \
2eb93d
-		--unsafe -adaxctl_version=$(VERSION) -o $@+ $< && \
2eb93d
-		mv $@+ $@
2eb93d
-
2eb93d
-%.1: %.xml $(XML_DEPS)
2eb93d
-	$(AM_V_GEN)$(RM) $@ && \
2eb93d
-		$(XMLTO) -o . -m ../manpage-normal.xsl man $<
2eb93d
-
2eb93d
-endif
2eb93d
diff -up ndctl-71.1/Documentation/ndctl/Makefile.am /dev/null
2eb93d
--- ndctl-71.1/Documentation/ndctl/Makefile.am	2020-12-22 16:44:57.000000000 -0500
2eb93d
+++ /dev/null	2022-07-27 11:30:34.495212588 -0400
2eb93d
@@ -1,106 +0,0 @@
2eb93d
-# SPDX-License-Identifier: GPL-2.0
2eb93d
-# Copyright (C) 2015-2020 Intel Corporation. All rights reserved.
2eb93d
-
2eb93d
-if USE_ASCIIDOCTOR
2eb93d
-
2eb93d
-do_subst = sed -e 's,@Utility@,Ndctl,g' -e's,@utility@,ndctl,g'
2eb93d
-CONFFILE = asciidoctor-extensions.rb
2eb93d
-asciidoctor-extensions.rb: ../asciidoctor-extensions.rb.in
2eb93d
-	$(AM_V_GEN) $(do_subst) < $< > $@
2eb93d
-
2eb93d
-else
2eb93d
-
2eb93d
-do_subst = sed -e 's,UTILITY,ndctl,g'
2eb93d
-CONFFILE = asciidoc.conf
2eb93d
-asciidoc.conf: ../asciidoc.conf.in
2eb93d
-	$(AM_V_GEN) $(do_subst) < $< > $@
2eb93d
-
2eb93d
-endif
2eb93d
-
2eb93d
-man1_MANS = \
2eb93d
-	ndctl.1 \
2eb93d
-	ndctl-wait-scrub.1 \
2eb93d
-	ndctl-start-scrub.1 \
2eb93d
-	ndctl-zero-labels.1 \
2eb93d
-	ndctl-read-labels.1 \
2eb93d
-	ndctl-write-labels.1 \
2eb93d
-	ndctl-init-labels.1 \
2eb93d
-	ndctl-check-labels.1 \
2eb93d
-	ndctl-enable-region.1 \
2eb93d
-	ndctl-disable-region.1 \
2eb93d
-	ndctl-enable-dimm.1 \
2eb93d
-	ndctl-disable-dimm.1 \
2eb93d
-	ndctl-enable-namespace.1 \
2eb93d
-	ndctl-disable-namespace.1 \
2eb93d
-	ndctl-create-namespace.1 \
2eb93d
-	ndctl-destroy-namespace.1 \
2eb93d
-	ndctl-check-namespace.1 \
2eb93d
-	ndctl-clear-errors.1 \
2eb93d
-	ndctl-inject-error.1 \
2eb93d
-	ndctl-inject-smart.1 \
2eb93d
-	ndctl-update-firmware.1 \
2eb93d
-	ndctl-list.1 \
2eb93d
-	ndctl-monitor.1 \
2eb93d
-	ndctl-setup-passphrase.1 \
2eb93d
-	ndctl-update-passphrase.1 \
2eb93d
-	ndctl-remove-passphrase.1 \
2eb93d
-	ndctl-freeze-security.1 \
2eb93d
-	ndctl-sanitize-dimm.1 \
2eb93d
-	ndctl-load-keys.1 \
2eb93d
-	ndctl-wait-overwrite.1 \
2eb93d
-	ndctl-read-infoblock.1 \
2eb93d
-	ndctl-write-infoblock.1 \
2eb93d
-	ndctl-activate-firmware.1
2eb93d
-
2eb93d
-EXTRA_DIST = $(man1_MANS)
2eb93d
-
2eb93d
-CLEANFILES = $(man1_MANS)
2eb93d
-
2eb93d
-.ONESHELL:
2eb93d
-attrs.adoc: $(srcdir)/Makefile.am
2eb93d
-	$(AM_V_GEN) cat <<- EOF >$@
2eb93d
-		:ndctl_monitorconfdir: $(ndctl_monitorconfdir)
2eb93d
-		:ndctl_monitorconf: $(ndctl_monitorconf)
2eb93d
-		:ndctl_keysdir: $(ndctl_keysdir)
2eb93d
-		EOF
2eb93d
-
2eb93d
-XML_DEPS = \
2eb93d
-	../../version.m4 \
2eb93d
-	Makefile \
2eb93d
-	$(CONFFILE) \
2eb93d
-	../copyright.txt \
2eb93d
-	region-description.txt \
2eb93d
-	xable-region-options.txt \
2eb93d
-	dimm-description.txt \
2eb93d
-	xable-dimm-options.txt \
2eb93d
-	xable-namespace-options.txt \
2eb93d
-	ars-description.txt \
2eb93d
-	labels-description.txt \
2eb93d
-	labels-options.txt \
2eb93d
-	attrs.adoc
2eb93d
-
2eb93d
-RM ?= rm -f
2eb93d
-
2eb93d
-if USE_ASCIIDOCTOR
2eb93d
-
2eb93d
-%.1: %.txt $(XML_DEPS)
2eb93d
-	$(AM_V_GEN)$(RM) $@+ $@ && \
2eb93d
-		$(ASCIIDOC) -b manpage -d manpage -acompat-mode \
2eb93d
-		-I. -rasciidoctor-extensions \
2eb93d
-		-amansource=ndctl -amanmanual="ndctl Manual" \
2eb93d
-		-andctl_version=$(VERSION) -o $@+ $< && \
2eb93d
-		mv $@+ $@
2eb93d
-
2eb93d
-else
2eb93d
-
2eb93d
-%.xml: %.txt $(XML_DEPS)
2eb93d
-	$(AM_V_GEN)$(RM) $@+ $@ && \
2eb93d
-		$(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf \
2eb93d
-		--unsafe -andctl_version=$(VERSION) -o $@+ $< && \
2eb93d
-		mv $@+ $@
2eb93d
-
2eb93d
-%.1: %.xml $(XML_DEPS)
2eb93d
-	$(AM_V_GEN)$(RM) $@ && \
2eb93d
-		$(XMLTO) -o . -m ../manpage-normal.xsl man $<
2eb93d
-
2eb93d
-endif
2eb93d
diff -up ndctl-71.1/Makefile.am.in /dev/null
2eb93d
--- ndctl-71.1/Makefile.am.in	2022-10-07 18:39:13.130886472 -0400
2eb93d
+++ /dev/null	2022-07-27 11:30:34.495212588 -0400
2eb93d
@@ -1,46 +0,0 @@
2eb93d
-EXTRA_DIST =
2eb93d
-CLEANFILES =
2eb93d
-
2eb93d
-AM_MAKEFLAGS = --no-print-directory
2eb93d
-
2eb93d
-AM_CPPFLAGS = \
2eb93d
-	-include $(top_builddir)/config.h \
2eb93d
-	-DSYSCONFDIR=\""$(sysconfdir)"\" \
2eb93d
-	-DLIBEXECDIR=\""$(libexecdir)"\" \
2eb93d
-	-DPREFIX=\""$(prefix)"\" \
2eb93d
-	-DNDCTL_MAN_PATH=\""$(mandir)"\" \
2eb93d
-	-I${top_srcdir}/ \
2eb93d
-	$(KMOD_CFLAGS) \
2eb93d
-	$(UDEV_CFLAGS) \
2eb93d
-	$(UUID_CFLAGS) \
2eb93d
-	$(JSON_CFLAGS)
2eb93d
-
2eb93d
-AM_CFLAGS = ${my_CFLAGS} \
2eb93d
-	-fvisibility=hidden \
2eb93d
-	-ffunction-sections \
2eb93d
-	-fdata-sections
2eb93d
-
2eb93d
-AM_LDFLAGS = \
2eb93d
-	-Wl,--gc-sections \
2eb93d
-	-Wl,--as-needed
2eb93d
-
2eb93d
-SED_PROCESS = \
2eb93d
-	$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
2eb93d
-	-e 's,@VERSION\@,$(VERSION),g' \
2eb93d
-	-e 's,@prefix\@,$(prefix),g' \
2eb93d
-	-e 's,@exec_prefix\@,$(exec_prefix),g' \
2eb93d
-	-e 's,@libdir\@,$(libdir),g' \
2eb93d
-	-e 's,@includedir\@,$(includedir),g' \
2eb93d
-	< $< > $@ || rm $@
2eb93d
-
2eb93d
-LIBNDCTL_CURRENT=26
2eb93d
-LIBNDCTL_REVISION=1
2eb93d
-LIBNDCTL_AGE=20
2eb93d
-
2eb93d
-LIBDAXCTL_CURRENT=7
2eb93d
-LIBDAXCTL_REVISION=0
2eb93d
-LIBDAXCTL_AGE=6
2eb93d
-
2eb93d
-LIBCXL_CURRENT=1
2eb93d
-LIBCXL_REVISION=0
2eb93d
-LIBCXL_AGE=0
2eb93d
diff -up ndctl-71.1/Makefile.am /dev/null
2eb93d
--- ndctl-71.1/Makefile.am	2022-10-07 18:39:13.182886649 -0400
2eb93d
+++ /dev/null	2022-07-27 11:30:34.495212588 -0400
2eb93d
@@ -1,102 +0,0 @@
2eb93d
-include Makefile.am.in
2eb93d
-
2eb93d
-ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
2eb93d
-SUBDIRS = . cxl/lib daxctl/lib ndctl/lib cxl ndctl daxctl
2eb93d
-if ENABLE_DOCS
2eb93d
-SUBDIRS += Documentation/ndctl Documentation/daxctl Documentation/cxl
2eb93d
-SUBDIRS += Documentation/cxl/lib
2eb93d
-endif
2eb93d
-SUBDIRS += test
2eb93d
-
2eb93d
-BUILT_SOURCES = version.m4
2eb93d
-version.m4: FORCE
2eb93d
-	$(AM_V_GEN)$(top_srcdir)/git-version-gen
2eb93d
-
2eb93d
-FORCE:
2eb93d
-
2eb93d
-EXTRA_DIST += ndctl.spec.in \
2eb93d
-		sles/header \
2eb93d
-		contrib/nvdimm-security.conf
2eb93d
-
2eb93d
-noinst_SCRIPTS = rhel/ndctl.spec sles/ndctl.spec
2eb93d
-CLEANFILES += $(noinst_SCRIPTS)
2eb93d
-
2eb93d
-do_rhel_subst = sed -e 's,VERSION,$(VERSION),g' \
2eb93d
-            -e 's,MESON,0,g' \
2eb93d
-            -e 's,DAX_DNAME,daxctl-devel,g' \
2eb93d
-            -e 's,CXL_DNAME,cxl-devel,g' \
2eb93d
-            -e 's,DNAME,ndctl-devel,g' \
2eb93d
-            -e '/^%defattr.*/d' \
2eb93d
-	    -e 's,DAX_LNAME,daxctl-libs,g' \
2eb93d
-	    -e 's,CXL_LNAME,cxl-libs,g' \
2eb93d
-	    -e 's,LNAME,ndctl-libs,g'
2eb93d
-
2eb93d
-do_sles_subst = sed -e 's,VERSION,$(VERSION),g' \
2eb93d
-            -e 's,MESON,0,g' \
2eb93d
-            -e 's,DAX_DNAME,libdaxctl-devel,g' \
2eb93d
-            -e 's,CXL_DNAME,libcxl-devel,g' \
2eb93d
-            -e 's,DNAME,libndctl-devel,g' \
2eb93d
-            -e 's,%license,%doc,g' \
2eb93d
-            -e 's,\(^License:.*GPL\)v2,\1-2.0,g' \
2eb93d
-            -e "s,DAX_LNAME,libdaxctl$$(($(LIBDAXCTL_CURRENT) - $(LIBDAXCTL_AGE))),g" \
2eb93d
-            -e "s,CXL_LNAME,libcxl$$(($(LIBCXL_CURRENT) - $(LIBCXL_AGE))),g" \
2eb93d
-            -e "s,LNAME,libndctl$$(($(LIBNDCTL_CURRENT) - $(LIBNDCTL_AGE))),g"
2eb93d
-
2eb93d
-rhel/ndctl.spec: ndctl.spec.in Makefile.am version.m4
2eb93d
-	$(AM_V_GEN)$(MKDIR_P) rhel; $(do_rhel_subst) < $< > $@
2eb93d
-
2eb93d
-sles/ndctl.spec: sles/header ndctl.spec.in Makefile.am version.m4
2eb93d
-	$(AM_V_GEN)$(MKDIR_P) sles; cat sles/header $< | $(do_sles_subst) > $@
2eb93d
-
2eb93d
-if ENABLE_BASH_COMPLETION
2eb93d
-bashcompletiondir = $(BASH_COMPLETION_DIR)
2eb93d
-dist_bashcompletion_DATA = contrib/ndctl
2eb93d
-install-data-hook:
2eb93d
-	$(LN_S) -f $(BASH_COMPLETION_DIR)/ndctl $(DESTDIR)/$(BASH_COMPLETION_DIR)/daxctl
2eb93d
-	$(LN_S) -f $(BASH_COMPLETION_DIR)/ndctl $(DESTDIR)/$(BASH_COMPLETION_DIR)/cxl
2eb93d
-endif
2eb93d
-
2eb93d
-modprobe_file = contrib/nvdimm-security.conf
2eb93d
-modprobedir = $(sysconfdir)/modprobe.d/
2eb93d
-modprobe_DATA = $(modprobe_file)
2eb93d
-
2eb93d
-noinst_LIBRARIES = libccan.a
2eb93d
-libccan_a_SOURCES = \
2eb93d
-	ccan/str/str.h \
2eb93d
-	ccan/str/str_debug.h \
2eb93d
-	ccan/str/str.c \
2eb93d
-	ccan/str/debug.c \
2eb93d
-	ccan/list/list.h \
2eb93d
-	ccan/list/list.c \
2eb93d
-	ccan/container_of/container_of.h \
2eb93d
-	ccan/check_type/check_type.h \
2eb93d
-	ccan/build_assert/build_assert.h \
2eb93d
-	ccan/array_size/array_size.h \
2eb93d
-	ccan/minmax/minmax.h \
2eb93d
-	ccan/short_types/short_types.h \
2eb93d
-	ccan/endian/endian.h
2eb93d
-
2eb93d
-noinst_LIBRARIES += libutil.a
2eb93d
-libutil_a_SOURCES = \
2eb93d
-	util/parse-options.c \
2eb93d
-	util/parse-options.h \
2eb93d
-	util/usage.c \
2eb93d
-	util/size.c \
2eb93d
-	util/main.c \
2eb93d
-	util/help.c \
2eb93d
-	util/strbuf.c \
2eb93d
-	util/wrapper.c \
2eb93d
-	util/bitmap.c \
2eb93d
-	util/abspath.c \
2eb93d
-	util/iomem.c \
2eb93d
-	util/util.h \
2eb93d
-	util/strbuf.h \
2eb93d
-	util/size.h \
2eb93d
-	util/main.h \
2eb93d
-	util/filter.h \
2eb93d
-	util/bitmap.h
2eb93d
-
2eb93d
-nobase_include_HEADERS = \
2eb93d
-	daxctl/libdaxctl.h \
2eb93d
-	cxl/libcxl.h \
2eb93d
-	cxl/cxl_mem.h
2eb93d
diff -up ndctl-71.1/autogen.sh /dev/null
2eb93d
--- ndctl-71.1/autogen.sh	2020-12-22 16:44:57.000000000 -0500
2eb93d
+++ /dev/null	2022-07-27 11:30:34.495212588 -0400
2eb93d
@@ -1,28 +0,0 @@
2eb93d
-#!/bin/sh -e
2eb93d
-
2eb93d
-if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
2eb93d
-        cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \
2eb93d
-        chmod +x .git/hooks/pre-commit && \
2eb93d
-        echo "Activated pre-commit hook."
2eb93d
-fi
2eb93d
-
2eb93d
-$(dirname $0)/git-version-gen
2eb93d
-reconf_args=''
2eb93d
-[ -n "$*" ] && reconf_args="$*"
2eb93d
-autoreconf --install --symlink $reconf_args
2eb93d
-
2eb93d
-libdir() {
2eb93d
-        echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
2eb93d
-}
2eb93d
-
2eb93d
-args="--prefix=/usr \
2eb93d
---sysconfdir=/etc \
2eb93d
---libdir=$(libdir /usr/lib)"
2eb93d
-
2eb93d
-echo
2eb93d
-echo "----------------------------------------------------------------"
2eb93d
-echo "Initialized build system. For a common configuration please run:"
2eb93d
-echo "----------------------------------------------------------------"
2eb93d
-echo
2eb93d
-echo "./configure CFLAGS='-g -O2' $args"
2eb93d
-echo
2eb93d
diff -up ndctl-71.1/configure.ac /dev/null
2eb93d
--- ndctl-71.1/configure.ac	2022-10-07 18:39:13.083886312 -0400
2eb93d
+++ /dev/null	2022-07-27 11:30:34.495212588 -0400
2eb93d
@@ -1,254 +0,0 @@
2eb93d
-AC_PREREQ(2.60)
2eb93d
-m4_include([version.m4])
2eb93d
-AC_INIT([ndctl],
2eb93d
-        GIT_VERSION,
2eb93d
-        [nvdimm@lists.linux.dev],
2eb93d
-        [ndctl],
2eb93d
-        [https://github.com/pmem/ndctl])
2eb93d
-AC_CONFIG_SRCDIR([ndctl/lib/libndctl.c])
2eb93d
-AC_CONFIG_AUX_DIR([build-aux])
2eb93d
-AM_INIT_AUTOMAKE([
2eb93d
-	foreign
2eb93d
-	1.11
2eb93d
-	-Wall
2eb93d
-	-Wno-portability
2eb93d
-	silent-rules
2eb93d
-	tar-pax
2eb93d
-	no-dist-gzip
2eb93d
-	dist-xz
2eb93d
-	subdir-objects
2eb93d
-])
2eb93d
-AC_PROG_CC_STDC
2eb93d
-AC_USE_SYSTEM_EXTENSIONS
2eb93d
-AC_SYS_LARGEFILE
2eb93d
-AC_CONFIG_MACRO_DIR([m4])
2eb93d
-AM_SILENT_RULES([yes])
2eb93d
-LT_INIT([
2eb93d
-	disable-static
2eb93d
-	pic-only
2eb93d
-])
2eb93d
-AC_PREFIX_DEFAULT([/usr])
2eb93d
-
2eb93d
-AC_PROG_SED
2eb93d
-AC_PROG_MKDIR_P
2eb93d
-AC_PROG_LN_S
2eb93d
-
2eb93d
-AC_ARG_ENABLE([docs],
2eb93d
-        AS_HELP_STRING([--disable-docs],
2eb93d
-	[disable documentation build @<:@default=enabled@:>@]),
2eb93d
-        [], enable_docs=yes)
2eb93d
-AS_IF([test "x$enable_docs" = "xyes"], [
2eb93d
-        AC_DEFINE(ENABLE_DOCS, [1], [Documentation / man pages.])
2eb93d
-])
2eb93d
-AM_CONDITIONAL([ENABLE_DOCS], [test "x$enable_docs" = "xyes"])
2eb93d
-
2eb93d
-AC_ARG_ENABLE([asciidoctor],
2eb93d
-	AS_HELP_STRING([--enable-asciidoctor],
2eb93d
-	[use asciidoctor for documentation build]),
2eb93d
-	[], enable_asciidoctor=yes)
2eb93d
-AM_CONDITIONAL([USE_ASCIIDOCTOR], [test "x$enable_asciidoctor" = "xyes"])
2eb93d
-if test "x$enable_asciidoctor" = "xyes"; then
2eb93d
-	asciidoc="asciidoctor"
2eb93d
-else
2eb93d
-	asciidoc="asciidoc"
2eb93d
-fi
2eb93d
-AC_CHECK_PROG(ASCIIDOC, [$asciidoc], [$(which $asciidoc)], [missing])
2eb93d
-if test "x$ASCIIDOC" = xmissing -a "x$enable_docs" = "xyes"; then
2eb93d
-	AC_MSG_ERROR([$asciidoc needed to build documentation])
2eb93d
-fi
2eb93d
-AC_SUBST([ASCIIDOC])
2eb93d
-
2eb93d
-if test x"$asciidoc" = x"asciidoc"; then
2eb93d
-AC_CHECK_PROG(XMLTO, [xmlto], [$(which xmlto)], [missing])
2eb93d
-if test "x$XMLTO" = xmissing -a "x$enable_docs" = "xyes"; then
2eb93d
-       AC_MSG_ERROR([xmlto needed to build documentation])
2eb93d
-fi
2eb93d
-AC_SUBST([XMLTO])
2eb93d
-fi
2eb93d
-
2eb93d
-AC_C_TYPEOF
2eb93d
-AC_DEFINE([HAVE_STATEMENT_EXPR], 1, [Define to 1 if you have statement expressions.])
2eb93d
-
2eb93d
-AC_C_BIGENDIAN(
2eb93d
-	AC_DEFINE(HAVE_BIG_ENDIAN, 1, [Define to 1 if big-endian-arch]),
2eb93d
-	AC_DEFINE(HAVE_LITTLE_ENDIAN, 1, [Define to 1 if little-endian-arch]),
2eb93d
-	[], [])
2eb93d
-
2eb93d
-AC_ARG_ENABLE([logging],
2eb93d
-        AS_HELP_STRING([--disable-logging], [disable system logging @<:@default=enabled@:>@]),
2eb93d
-        [], enable_logging=yes)
2eb93d
-AS_IF([test "x$enable_logging" = "xyes"], [
2eb93d
-        AC_DEFINE(ENABLE_LOGGING, [1], [System logging.])
2eb93d
-])
2eb93d
-
2eb93d
-AC_ARG_ENABLE([debug],
2eb93d
-        AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]),
2eb93d
-        [], [enable_debug=no])
2eb93d
-AS_IF([test "x$enable_debug" = "xyes"], [
2eb93d
-        AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.])
2eb93d
-])
2eb93d
-
2eb93d
-AC_ARG_ENABLE([destructive],
2eb93d
-        AS_HELP_STRING([--enable-destructive], [enable destructive functional tests @<:@default=disabled@:>@]),
2eb93d
-        [], [enable_destructive=no])
2eb93d
-AS_IF([test "x$enable_destructive" = "xyes"],
2eb93d
-	[AC_DEFINE([ENABLE_DESTRUCTIVE], [1], [destructive functional tests support])])
2eb93d
-AM_CONDITIONAL([ENABLE_DESTRUCTIVE], [test "x$enable_destructive" = "xyes"])
2eb93d
-
2eb93d
-AC_ARG_ENABLE([test],
2eb93d
-        AS_HELP_STRING([--enable-test], [enable ndctl test command @<:@default=disabled@:>@]),
2eb93d
-        [], [enable_test=$enable_destructive])
2eb93d
-AS_IF([test "x$enable_test" = "xyes"],
2eb93d
-	[AC_DEFINE([ENABLE_TEST], [1], [ndctl test support])])
2eb93d
-AM_CONDITIONAL([ENABLE_TEST], [test "x$enable_test" = "xyes"])
2eb93d
-
2eb93d
-AC_CHECK_DECLS([BUS_MCEERR_AR], [enable_bus_mc_err=yes], [], [[#include <signal.h>]])
2eb93d
-AC_CHECK_DECLS([MAP_SHARED_VALIDATE], [kernel_map_shared_validate=yes], [], [[#include <linux/mman.h>]])
2eb93d
-AC_CHECK_DECLS([MAP_SYNC], [kernel_map_sync=yes], [], [[#include <linux/mman.h>]])
2eb93d
-AS_UNSET([ac_cv_have_decl_MAP_SHARED_VALIDATE])
2eb93d
-AS_UNSET([ac_cv_have_decl_MAP_SYNC])
2eb93d
-AC_CHECK_DECLS([MAP_SHARED_VALIDATE], [enable_map_shared_validate=yes], [], [[#include <sys/mman.h>]])
2eb93d
-AC_CHECK_DECLS([MAP_SYNC], [enable_map_sync=yes], [], [[#include <sys/mman.h>]])
2eb93d
-
2eb93d
-if test "x$kernel_map_shared_validate" = "xyes" -a "x$enable_map_shared_validate" != "xyes" ; then
2eb93d
-	AC_MSG_WARN([MAP_SHARED_VALIDATE supported by kernel but not by <sys/mman.h>, consider installing glibc-2.28 or later.])
2eb93d
-fi
2eb93d
-if test "x$kernel_map_shared_validate" != "xyes" -a "x$enable_map_shared_validate" != "xyes" ; then
2eb93d
-	AC_MSG_WARN([MAP_SHARED_VALIDATE not supported by kernel, consider installing kernel-4.15 or later.])
2eb93d
-fi
2eb93d
-if test "x$kernel_map_sync" = "xyes" -a "x$enable_map_sync" != "xyes" ; then
2eb93d
-	AC_MSG_WARN([MAP_SYNC supported by kernel but not by <sys/mman.h>, consider installing glibc-2.28 or later.])
2eb93d
-fi
2eb93d
-if test "x$kernel_map_sync" != "xyes" -a "x$enable_map_sync" != "xyes" ; then
2eb93d
-	AC_MSG_WARN([MAP_SYNC not supported by kernel or architecture, consider installing kernel-4.15 or later.])
2eb93d
-fi
2eb93d
-
2eb93d
-AS_IF([test "x$enable_bus_mc_err" = "xyes" -a "x$enable_map_sync" = "xyes" -a "x$enable_map_shared_validate" = "xyes"],
2eb93d
-	[AC_DEFINE([ENABLE_POISON], [1], [ndctl test poison support])])
2eb93d
-AM_CONDITIONAL([ENABLE_POISON],
2eb93d
-	[test "x$enable_bus_mc_err" = "xyes" -a "x$enable_map_sync" = "xyes" -a "x$enable_map_shared_validate" = "xyes"])
2eb93d
-
2eb93d
-PKG_CHECK_MODULES([KMOD], [libkmod])
2eb93d
-PKG_CHECK_MODULES([UDEV], [libudev])
2eb93d
-PKG_CHECK_MODULES([UUID], [uuid],
2eb93d
-	[AC_DEFINE([HAVE_UUID], [1], [Define to 1 if using libuuid])])
2eb93d
-PKG_CHECK_MODULES([JSON], [json-c])
2eb93d
-
2eb93d
-AC_ARG_WITH([bash],
2eb93d
-	AS_HELP_STRING([--with-bash],
2eb93d
-		[Enable bash auto-completion. @<:@default=yes@:>@]),
2eb93d
-	[],
2eb93d
-	[with_bash=yes])
2eb93d
-
2eb93d
-if test "x$with_bash" = "xyes"; then
2eb93d
-	PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0],
2eb93d
-		[BASH_COMPLETION_DIR=$($PKG_CONFIG --variable=completionsdir bash-completion)], [])
2eb93d
-fi
2eb93d
-
2eb93d
-AC_SUBST([BASH_COMPLETION_DIR])
2eb93d
-AM_CONDITIONAL([ENABLE_BASH_COMPLETION], [test "x$with_bash" = "xyes"])
2eb93d
-
2eb93d
-AC_ARG_ENABLE([local],
2eb93d
-        AS_HELP_STRING([--disable-local], [build against kernel ndctl.h @<:@default=system@:>@]),
2eb93d
-        [], [enable_local=yes])
2eb93d
-
2eb93d
-AC_CHECK_HEADERS_ONCE([linux/version.h])
2eb93d
-
2eb93d
-AC_CHECK_FUNCS([ \
2eb93d
-	__secure_getenv \
2eb93d
-	secure_getenv\
2eb93d
-])
2eb93d
-
2eb93d
-AC_ARG_WITH([systemd],
2eb93d
-	AS_HELP_STRING([--with-systemd],
2eb93d
-		[Enable systemd functionality (monitor). @<:@default=yes@:>@]),
2eb93d
-	[], [with_systemd=yes])
2eb93d
-
2eb93d
-if test "x$with_systemd" = "xyes"; then
2eb93d
-	PKG_CHECK_MODULES([SYSTEMD], [systemd],
2eb93d
-	[systemd_unitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)], [])
2eb93d
-fi
2eb93d
-
2eb93d
-AC_SUBST([systemd_unitdir])
2eb93d
-AM_CONDITIONAL([ENABLE_SYSTEMD_UNITS], [test "x$with_systemd" = "xyes"])
2eb93d
-
2eb93d
-ndctl_monitorconfdir=${sysconfdir}/ndctl
2eb93d
-ndctl_monitorconf=monitor.conf
2eb93d
-AC_SUBST([ndctl_monitorconfdir])
2eb93d
-AC_SUBST([ndctl_monitorconf])
2eb93d
-
2eb93d
-daxctl_modprobe_datadir=${datadir}/daxctl
2eb93d
-daxctl_modprobe_data=daxctl.conf
2eb93d
-AC_SUBST([daxctl_modprobe_datadir])
2eb93d
-AC_SUBST([daxctl_modprobe_data])
2eb93d
-
2eb93d
-AC_ARG_WITH([keyutils],
2eb93d
-	    AS_HELP_STRING([--with-keyutils],
2eb93d
-			[Enable keyutils functionality (security).  @<:@default=yes@:>@]), [], [with_keyutils=yes])
2eb93d
-
2eb93d
-if test "x$with_keyutils" = "xyes"; then
2eb93d
-	AC_CHECK_HEADERS([keyutils.h],,[
2eb93d
-		AC_MSG_ERROR([keyutils.h not found, consider installing the keyutils library development package (variously named keyutils-libs-devel, keyutils-devel, or libkeyutils-dev).])
2eb93d
-		])
2eb93d
-fi
2eb93d
-AS_IF([test "x$with_keyutils" = "xyes"],
2eb93d
-	[AC_DEFINE([ENABLE_KEYUTILS], [1], [Enable keyutils support])])
2eb93d
-AM_CONDITIONAL([ENABLE_KEYUTILS], [test "x$with_keyutils" = "xyes"])
2eb93d
-
2eb93d
-ndctl_keysdir=${sysconfdir}/ndctl/keys
2eb93d
-ndctl_keysreadme=keys.readme
2eb93d
-AC_SUBST([ndctl_keysdir])
2eb93d
-AC_SUBST([ndctl_keysreadme])
2eb93d
-
2eb93d
-my_CFLAGS="\
2eb93d
--Wall \
2eb93d
--Wchar-subscripts \
2eb93d
--Wformat-security \
2eb93d
--Wmissing-declarations \
2eb93d
--Wmissing-prototypes \
2eb93d
--Wnested-externs \
2eb93d
--Wshadow \
2eb93d
--Wsign-compare \
2eb93d
--Wstrict-prototypes \
2eb93d
--Wtype-limits \
2eb93d
--Wmaybe-uninitialized \
2eb93d
--Wdeclaration-after-statement \
2eb93d
--Wunused-result \
2eb93d
--D_FORTIFY_SOURCE=2 \
2eb93d
--O2
2eb93d
-"
2eb93d
-AC_SUBST([my_CFLAGS])
2eb93d
-
2eb93d
-AC_CONFIG_HEADERS(config.h)
2eb93d
-AC_CONFIG_FILES([
2eb93d
-        Makefile
2eb93d
-        daxctl/lib/Makefile
2eb93d
-        cxl/lib/Makefile
2eb93d
-        ndctl/lib/Makefile
2eb93d
-        ndctl/Makefile
2eb93d
-        daxctl/Makefile
2eb93d
-        cxl/Makefile
2eb93d
-        test/Makefile
2eb93d
-        Documentation/ndctl/Makefile
2eb93d
-        Documentation/daxctl/Makefile
2eb93d
-        Documentation/cxl/Makefile
2eb93d
-        Documentation/cxl/lib/Makefile
2eb93d
-])
2eb93d
-
2eb93d
-AC_OUTPUT
2eb93d
-AC_MSG_RESULT([
2eb93d
-        $PACKAGE $VERSION
2eb93d
-        =====
2eb93d
-
2eb93d
-        prefix:                 ${prefix}
2eb93d
-        sysconfdir:             ${sysconfdir}
2eb93d
-        libdir:                 ${libdir}
2eb93d
-        includedir:             ${includedir}
2eb93d
-
2eb93d
-        compiler:               ${CC}
2eb93d
-        cflags:                 ${CFLAGS}
2eb93d
-        ldflags:                ${LDFLAGS}
2eb93d
-
2eb93d
-        logging:                ${enable_logging}
2eb93d
-        debug:                  ${enable_debug}
2eb93d
-])
2eb93d
diff -up ndctl-71.1/cxl/Makefile.am /dev/null
2eb93d
--- ndctl-71.1/cxl/Makefile.am	2022-10-07 18:39:13.131886476 -0400
2eb93d
+++ /dev/null	2022-07-27 11:30:34.495212588 -0400
2eb93d
@@ -1,25 +0,0 @@
2eb93d
-include $(top_srcdir)/Makefile.am.in
2eb93d
-
2eb93d
-bin_PROGRAMS = cxl
2eb93d
-
2eb93d
-DISTCLEANFILES = config.h
2eb93d
-BUILT_SOURCES = config.h
2eb93d
-config.h: $(srcdir)/Makefile.am
2eb93d
-	$(AM_V_GEN) echo "/* Autogenerated by cxl/Makefile.am */" >$@
2eb93d
-
2eb93d
-cxl_SOURCES =\
2eb93d
-		cxl.c \
2eb93d
-		list.c \
2eb93d
-		memdev.c \
2eb93d
-		../util/json.c \
2eb93d
-		json.c \
2eb93d
-		filter.c \
2eb93d
-		filter.h \
2eb93d
-		builtin.h
2eb93d
-
2eb93d
-cxl_LDADD =\
2eb93d
-	lib/libcxl.la \
2eb93d
-	../libutil.a \
2eb93d
-	$(UUID_LIBS) \
2eb93d
-	$(KMOD_LIBS) \
2eb93d
-	$(JSON_LIBS)
2eb93d
diff -up ndctl-71.1/cxl/lib/Makefile.am /dev/null
2eb93d
--- ndctl-71.1/cxl/lib/Makefile.am	2022-10-07 18:39:13.041886169 -0400
2eb93d
+++ /dev/null	2022-07-27 11:30:34.495212588 -0400
2eb93d
@@ -1,32 +0,0 @@
2eb93d
-include $(top_srcdir)/Makefile.am.in
2eb93d
-
2eb93d
-%.pc: %.pc.in Makefile
2eb93d
-	$(SED_PROCESS)
2eb93d
-
2eb93d
-pkginclude_HEADERS = ../libcxl.h ../cxl_mem.h
2eb93d
-lib_LTLIBRARIES = libcxl.la
2eb93d
-
2eb93d
-libcxl_la_SOURCES =\
2eb93d
-	../libcxl.h \
2eb93d
-	private.h \
2eb93d
-	../../util/sysfs.c \
2eb93d
-	../../util/sysfs.h \
2eb93d
-	../../util/log.c \
2eb93d
-	../../util/log.h \
2eb93d
-	libcxl.c
2eb93d
-
2eb93d
-libcxl_la_LIBADD =\
2eb93d
-	$(UUID_LIBS) \
2eb93d
-	$(KMOD_LIBS)
2eb93d
-
2eb93d
-EXTRA_DIST += libcxl.sym
2eb93d
-
2eb93d
-libcxl_la_LDFLAGS = $(AM_LDFLAGS) \
2eb93d
-	-version-info $(LIBCXL_CURRENT):$(LIBCXL_REVISION):$(LIBCXL_AGE) \
2eb93d
-	-Wl,--version-script=$(top_srcdir)/cxl/lib/libcxl.sym
2eb93d
-libcxl_la_DEPENDENCIES = libcxl.sym
2eb93d
-
2eb93d
-pkgconfigdir = $(libdir)/pkgconfig
2eb93d
-pkgconfig_DATA = libcxl.pc
2eb93d
-EXTRA_DIST += libcxl.pc.in
2eb93d
-CLEANFILES += libcxl.pc
2eb93d
diff -up ndctl-71.1/daxctl/Makefile.am /dev/null
2eb93d
--- ndctl-71.1/daxctl/Makefile.am	2022-10-07 18:39:13.132886479 -0400
2eb93d
+++ /dev/null	2022-07-27 11:30:34.495212588 -0400
2eb93d
@@ -1,33 +0,0 @@
2eb93d
-include $(top_srcdir)/Makefile.am.in
2eb93d
-
2eb93d
-bin_PROGRAMS = daxctl
2eb93d
-
2eb93d
-DISTCLEANFILES = config.h
2eb93d
-BUILT_SOURCES = config.h
2eb93d
-config.h: $(srcdir)/Makefile.am
2eb93d
-	$(AM_V_GEN) echo "/* Autogenerated by daxctl/Makefile.am */" >$@ && \
2eb93d
-	echo '#define DAXCTL_MODPROBE_DATA \
2eb93d
-		"$(daxctl_modprobe_datadir)/$(daxctl_modprobe_data)"' >>$@ && \
2eb93d
-	echo '#define DAXCTL_MODPROBE_INSTALL \
2eb93d
-		"$(sysconfdir)/modprobe.d/$(daxctl_modprobe_data)"' >>$@
2eb93d
-
2eb93d
-daxctl_SOURCES =\
2eb93d
-		daxctl.c \
2eb93d
-		acpi.c \
2eb93d
-		list.c \
2eb93d
-		migrate.c \
2eb93d
-		device.c \
2eb93d
-		../util/json.c \
2eb93d
-		../util/json.h \
2eb93d
-		json.c \
2eb93d
-		json.h \
2eb93d
-		filter.c \
2eb93d
-		filter.h \
2eb93d
-		builtin.h
2eb93d
-
2eb93d
-daxctl_LDADD =\
2eb93d
-	lib/libdaxctl.la \
2eb93d
-	../libutil.a \
2eb93d
-	$(UUID_LIBS) \
2eb93d
-	$(KMOD_LIBS) \
2eb93d
-	$(JSON_LIBS)
2eb93d
diff -up ndctl-71.1/daxctl/lib/Makefile.am /dev/null
2eb93d
--- ndctl-71.1/daxctl/lib/Makefile.am	2020-12-22 16:44:57.000000000 -0500
2eb93d
+++ /dev/null	2022-07-27 11:30:34.495212588 -0400
2eb93d
@@ -1,36 +0,0 @@
2eb93d
-include $(top_srcdir)/Makefile.am.in
2eb93d
-
2eb93d
-%.pc: %.pc.in Makefile
2eb93d
-	$(SED_PROCESS)
2eb93d
-
2eb93d
-pkginclude_HEADERS = ../libdaxctl.h
2eb93d
-lib_LTLIBRARIES = libdaxctl.la
2eb93d
-
2eb93d
-libdaxctl_la_SOURCES =\
2eb93d
-	../libdaxctl.h \
2eb93d
-	libdaxctl-private.h \
2eb93d
-	../../util/iomem.c \
2eb93d
-	../../util/iomem.h \
2eb93d
-	../../util/sysfs.c \
2eb93d
-	../../util/sysfs.h \
2eb93d
-	../../util/log.c \
2eb93d
-	../../util/log.h \
2eb93d
-	libdaxctl.c
2eb93d
-
2eb93d
-libdaxctl_la_LIBADD =\
2eb93d
-	$(UUID_LIBS) \
2eb93d
-	$(KMOD_LIBS)
2eb93d
-
2eb93d
-daxctl_modprobe_data_DATA = daxctl.conf
2eb93d
-
2eb93d
-EXTRA_DIST += libdaxctl.sym daxctl.conf
2eb93d
-
2eb93d
-libdaxctl_la_LDFLAGS = $(AM_LDFLAGS) \
2eb93d
-	-version-info $(LIBDAXCTL_CURRENT):$(LIBDAXCTL_REVISION):$(LIBDAXCTL_AGE) \
2eb93d
-	-Wl,--version-script=$(top_srcdir)/daxctl/lib/libdaxctl.sym
2eb93d
-libdaxctl_la_DEPENDENCIES = libdaxctl.sym
2eb93d
-
2eb93d
-pkgconfigdir = $(libdir)/pkgconfig
2eb93d
-pkgconfig_DATA = libdaxctl.pc
2eb93d
-EXTRA_DIST += libdaxctl.pc.in
2eb93d
-CLEANFILES += libdaxctl.pc
2eb93d
diff -up ndctl-71.1/ndctl.spec.in.orig ndctl-71.1/ndctl.spec.in
2eb93d
--- ndctl-71.1/ndctl.spec.in.orig	2022-10-07 18:39:13.183886653 -0400
2eb93d
+++ ndctl-71.1/ndctl.spec.in	2022-10-07 18:44:39.333997092 -0400
2eb93d
@@ -6,21 +6,16 @@ License:	GPLv2
2eb93d
 Url:		https://github.com/pmem/ndctl
2eb93d
 Source0:	https://github.com/pmem/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
2eb93d
 
2eb93d
-%define with_meson MESON
2eb93d
 Requires:	LNAME%{?_isa} = %{version}-%{release}
2eb93d
 Requires:	DAX_LNAME%{?_isa} = %{version}-%{release}
2eb93d
 Requires:	CXL_LNAME%{?_isa} = %{version}-%{release}
2eb93d
 BuildRequires:	autoconf
2eb93d
 %if 0%{?rhel} < 9
2eb93d
 BuildRequires:	asciidoc
2eb93d
-%if !%{with_meson}
2eb93d
-%define asciidoc --disable-asciidoctor
2eb93d
-%endif
2eb93d
+%define asciidoctor -Dasciidoctor=disabled
2eb93d
 %else
2eb93d
-%if %{with_meson}
2eb93d
-%define asciidoctor -Dasciidoctor=enabled
2eb93d
-%endif
2eb93d
 BuildRequires:	rubygem-asciidoctor
2eb93d
+%define asciidoctor -Dasciidoctor=enabled
2eb93d
 %endif
2eb93d
 BuildRequires:	xmlto
2eb93d
 BuildRequires:	automake
2eb93d
@@ -34,9 +29,7 @@ BuildRequires:	pkgconfig(bash-completion
2eb93d
 BuildRequires:	pkgconfig(systemd)
2eb93d
 BuildRequires:	keyutils-libs-devel
2eb93d
 
2eb93d
-%if %{with_meson}
2eb93d
 BuildRequires:	meson
2eb93d
-%endif
2eb93d
 
2eb93d
 %description
2eb93d
 Utility library for managing the "libnvdimm" subsystem.  The "libnvdimm"
2eb93d
@@ -125,30 +118,14 @@ libcxl is a library for enumerating and
2eb93d
 %setup -q ndctl-%{version}
2eb93d
 
2eb93d
 %build
2eb93d
-%if %{with_meson}
2eb93d
 %meson %{?asciidoctor} -Dversion-tag=%{version}
2eb93d
 %meson_build
2eb93d
-%else
2eb93d
-echo %{version} > version
2eb93d
-./autogen.sh
2eb93d
-%configure --disable-static --disable-silent-rules %{?asciidoc}
2eb93d
-make %{?_smp_mflags}
2eb93d
-%endif
2eb93d
 
2eb93d
 %install
2eb93d
-%if %{with_meson}
2eb93d
 %meson_install
2eb93d
-%else
2eb93d
-%make_install
2eb93d
-find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
2eb93d
-%endif
2eb93d
 
2eb93d
 %check
2eb93d
-%if %{with_meson}
2eb93d
 %meson_test
2eb93d
-%else
2eb93d
-make check
2eb93d
-%endif
2eb93d
 
2eb93d
 %ldconfig_scriptlets -n LNAME
2eb93d
 
2eb93d
diff -up ndctl-71.1/ndctl/Makefile.am /dev/null
2eb93d
--- ndctl-71.1/ndctl/Makefile.am	2022-10-07 18:39:13.135886489 -0400
2eb93d
+++ /dev/null	2022-07-27 11:30:34.495212588 -0400
2eb93d
@@ -1,83 +0,0 @@
2eb93d
-include $(top_srcdir)/Makefile.am.in
2eb93d
-
2eb93d
-bin_PROGRAMS = ndctl
2eb93d
-
2eb93d
-DISTCLEANFILES = config.h
2eb93d
-BUILT_SOURCES = config.h
2eb93d
-config.h: $(srcdir)/Makefile.am
2eb93d
-	$(AM_V_GEN) echo "/* Autogenerated by ndctl/Makefile.am */" >$@ && \
2eb93d
-	echo '#define NDCTL_CONF_FILE \
2eb93d
-		"$(ndctl_monitorconfdir)/$(ndctl_monitorconf)"' >>$@
2eb93d
-	$(AM_V_GEN) echo '#define NDCTL_KEYS_DIR  "$(ndctl_keysdir)"' >>$@
2eb93d
-
2eb93d
-ndctl_SOURCES = ndctl.c \
2eb93d
-		builtin.h \
2eb93d
-		bus.c \
2eb93d
-		create-nfit.c \
2eb93d
-		namespace.c \
2eb93d
-		check.c \
2eb93d
-		region.c \
2eb93d
-		dimm.c \
2eb93d
-		../util/log.c \
2eb93d
-		../daxctl/filter.c \
2eb93d
-		../daxctl/filter.h \
2eb93d
-		filter.c \
2eb93d
-		filter.h \
2eb93d
-		list.c \
2eb93d
-		../util/json.c \
2eb93d
-		../util/json.h \
2eb93d
-		../daxctl/json.c \
2eb93d
-		../daxctl/json.h \
2eb93d
-		json.c \
2eb93d
-		json.h \
2eb93d
-		json-smart.c \
2eb93d
-		keys.h \
2eb93d
-		inject-error.c \
2eb93d
-		inject-smart.c \
2eb93d
-		monitor.c \
2eb93d
-		namespace.h \
2eb93d
-		action.h \
2eb93d
-		../nfit.h \
2eb93d
-		../test.h \
2eb93d
-		firmware-update.h
2eb93d
-
2eb93d
-if ENABLE_KEYUTILS
2eb93d
-ndctl_SOURCES += keys.c \
2eb93d
-		load-keys.c
2eb93d
-keys_configdir = $(ndctl_keysdir)
2eb93d
-keys_config_DATA = $(ndctl_keysreadme)
2eb93d
-endif
2eb93d
-
2eb93d
-EXTRA_DIST += keys.readme monitor.conf ndctl-monitor.service
2eb93d
-
2eb93d
-if ENABLE_DESTRUCTIVE
2eb93d
-ndctl_SOURCES += ../test/pmem_namespaces.c
2eb93d
-ndctl_SOURCES += bat.c
2eb93d
-endif
2eb93d
-
2eb93d
-ndctl_LDADD =\
2eb93d
-	lib/libndctl.la \
2eb93d
-	../daxctl/lib/libdaxctl.la \
2eb93d
-	../libutil.a \
2eb93d
-	$(UUID_LIBS) \
2eb93d
-	$(KMOD_LIBS) \
2eb93d
-	$(JSON_LIBS)
2eb93d
-
2eb93d
-if ENABLE_KEYUTILS
2eb93d
-ndctl_LDADD += -lkeyutils
2eb93d
-endif
2eb93d
-
2eb93d
-if ENABLE_TEST
2eb93d
-ndctl_SOURCES += ../test/libndctl.c \
2eb93d
-		 ../test/dsm-fail.c \
2eb93d
-		 ../util/sysfs.c \
2eb93d
-		 ../test/core.c \
2eb93d
-		 test.c
2eb93d
-endif
2eb93d
-
2eb93d
-monitor_configdir = $(ndctl_monitorconfdir)
2eb93d
-monitor_config_DATA = $(ndctl_monitorconf)
2eb93d
-
2eb93d
-if ENABLE_SYSTEMD_UNITS
2eb93d
-systemd_unit_DATA = ndctl-monitor.service
2eb93d
-endif
2eb93d
diff -up ndctl-71.1/ndctl/lib/Makefile.am /dev/null
2eb93d
--- ndctl-71.1/ndctl/lib/Makefile.am	2020-12-22 16:44:57.000000000 -0500
2eb93d
+++ /dev/null	2022-07-27 11:30:34.495212588 -0400
2eb93d
@@ -1,52 +0,0 @@
2eb93d
-include $(top_srcdir)/Makefile.am.in
2eb93d
-
2eb93d
-%.pc: %.pc.in Makefile
2eb93d
-	$(SED_PROCESS)
2eb93d
-
2eb93d
-pkginclude_HEADERS = ../libndctl.h ../ndctl.h
2eb93d
-lib_LTLIBRARIES = libndctl.la
2eb93d
-
2eb93d
-libndctl_la_SOURCES =\
2eb93d
-	../libndctl.h \
2eb93d
-	private.h \
2eb93d
-	../../util/list.h \
2eb93d
-	../../util/log.c \
2eb93d
-	../../util/log.h \
2eb93d
-	../../util/sysfs.c \
2eb93d
-	../../util/sysfs.h \
2eb93d
-	../../util/fletcher.h \
2eb93d
-	dimm.c \
2eb93d
-	inject.c \
2eb93d
-	nfit.c \
2eb93d
-	smart.c \
2eb93d
-	intel.c \
2eb93d
-	hpe1.c \
2eb93d
-	msft.c \
2eb93d
-	hyperv.c \
2eb93d
-	papr.c \
2eb93d
-	ars.c \
2eb93d
-	firmware.c \
2eb93d
-	libndctl.c \
2eb93d
-	intel.h \
2eb93d
-	hpe1.h \
2eb93d
-	msft.h \
2eb93d
-	hyperv.h \
2eb93d
-	../../ndctl/libndctl-nfit.h
2eb93d
-
2eb93d
-libndctl_la_LIBADD =\
2eb93d
-	../../daxctl/lib/libdaxctl.la \
2eb93d
-	$(UDEV_LIBS) \
2eb93d
-	$(UUID_LIBS) \
2eb93d
-	$(KMOD_LIBS)
2eb93d
-
2eb93d
-EXTRA_DIST += libndctl.sym
2eb93d
-
2eb93d
-libndctl_la_LDFLAGS = $(AM_LDFLAGS) \
2eb93d
-	-version-info $(LIBNDCTL_CURRENT):$(LIBNDCTL_REVISION):$(LIBNDCTL_AGE) \
2eb93d
-	-Wl,--version-script=$(top_srcdir)/ndctl/lib/libndctl.sym
2eb93d
-libndctl_la_DEPENDENCIES = libndctl.sym
2eb93d
-
2eb93d
-pkgconfigdir = $(libdir)/pkgconfig
2eb93d
-pkgconfig_DATA = libndctl.pc
2eb93d
-EXTRA_DIST += libndctl.pc.in
2eb93d
-CLEANFILES += libndctl.pc
2eb93d
diff -up ndctl-71.1/rhel/meson.build.orig ndctl-71.1/rhel/meson.build
2eb93d
--- ndctl-71.1/rhel/meson.build.orig	2022-10-07 18:39:13.184886656 -0400
2eb93d
+++ ndctl-71.1/rhel/meson.build	2022-10-07 18:41:13.892297627 -0400
2eb93d
@@ -7,8 +7,7 @@ rhel_spec1 = vcs_tag(
2eb93d
 
2eb93d
 rhel_spec2 = custom_target('ndctl.spec',
2eb93d
   command : [
2eb93d
-    'sed', '-e', 's,MESON,1,g',
2eb93d
-	   '-e', 's,DAX_DNAME,daxctl-devel,g',
2eb93d
+    'sed', '-e', 's,DAX_DNAME,daxctl-devel,g',
2eb93d
 	   '-e', 's,CXL_DNAME,cxl-devel,g',
2eb93d
 	   '-e', 's,DNAME,ndctl-devel,g',
2eb93d
 	   '-e', '/^%defattr.*/d',
2eb93d
diff -up ndctl-71.1/sles/meson.build.orig ndctl-71.1/sles/meson.build
2eb93d
--- ndctl-71.1/sles/meson.build.orig	2022-10-07 18:39:13.184886656 -0400
2eb93d
+++ ndctl-71.1/sles/meson.build	2022-10-07 18:41:13.893297631 -0400
2eb93d
@@ -18,8 +18,7 @@ sles_spec2 = custom_target('ndctl.spec.i
2eb93d
 
2eb93d
 sles_spec3 = custom_target('ndctl.spec',
2eb93d
   command : [
2eb93d
-    'sed', '-e', 's,MESON,1,g',
2eb93d
-           '-e', 's,DAX_DNAME,libdaxctl-devel,g',
2eb93d
+    'sed', '-e', 's,DAX_DNAME,libdaxctl-devel,g',
2eb93d
            '-e', 's,CXL_DNAME,libcxl-devel,g',
2eb93d
            '-e', 's,DNAME,libndctl-devel,g',
2eb93d
            '-e', 's,%license,%doc,g',
2eb93d
diff -up ndctl-71.1/test/Makefile.am /dev/null
2eb93d
--- ndctl-71.1/test/Makefile.am	2022-10-07 18:39:13.146886527 -0400
2eb93d
+++ /dev/null	2022-07-27 11:30:34.495212588 -0400
2eb93d
@@ -1,169 +0,0 @@
2eb93d
-include $(top_srcdir)/Makefile.am.in
2eb93d
-
2eb93d
-TESTS =\
2eb93d
-	libndctl \
2eb93d
-	dsm-fail \
2eb93d
-	create.sh \
2eb93d
-	clear.sh \
2eb93d
-	pmem-errors.sh \
2eb93d
-	daxdev-errors.sh \
2eb93d
-	multi-dax.sh \
2eb93d
-	btt-check.sh \
2eb93d
-	label-compat.sh \
2eb93d
-	sector-mode.sh \
2eb93d
-	inject-error.sh \
2eb93d
-	btt-errors.sh \
2eb93d
-	hugetlb \
2eb93d
-	btt-pad-compat.sh \
2eb93d
-	firmware-update.sh \
2eb93d
-	ack-shutdown-count-set \
2eb93d
-	rescan-partitions.sh \
2eb93d
-	inject-smart.sh \
2eb93d
-	monitor.sh \
2eb93d
-	max_available_extent_ns.sh \
2eb93d
-	pfn-meta-errors.sh \
2eb93d
-	track-uuid.sh
2eb93d
-
2eb93d
-EXTRA_DIST += $(TESTS) common \
2eb93d
-		btt-pad-compat.xxd \
2eb93d
-		nmem1.bin nmem2.bin nmem3.bin nmem4.bin
2eb93d
-
2eb93d
-check_PROGRAMS =\
2eb93d
-	libndctl \
2eb93d
-	dsm-fail \
2eb93d
-	dax-errors \
2eb93d
-	smart-notify \
2eb93d
-	smart-listen \
2eb93d
-	hugetlb \
2eb93d
-	daxdev-errors \
2eb93d
-	ack-shutdown-count-set \
2eb93d
-	list-smart-dimm
2eb93d
-
2eb93d
-if ENABLE_DESTRUCTIVE
2eb93d
-TESTS +=\
2eb93d
-	pmem-ns \
2eb93d
-	sub-section.sh \
2eb93d
-	dax-dev \
2eb93d
-	dax-ext4.sh \
2eb93d
-	dax-xfs.sh \
2eb93d
-	align.sh \
2eb93d
-	device-dax \
2eb93d
-	revoke-devmem \
2eb93d
-	device-dax-fio.sh \
2eb93d
-	daxctl-devices.sh \
2eb93d
-	daxctl-create.sh \
2eb93d
-	dm.sh \
2eb93d
-	mmap.sh
2eb93d
-
2eb93d
-if ENABLE_KEYUTILS
2eb93d
-TESTS += security.sh
2eb93d
-endif
2eb93d
-
2eb93d
-check_PROGRAMS +=\
2eb93d
-	pmem-ns \
2eb93d
-	dax-dev \
2eb93d
-	dax-pmd \
2eb93d
-	device-dax \
2eb93d
-	revoke-devmem \
2eb93d
-	mmap
2eb93d
-endif
2eb93d
-
2eb93d
-LIBNDCTL_LIB =\
2eb93d
-       ../ndctl/lib/libndctl.la \
2eb93d
-       ../daxctl/lib/libdaxctl.la
2eb93d
-
2eb93d
-testcore =\
2eb93d
-	core.c \
2eb93d
-	../util/log.c \
2eb93d
-	../util/sysfs.c
2eb93d
-
2eb93d
-libndctl_SOURCES = libndctl.c $(testcore)
2eb93d
-libndctl_LDADD = $(LIBNDCTL_LIB) $(UUID_LIBS) $(KMOD_LIBS)
2eb93d
-
2eb93d
-namespace_core =\
2eb93d
-	../ndctl/namespace.c \
2eb93d
-	../ndctl/filter.c \
2eb93d
-	../ndctl/check.c \
2eb93d
-	../util/json.c \
2eb93d
-	../ndctl/json.c \
2eb93d
-	../daxctl/filter.c \
2eb93d
-	../daxctl/json.c
2eb93d
-
2eb93d
-dsm_fail_SOURCES =\
2eb93d
-	dsm-fail.c \
2eb93d
-	$(testcore) \
2eb93d
-	$(namespace_core)
2eb93d
-
2eb93d
-dsm_fail_LDADD = $(LIBNDCTL_LIB) \
2eb93d
-		$(KMOD_LIBS) \
2eb93d
-		$(JSON_LIBS) \
2eb93d
-		$(UUID_LIBS) \
2eb93d
-		../libutil.a
2eb93d
-
2eb93d
-ack_shutdown_count_set_SOURCES =\
2eb93d
-	ack-shutdown-count-set.c \
2eb93d
-	$(testcore)
2eb93d
-
2eb93d
-ack_shutdown_count_set_LDADD = $(LIBNDCTL_LIB) $(KMOD_LIBS)
2eb93d
-
2eb93d
-pmem_ns_SOURCES = pmem_namespaces.c $(testcore)
2eb93d
-pmem_ns_LDADD = $(LIBNDCTL_LIB) $(KMOD_LIBS) $(UUID_LIBS)
2eb93d
-
2eb93d
-dax_dev_SOURCES = dax-dev.c $(testcore)
2eb93d
-dax_dev_LDADD = $(LIBNDCTL_LIB) $(KMOD_LIBS)
2eb93d
-
2eb93d
-dax_pmd_SOURCES = dax-pmd.c \
2eb93d
-		$(testcore)
2eb93d
-
2eb93d
-hugetlb_SOURCES = hugetlb.c \
2eb93d
-		  dax-pmd.c
2eb93d
-
2eb93d
-mmap_SOURCES = mmap.c
2eb93d
-dax_errors_SOURCES = dax-errors.c
2eb93d
-daxdev_errors_SOURCES = daxdev-errors.c \
2eb93d
-			../util/log.c \
2eb93d
-			../util/sysfs.c
2eb93d
-daxdev_errors_LDADD = $(LIBNDCTL_LIB)
2eb93d
-device_dax_SOURCES = \
2eb93d
-		device-dax.c \
2eb93d
-		dax-dev.c \
2eb93d
-		dax-pmd.c \
2eb93d
-		$(testcore) \
2eb93d
-		$(namespace_core)
2eb93d
-
2eb93d
-if ENABLE_POISON
2eb93d
-dax_pmd_SOURCES += dax-poison.c
2eb93d
-hugetlb_SOURCES += dax-poison.c
2eb93d
-device_dax_SOURCES += dax-poison.c
2eb93d
-endif
2eb93d
-
2eb93d
-device_dax_LDADD = \
2eb93d
-		$(LIBNDCTL_LIB) \
2eb93d
-		$(KMOD_LIBS) \
2eb93d
-		$(JSON_LIBS) \
2eb93d
-                $(UUID_LIBS) \
2eb93d
-		../libutil.a
2eb93d
-
2eb93d
-revoke_devmem_SOURCES = \
2eb93d
-		revoke-devmem.c \
2eb93d
-		dax-dev.c \
2eb93d
-		$(testcore)
2eb93d
-
2eb93d
-revoke_devmem_LDADD = $(LIBNDCTL_LIB)
2eb93d
-
2eb93d
-smart_notify_SOURCES = smart-notify.c
2eb93d
-smart_notify_LDADD = $(LIBNDCTL_LIB)
2eb93d
-smart_listen_SOURCES = smart-listen.c
2eb93d
-smart_listen_LDADD = $(LIBNDCTL_LIB)
2eb93d
-
2eb93d
-list_smart_dimm_SOURCES = \
2eb93d
-		list-smart-dimm.c \
2eb93d
-		../ndctl/filter.c \
2eb93d
-		../util/json.c \
2eb93d
-		../ndctl/json.c
2eb93d
-
2eb93d
-list_smart_dimm_LDADD = \
2eb93d
-		$(LIBNDCTL_LIB) \
2eb93d
-		$(JSON_LIBS) \
2eb93d
-		$(UUID_LIBS) \
2eb93d
-		../libutil.a