[lxc-devel] [lxc/master] fix rpm packaging for bash completion directory.

tomponline on Github lxc-bot at linuxcontainers.org
Tue Feb 5 17:15:17 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 357 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190205/e63d3a7a/attachment.bin>
-------------- next part --------------
From a8a6c2c659a3ec399df2bbfef8ae279f417d3220 Mon Sep 17 00:00:00 2001
From: tomponline <tomp at tomp.uk>
Date: Tue, 5 Feb 2019 17:10:20 +0000
Subject: [PATCH] fix rpm packaging for bash completion directory.

Closed #1825

Signed-off-by: tomponline <tomp at tomp.uk>
---
 lxc.spec.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lxc.spec.in b/lxc.spec.in
index 7fcd811ff..ec6321c33 100644
--- a/lxc.spec.in
+++ b/lxc.spec.in
@@ -125,6 +125,10 @@ development of the Linux containers.
 %prep
 %setup -q -n %{name}-%{version}%{?beta_dot}
 %build
+
+#Dont use pkgconfig to get bash completion dir and use backwards compatible location.
+export bashcompdir=%{_sysconfdir}/bash_completion.d
+
 PATH=$PATH:/usr/sbin:/sbin %configure $args \
 %if "x%{_unitdir}" != "x"
   --with-systemdsystemunitdir=%{_unitdir} \


More information about the lxc-devel mailing list