Fix bash completion on epel6 (rhbz#1408173).

This commit is contained in:
Thomas Moschny 2017-06-10 14:21:54 +02:00
parent ec14f382cc
commit 08e37c0ba8
2 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,10 @@
diff --git b/config/bash/lxc.in a/config/bash/lxc.in
index 344d5cb..cbd1b79 100644
--- b/config/bash/lxc.in
+++ a/config/bash/lxc.in
@@ -1,4 +1,4 @@
-_have lxc-start && {
+have lxc-start && {
_lxc_names() {
COMPREPLY=( $( compgen -W "$( lxc-ls )" "$cur" ) )
}

View File

@ -44,6 +44,7 @@ Source0: http://linuxcontainers.org/downloads/%{name}-%{version}.tar.gz
Patch0: lxc-2.0.7-fix-init.patch
Patch1: lxc-2.0.6-fix-lxc-net.patch
Patch2: lxc-2.0.8-fix_capability_h.patch
Patch3: lxc-fix-bash-completion.patch
BuildRequires: docbook2X
BuildRequires: doxygen
BuildRequires: kernel-headers
@ -178,10 +179,12 @@ This package contains documentation for %{name}.
%setup -q -n %{name}-%{?!prerel:%{version}}%{?prerel:%{commit}}
%patch0 -p1
%patch1 -p1
%if 0%{?rhel} == 6
%if 0%{?rhel} <= 6
# fix build failure with broken sys/capabilities.h (see
# e.g. rhbz#483548)
%patch2 -p1
# revert 3db8dd39 (see rhbz#1408173)
%patch3 -p1
%endif
@ -384,6 +387,7 @@ fi
%changelog
* Sat Jun 10 2017 Thomas Moschny <thomas.moschny@gmx.de> - 2.0.8-2
- Fix for EL6 build failure.
- Fix bash completion on epel6 (rhbz#1408173).
* Tue Jun 6 2017 Thomas Moschny <thomas.moschny@gmx.de> - 2.0.8-1
- Update to 2.0.8.