commit c9dcbad38863ab11166326fa0e3aabeff9952d7f Author: Arkadiusz Miśkiewicz <ar...@maven.pl> Date: Tue Nov 7 14:34:17 2023 +0100
Rel 2; Fixes gnulib "Operation not supported" error when grepping -r directories with more than 100000 files. grep-dirfd.patch | 21 +++++++++++++++++++++ grep.spec | 5 ++++- 2 files changed, 25 insertions(+), 1 deletion(-) --- diff --git a/grep.spec b/grep.spec index 2ba5c80..1f07911 100644 --- a/grep.spec +++ b/grep.spec @@ -15,7 +15,7 @@ Summary(tr.UTF-8): Dosyalarda katar arama aracı Summary(uk.UTF-8): Утиліти пошуку по шаблонам GNU grep Name: grep Version: 3.11 -Release: 1 +Release: 2 Epoch: 2 License: GPL v3+ Group: Applications/Text @@ -26,6 +26,8 @@ Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-ma Patch0: %{name}-info.patch Patch1: %{name}-pl.po-update.patch Patch2: disable-unstable-test.patch +# check and drop with grep 3.12+ +Patch3: %{name}-dirfd.patch URL: http://www.gnu.org/software/grep/grep.html BuildRequires: autoconf >= 2.63 BuildRequires: automake >= 1:1.11 @@ -92,6 +94,7 @@ kullanılır. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %{__rm} po/stamp-po diff --git a/grep-dirfd.patch b/grep-dirfd.patch new file mode 100644 index 0000000..e09bc10 --- /dev/null +++ b/grep-dirfd.patch @@ -0,0 +1,21 @@ +Description: Fixes gnulib "Operation not supported" error when grepping -r + directories with more than 100000 files. + The bug is already fixed in the upstream development branch. +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1041588 +Author: Vincent Lefevre <vinc...@vinc17.net> +Forwarded: not-needed + +diff -Naurd grep-3.11-orig/m4/dirfd.m4 grep-3.11/m4/dirfd.m4 +--- grep-3.11~/m4/dirfd.m4 2023-04-29 11:03:00.000000000 +0200 ++++ grep-3.11/m4/dirfd.m4 2023-07-21 19:40:41.345044696 +0200 +@@ -40,10 +40,6 @@ + HAVE_DIRFD=0 + else + HAVE_DIRFD=1 +- dnl Replace only if the system declares dirfd already. +- if test $ac_cv_have_decl_dirfd = yes; then +- REPLACE_DIRFD=1 +- fi + dnl Replace dirfd() on native Windows, to support fdopendir(). + AC_REQUIRE([gl_DIRENT_DIR]) + if test $DIR_HAS_FD_MEMBER = 0; then ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/grep.git/commitdiff/c9dcbad38863ab11166326fa0e3aabeff9952d7f _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit