Accepting request 1069578 from home:Andreas_Schwab:Factory

- Update to grep 3.9
  * When given multiple patterns the last of which has a back-reference,
    grep no longer sometimes mistakenly matches lines in some cases

OBS-URL: https://build.opensuse.org/request/show/1069578
OBS-URL: https://build.opensuse.org/package/show/Base:System/grep?expand=0&rev=130
This commit is contained in:
Andreas Schwab 2023-03-06 10:18:56 +00:00 committed by Git OBS Bridge
parent d96df970c9
commit 0399a5ce73
3 changed files with 14 additions and 13 deletions

9
efgrep-warning.patch Normal file
View File

@ -0,0 +1,9 @@
Index: grep-3.8/src/egrep.sh
===================================================================
--- grep-3.8.orig/src/egrep.sh
+++ grep-3.8/src/egrep.sh
@@ -1,4 +1,2 @@
#!@SHELL@
-cmd=${0##*/}
-echo "$cmd: warning: $cmd is obsolescent; using @grep@ @option@" >&2
exec @grep@ @option@ "$@"

View File

@ -1,18 +1,11 @@
-------------------------------------------------------------------
Sun Mar 5 20:55:49 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>
Mon Mar 6 09:28:35 UTC 2023 - Andreas Schwab <schwab@suse.de>
- GNU grep 3.9:
- Update to grep 3.9
* With -P, some non-ASCII UTF8 characters were not recognized as
word-constituent due to our omission of the PCRE2_UCP flag.
E.g., given f(){ echo Perú|LC_ALL=en_US.UTF-8 grep -Po "$1"; }
and this command, echo $(f 'r\w'):$(f '.\b'), before it would
print ":r". After the fix, it prints the correct results: "rú:ú".
* When given multiple patterns the last of which has a back-
reference, grep no longer sometimes mistakenly matches lines in
some cases.
- The long obsolete egrep and fgrep commands again issue a friendly
message asking for users to convert to grep -E and grep -F. All
openSUSE package builds are fixed - drop efgrep-warning.patch
* When given multiple patterns the last of which has a back-reference,
grep no longer sometimes mistakenly matches lines in some cases
-------------------------------------------------------------------
Tue Dec 27 12:25:45 UTC 2022 - Ludwig Nussel <lnussel@suse.com>

View File

@ -29,10 +29,10 @@ Source2: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
Source3: %{name}.keyring
Source4: profile.sh
Source5: %{name}-rpmlintrc
Patch0: efgrep-warning.patch
BuildRequires: fdupes
BuildRequires: glibc-locale
BuildRequires: makeinfo
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libpcre2-8)
Provides: base:%{_bindir}/grep
@ -65,7 +65,6 @@ echo exit 77 > tests/pcre-jitstack
echo exit 77 > gnulib-tests/test-c-stack.sh
echo 'int main() { return 77; }' > gnulib-tests/test-sigsegv-catch-stackoverflow1.c
echo 'int main() { return 77; }' > gnulib-tests/test-sigsegv-catch-stackoverflow2.c
echo 'int main() { return 77; }' > gnulib-tests/test-free.c
%endif
%make_build check