From 01b9c3d676036b411c9e4012616d5f755391fa21 Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Oct 09 2017 10:18:25 +0000 Subject: Rename rfkill function to avoid conflict with util-linux >= 2.31 Resolves: #1494855 --- diff --git a/bash-completion-rfkill.patch b/bash-completion-rfkill.patch new file mode 100644 index 0000000..15299cf --- /dev/null +++ b/bash-completion-rfkill.patch @@ -0,0 +1,27 @@ +diff --git a/completions/Makefile.am b/completions/Makefile.am +--- a/completions/Makefile.am ++++ b/completions/Makefile.am +@@ -315,7 +315,7 @@ bashcomp_DATA = 2to3 \ + reportbug \ + _reptyr \ + resolvconf \ +- rfkill \ ++ _rfkill \ + ri \ + rmlist \ + rmmod \ +diff --git a/completions/rfkill b/completions/_rfkill +similarity index 86% +rename from completions/rfkill +rename to completions/_rfkill +--- a/completions/rfkill ++++ b/completions/_rfkill +@@ -1,5 +1,8 @@ + # bash completion for rfkill -*- shell-script -*- + ++# Use of this file is deprecated on systems with util-linux >= 2.31, which ++# ships completion for the rfkill included with it. ++ + _rfkill() + { + local cur prev words cword diff --git a/bash-completion.spec b/bash-completion.spec index 76ed45f..16b4ca2 100644 --- a/bash-completion.spec +++ b/bash-completion.spec @@ -5,7 +5,7 @@ Name: bash-completion Version: 2.7 -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 1 Summary: Programmable completion for Bash @@ -14,6 +14,7 @@ URL: https://github.com/scop/bash-completion Source0: https://github.com/scop/bash-completion/releases/download/%{version}/%{name}-%{version}.tar.xz # https://bugzilla.redhat.com/677446, see also redefine_filedir comments Patch0: %{name}-1.99-noblacklist.patch +Patch1: %{name}-rfkill.patch BuildArch: noarch %if %{with tests} @@ -84,6 +85,10 @@ make -C completions check %changelog +* Mon Oct 09 2017 Siteshwar Vashisht - 1:2.7-2 +- Rename rfkill function to avoid conflict with util-linux >= 2.31 + Resolves: #1494855 + * Thu Oct 05 2017 Siteshwar Vashisht - 1:2.7-1 - Update to 2.7