From 5a867da63f9ffcc276c517e8e0fecc29b70316f3 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Fri, 8 May 2020 17:28:39 -0600 Subject: [PATCH] LU-13225 utils: fix install path for bash-completion Fix the default install path for bash-completion if the package is not installed at build time. This avoids BASH_COMPLETION_DIR being badly formatted in the lustre.spec file. Lustre-change: https://review.whamcloud.com/38548 Fixes: dfb4afc24102 ("LU-13225 utils: bash completion for lfs and lctl") Test-Parameters: trivial Signed-off-by: Andreas Dilger Change-Id: Ie50071c4ff86f57bc9dd53409ae339da2a3ebbe5 Reviewed-on: https://review.whamcloud.com/38670 Tested-by: Maloo Tested-by: jenkins Reviewed-by: Jian Yu Reviewed-by: Ben Evans Reviewed-by: Oleg Drokin --- lustre.spec.in | 2 +- lustre/autoconf/lustre-core.m4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre.spec.in b/lustre.spec.in index f88455e..bd212ee 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -524,7 +524,7 @@ fi %{_mandir}/man?/* %endif %{_datadir}/lustre -%{_datadir}/bash-completion/completions/* +@BASH_COMPLETION_DIR@ %{_includedir}/lustre %{_includedir}/linux/lnet %{_includedir}/linux/lustre diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index cd89c76..4c623e4 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -3715,7 +3715,7 @@ AC_ARG_WITH([bash-completion-dir], AS_IF([test "x$with_bash_completion_dir" = "xyes"], [ BASH_COMPLETION_DIR="`pkg-config --variable=completionsdir bash-completion`" AS_IF([test "x$BASH_COMPLETION_DIR" = "x"], [ - [BASH_COMPLETION_DIR="$datadir/bash-completion/completions"] + [BASH_COMPLETION_DIR="/usr/share/bash-completion/completions"] ]) ], [ BASH_COMPLETION_DIR="$with_bash_completion_dir" -- 1.8.3.1