[packages/kmod] avoid bash completions conflict by installing them to compatdir

atler atler at pld-linux.org
Fri May 9 02:52:40 CEST 2025


commit 2c0c6cc4547ee8a5826e23eb7d050d2f06bbf331
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri May 9 00:53:23 2025 +0200

    avoid bash completions conflict by installing them to compatdir

 kmod.spec | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/kmod.spec b/kmod.spec
index 955a138..e394076 100644
--- a/kmod.spec
+++ b/kmod.spec
@@ -26,6 +26,7 @@ Patch2:		xz-in-kernel-decompr-compat.patch
 URL:		https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
 BuildRequires:	autoconf >= 2.64
 BuildRequires:	automake >= 1:1.11
+BuildRequires:	bash-completion-devel >= 1:2.0
 %{?with_apidocs:BuildRequires:	gtk-doc >= 1.14}
 %if %{with tests}
 BuildRequires:	kernel-module-build
@@ -54,6 +55,7 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define		_bindir		/sbin
 %define		_sbindir	/sbin
 %define		_slibdir	/%{_lib}
+%define		bash_compdir	%(pkg-config --variable compatdir bash-completion 2> /dev/null || echo ERROR)
 
 %define		filterout_cpp	-DNDEBUG
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kmod.git/commitdiff/2c0c6cc4547ee8a5826e23eb7d050d2f06bbf331



More information about the pld-cvs-commit mailing list