Dr. Werner Fink 2021-10-04 13:43:56 +00:00 committed by Git OBS Bridge
parent 52f2ee18c4
commit ace0ff956d
3 changed files with 99 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Oct 4 13:42:40 UTC 2021 - Dr. Werner Fink <werner@suse.de>
- Add patch boo1190929-9af4afd0.patch for boo#1190929
modinfo completion fails to recognize .ko.xz
-------------------------------------------------------------------
Mon Sep 28 15:32:10 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package bash-completion
# spec file
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -68,6 +68,8 @@ Patch10: backticks-bsc963140.patch
Patch11: bash-completion-2.7-unRAR-remove.patch
# PATCH-FIX-SUSE boo#1167952
Patch12: bash-completion-fix-missing-directory-completion-with-filename-pattern.patch
# PATCH-FIX-SUSE boo#1190929
Patch13: boo1190929-9af4afd0.patch
BuildRequires: libtool
BuildRequires: pkgconfig
BuildArch: noarch

89
boo1190929-9af4afd0.patch Normal file
View File

@ -0,0 +1,89 @@
From 9af4afd01facc0dc3407c8b81375bedd4b2f5fa4 Mon Sep 17 00:00:00 2001
From: Michal Suchanek <msuchanek@suse.de>
Date: Thu, 30 Sep 2021 12:25:49 +0200
Subject: [PATCH] insmod, modinfo, modprobe: support zstd compressed modules
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
---
completions/insmod | 2 +-
completions/modinfo | 2 +-
completions/modprobe | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
--- a/completions/insmod
+++ b/completions/insmod 2021-10-04 13:34:04.749347460 +0000
@@ -7,7 +7,7 @@ _insmod()
# do filename completion for first argument
if ((cword == 1)); then
- _filedir '@(?(k)o?(.[gx]z))'
+ _filedir '@(?(k)o?(.[gx]z|.zst))'
else # do module parameter completion
COMPREPLY=($(compgen -W "$(PATH="$PATH:/sbin" modinfo \
-p ${words[1]} 2>/dev/null | cut -d: -f1)" -- "$cur"))
--- a/completions/modinfo
+++ b/completions/modinfo 2021-10-04 13:34:04.749347460 +0000
@@ -37,7 +37,7 @@ _modinfo()
# do filename completion if we're giving a path to a module
if [[ $cur == @(*/|[.~])* ]]; then
- _filedir '@(?(k)o?(.[gx]z))'
+ _filedir '@(?(k)o?(.[gx]z|.zst))'
else
_modules $version
fi
--- a/completions/modprobe
+++ b/completions/modprobe 2021-10-04 13:34:04.749347460 +0000
@@ -80,7 +80,7 @@ _modprobe()
insert)
# do filename completion if we're giving a path to a module
if [[ $cur == @(*/|[.~])* ]]; then
- _filedir '@(?(k)o?(.[gx]z))'
+ _filedir '@(?(k)o?(.[gx]z|.zst))'
elif [[ -n $module ]]; then
# do module parameter completion
if [[ $cur == *=* ]]; then
================================================================================
From: Werner Fink <werenr@suse.de>
Date: Mon, 04 Oct 2021 15:38:08 +0200
Subject: Also support .bz2 compressed kernel modules
---
completions/insmod | 2 +-
completions/modinfo | 2 +-
completions/modprobe | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
--- a/completions/insmod
+++ b/completions/insmod 2021-10-04 13:35:49.279524797 +0000
@@ -7,7 +7,7 @@ _insmod()
# do filename completion for first argument
if ((cword == 1)); then
- _filedir '@(?(k)o?(.[gx]z|.zst))'
+ _filedir '@(?(k)o?(.[gx]z|.zst|.bz2))'
else # do module parameter completion
COMPREPLY=($(compgen -W "$(PATH="$PATH:/sbin" modinfo \
-p ${words[1]} 2>/dev/null | cut -d: -f1)" -- "$cur"))
--- a/completions/modinfo
+++ b/completions/modinfo 2021-10-04 13:35:59.863340257 +0000
@@ -37,7 +37,7 @@ _modinfo()
# do filename completion if we're giving a path to a module
if [[ $cur == @(*/|[.~])* ]]; then
- _filedir '@(?(k)o?(.[gx]z|.zst))'
+ _filedir '@(?(k)o?(.[gx]z|.zst|.bz2))'
else
_modules $version
fi
--- a/completions/modprobe
+++ b/completions/modprobe 2021-10-04 13:36:14.743080796 +0000
@@ -80,7 +80,7 @@ _modprobe()
insert)
# do filename completion if we're giving a path to a module
if [[ $cur == @(*/|[.~])* ]]; then
- _filedir '@(?(k)o?(.[gx]z|.zst))'
+ _filedir '@(?(k)o?(.[gx]z|.zst|.bz2))'
elif [[ -n $module ]]; then
# do module parameter completion
if [[ $cur == *=* ]]; then