diff --git a/tracker-no-egrep.patch b/tracker-no-egrep.patch new file mode 100644 index 0000000..15c6bb0 --- /dev/null +++ b/tracker-no-egrep.patch @@ -0,0 +1,21 @@ +diff -Nur orig-tracker-3.4.0/src/tracker/bash-completion/tracker tracker-3.4.0/src/tracker/bash-completion/tracker +--- orig-tracker-3.4.0/src/tracker/bash-completion/tracker 2022-09-17 23:23:06.000000000 +0200 ++++ tracker-3.4.0/src/tracker/bash-completion/tracker 2022-09-23 15:37:54.149593212 +0200 +@@ -8,7 +8,7 @@ + cur=${COMP_WORDS[COMP_CWORD]} + + if [[ $cword == 1 ]]; then +- possible=`tracker3 | egrep " [a-z].* " | awk '{ print ($1) }' | sort | uniq` ++ possible=`tracker3 | grep -E " [a-z].* " | awk '{ print ($1) }' | sort | uniq` + COMPREPLY=( $(compgen -W "$possible" -- $cur) ) + return 0; + fi +@@ -37,7 +37,7 @@ + fi + + if [[ -z $cur ]] || [[ $cur == -* ]]; then +- possible=`${words[0]} ${words[1]} -h | egrep "^ *-" | sed "s/^ *//" | sed "s/ [^-].*//" | sed "s/,/\n/g" | sed "s/=.*//"` ++ possible=`${words[0]} ${words[1]} -h | grep -E "^ *-" | sed "s/^ *//" | sed "s/ [^-].*//" | sed "s/,/\n/g" | sed "s/=.*//"` + COMPREPLY=( $(compgen -W "$possible" -- $cur) ) + fi + } diff --git a/tracker.changes b/tracker.changes index 7356972..3ff7b82 100644 --- a/tracker.changes +++ b/tracker.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 23 13:40:16 UTC 2022 - Bjørn Lie + +- Add tracker-no-egrep.patch: Replace usage of egrep with grep -E + ------------------------------------------------------------------- Sun Sep 18 08:34:45 UTC 2022 - Bjørn Lie diff --git a/tracker.spec b/tracker.spec index 3b6ea58..ec2c0ad 100644 --- a/tracker.spec +++ b/tracker.spec @@ -28,6 +28,8 @@ License: GPL-2.0-or-later Group: Productivity/Other URL: https://wiki.gnome.org/Projects/Tracker Source0: https://download.gnome.org/sources/tracker/3.4/%{name}-%{version}.tar.xz +# PATCH-FIX-UPSTREAM tracker-no-egrep.patch -- Replace usage of egrep with grep -E +Patch0: tracker-no-egrep.patch BuildRequires: asciidoc BuildRequires: fdupes