diff --git a/0002-exclude-cxl_monitor_service.patch b/0002-exclude-cxl_monitor_service.patch new file mode 100644 index 0000000000000000000000000000000000000000..210c0262c25e96b2543166ac6c208496b413d4cf --- /dev/null +++ b/0002-exclude-cxl_monitor_service.patch @@ -0,0 +1,15 @@ +diff --git a/cxl/meson.build b/cxl/meson.build +index 61b4d87..9792158 100644 +--- a/cxl/meson.build ++++ b/cxl/meson.build +@@ -12,8 +12,10 @@ cxl_src = [ + ] + + if get_option('systemd').enabled() ++if get_option('libtracefs').enabled() + install_data('cxl-monitor.service', install_dir : systemdunitdir) + endif ++endif + + deps = [ + cxl_dep, diff --git a/ndctl.spec b/ndctl.spec index dcd76b60763684672fe54ff06e140599391d75e1..afbb465b0f3f8848b17ca59f76bd5abf45fb725d 100644 --- a/ndctl.spec +++ b/ndctl.spec @@ -1,6 +1,6 @@ Name: ndctl Version: 78 -Release: 1 +Release: 2 Summary: Manage "libnvdimm" subsystem devices (Non-volatile Memory) License: GPL-2 AND LGPL-2.1 AND MIT AND CC0-1.0 Group: System Environment/Base @@ -8,6 +8,7 @@ Url: https://github.com/pmem/ndctl Source0: https://github.com/pmem/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Patch1: 0001-zero_info_block-skip-seed-devices.patch +Patch2: 0002-exclude-cxl_monitor_service.patch Requires: ndctl-libs%{?_isa} = %{version}-%{release} Requires: daxctl-libs%{?_isa} = %{version}-%{release} @@ -205,7 +206,7 @@ fi %{_bindir}/cxl %{_mandir}/man1/cxl* %{bashcompdir}/cxl -%{_unitdir}/cxl-monitor.service +%exclude %{_unitdir}/cxl-monitor.service %files -n ndctl-libs %doc README.md @@ -243,6 +244,9 @@ fi %{_mandir}/man3/libcxl.3* %changelog +* Mon Apr 8 2024 wuyifeng - 78-2 +- fix ndctl delete monitor.service + * Wed Jan 17 2024 wuyifeng - 78-1 - upgrade to version 78: -incorporate up to 6.5 kernel