]> git.pld-linux.org Git - packages/grep.git/commitdiff
Rel 2; Fixes gnulib "Operation not supported" error when grepping -r master auto/th/grep-3.11-2
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 7 Nov 2023 13:34:17 +0000 (14:34 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 7 Nov 2023 13:34:17 +0000 (14:34 +0100)
 directories with more than 100000 files.

grep-dirfd.patch [new file with mode: 0644]
grep.spec

diff --git a/grep-dirfd.patch b/grep-dirfd.patch
new file mode 100644 (file)
index 0000000..e09bc10
--- /dev/null
@@ -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 <vincent@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
index 2ba5c80207b52a3b7d0c4e276c4a9732a40606b9..1f07911470b8868bce3b492a2183bcb2be73cbd7 100644 (file)
--- 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
 
This page took 0.213035 seconds and 4 git commands to generate.