Hello community, here is the log from the commit of package ndctl for openSUSE:Factory checked in at 2020-03-06 21:24:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ndctl (Old) and /work/SRC/openSUSE:Factory/.ndctl.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ndctl" Fri Mar 6 21:24:14 2020 rev:26 rq:781277 version:64.1 Changes: -------- --- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes 2019-11-15 22:32:28.604068052 +0100 +++ /work/SRC/openSUSE:Factory/.ndctl.new.26092/ndctl.changes 2020-03-06 21:24:24.529453118 +0100 @@ -1,0 +2,10 @@ +Tue Mar 3 13:43:42 UTC 2020 - Michal Suchanek <msucha...@suse.de> + +- ndctl/test: Relax dax_pmem_compat requirement (bsc#1159523) + + ndctl-test-Relax-dax_pmem_compat-requirement.patch +- Add -fcommon flag on Tumbleweed (boo#1160286). +- Fix 'ndctl enable-namespace all' fails trying to enable idle namespaces + (bsc#1165509 ltc#182068). + + ndctl-namespace-Fix-enable-namespace-error-for-seed-.patch + +------------------------------------------------------------------- New: ---- ndctl-namespace-Fix-enable-namespace-error-for-seed-.patch ndctl-test-Relax-dax_pmem_compat-requirement.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ndctl.spec ++++++ --- /var/tmp/diff_new_pack.9cYpJo/_old 2020-03-06 21:24:25.569453693 +0100 +++ /var/tmp/diff_new_pack.9cYpJo/_new 2020-03-06 21:24:25.569453693 +0100 @@ -34,6 +34,8 @@ Patch4: %{name}-ndctl-lib-Fix-duplicate-bus-detection.patch Patch5: %{name}-namespace-Handle-create-namespace-in-label-less-mode.patch Patch6: %{name}-dimm-Fix-init-labels-success-reporting.patch +Patch7: %{name}-namespace-Fix-enable-namespace-error-for-seed-.patch +Patch8: %{name}-test-Relax-dax_pmem_compat-requirement.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: keyutils-devel @@ -95,6 +97,9 @@ %autopatch -p1 %build +%if 0%{?suse_version} > 1500 +export CFLAGS="%optflags -fcommon" +%endif echo "%{version}" > version ./autogen.sh CONF_FLAGS="--disable-static" @@ -105,6 +110,9 @@ make %{?_smp_mflags} %install +%if 0%{?suse_version} > 1500 +export CFLAGS="%optflags -fcommon" +%endif %make_install find %{buildroot} -type f -name "*.la" -delete -print mkdir -p %{buildroot}%{_sbindir} ++++++ ndctl-namespace-Fix-enable-namespace-error-for-seed-.patch ++++++ >From b9cb03f6d5a8654bf53e6538b60d4b63beb761d4 Mon Sep 17 00:00:00 2001 From: Santosh Sivaraj <sant...@fossix.org> Date: Mon, 13 Jan 2020 09:54:53 +0530 Subject: [PATCH] ndctl/namespace: Fix enable-namespace error for seed namespaces Git-commit: b9cb03f6d5a8654bf53e6538b60d4b63beb761d4 Patch-mainline: pending - v68 'ndctl enable-namespace all' tries to enable seed namespaces too, which results in a error like libndctl: ndctl_namespace_enable: namespace1.0: failed to enable Signed-off-by: Santosh Sivaraj <sant...@fossix.org> Signed-off-by: Dan Williams <dan.j.willi...@intel.com> --- ndctl/lib/libndctl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ndctl/lib/libndctl.c b/ndctl/lib/libndctl.c index d6a28002e7d6..2d23dbb3caf7 100644 --- a/ndctl/lib/libndctl.c +++ b/ndctl/lib/libndctl.c @@ -4010,11 +4010,16 @@ NDCTL_EXPORT int ndctl_namespace_enable(struct ndctl_namespace *ndns) const char *devname = ndctl_namespace_get_devname(ndns); struct ndctl_ctx *ctx = ndctl_namespace_get_ctx(ndns); struct ndctl_region *region = ndns->region; + unsigned long long size = ndctl_namespace_get_size(ndns); int rc; if (ndctl_namespace_is_enabled(ndns)) return 0; + /* Don't try to enable idle namespace (no capacity allocated) */ + if (size == 0) + return -ENXIO; + rc = ndctl_bind(ctx, ndns->module, devname); /* -- 2.23.0 ++++++ ndctl-test-Relax-dax_pmem_compat-requirement.patch ++++++ >From 9ba17d4af1db5a6f97e2be991f5113bcedfd019f Mon Sep 17 00:00:00 2001 From: Jan Kara <j...@suse.com> Date: Tue, 3 Mar 2020 14:42:06 +0100 Subject: [PATCH] ndctl/test: Relax dax_pmem_compat requirement References: bsc#1159523 --- test/core.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/core.c b/test/core.c index 4b36b2d14d7b..3aed14241846 100644 --- a/test/core.c +++ b/test/core.c @@ -168,6 +168,14 @@ int nfit_test_init(struct kmod_ctx **ctx, struct kmod_module **mod, continue; retry: rc = kmod_module_new_from_name(*ctx, name, mod); + + /* + * dax_pmem_compat is not required, missing is ok, + * present-but-production is not ok. + */ + if (rc && strstr(name, "dax_pmem_compat")) + continue; + if (rc) { log_err(&log_ctx, "%s.ko: missing\n", name); break; -- 2.23.0