Blame SOURCES/0168-meson-make-modprobedatadir-an-option.patch

2eb93d
From 524ad09d5eda320b299468324a2f94fc1802ef00 Mon Sep 17 00:00:00 2001
2eb93d
From: Michal Suchanek <msuchanek@suse.de>
2eb93d
Date: Thu, 10 Mar 2022 14:30:55 +0100
2eb93d
Subject: [PATCH 168/217] meson: make modprobedatadir an option
2eb93d
2eb93d
The modprobe.d directory location is hardcoded.
2eb93d
2eb93d
Link: https://lore.kernel.org/r/20220310133055.GA106731@kunlun.suse.cz
2eb93d
Fixes: 4e5faa1 ("build: Add meson build infrastructure")
2eb93d
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
2eb93d
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
2eb93d
---
2eb93d
 contrib/meson.build | 5 ++++-
2eb93d
 meson_options.txt   | 2 ++
2eb93d
 2 files changed, 6 insertions(+), 1 deletion(-)
2eb93d
2eb93d
diff -up ndctl-71.1/contrib/meson.build.orig ndctl-71.1/contrib/meson.build
2eb93d
--- ndctl-71.1/contrib/meson.build.orig	2022-10-07 16:42:24.750025016 -0400
2eb93d
+++ ndctl-71.1/contrib/meson.build	2022-10-07 16:42:39.374074806 -0400
2eb93d
@@ -24,5 +24,8 @@ if bashcompletiondir != 'no'
2eb93d
   install_data('ndctl', rename : 'cxl', install_dir : bashcompletiondir)
2eb93d
 endif
2eb93d
 
2eb93d
-modprobedatadir = get_option('sysconfdir') + '/modprobe.d/'
2eb93d
+modprobedatadir = get_option('modprobedatadir')
2eb93d
+if modprobedatadir == ''
2eb93d
+  modprobedatadir = get_option('modprobedatadir')
2eb93d
+endif
2eb93d
 install_data('nvdimm-security.conf', install_dir : modprobedatadir)
2eb93d
diff -up ndctl-71.1/meson_options.txt.orig ndctl-71.1/meson_options.txt
2eb93d
--- ndctl-71.1/meson_options.txt.orig	2022-10-07 16:42:39.375074810 -0400
2eb93d
+++ ndctl-71.1/meson_options.txt	2022-10-07 16:43:10.553180961 -0400
2eb93d
@@ -23,3 +23,5 @@ option('pkgconfiglibdir', type : 'string
2eb93d
        description : 'directory for standard pkg-config files')
2eb93d
 option('bashcompletiondir', type : 'string',
2eb93d
        description : '''${datadir}/bash-completion/completions''')
2eb93d
+option('modprobedatadir', type : 'string',
2eb93d
+       description : '''${sysconfdir}/modprobe.d/''')