From 8a38aac3a7d14463abab3bfa1430ef4e318078cb Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 23 Nov 2017 22:20:22 +0900 Subject: [PATCH] meson: do not install RPM macros if rpmmacrosdir is set to no (#7430) Fixes #7427. --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 6317847663d..fd38923b0db 100644 --- a/meson.build +++ b/meson.build @@ -94,7 +94,10 @@ polkitrulesdir = join_paths(datadir, 'polkit-1/rules.d') polkitpkladir = join_paths(localstatedir, 'lib/polkit-1/localauthority/10-vendor.d') varlogdir = join_paths(localstatedir, 'log') xinitrcdir = join_paths(sysconfdir, 'X11/xinit/xinitrc.d') -rpmmacrosdir = join_paths(prefixdir, get_option('rpmmacrosdir')) +rpmmacrosdir = get_option('rpmmacrosdir') +if rpmmacrosdir != 'no' + rpmmacrosdir = join_paths(prefixdir, rpmmacrosdir) +endif modprobedir = join_paths(rootprefixdir, 'lib/modprobe.d') # Our own paths