From 1a955c7656357feeee26a168c47cdd3f338200ba Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 4 Aug 2024 10:53:18 -0300 Subject: [PATCH] ports: fix grep using an unimplemented system call --- patches/grep/jinx-working-patch.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/grep/jinx-working-patch.patch diff --git a/patches/grep/jinx-working-patch.patch b/patches/grep/jinx-working-patch.patch new file mode 100644 index 00000000..eb584eac --- /dev/null +++ b/patches/grep/jinx-working-patch.patch @@ -0,0 +1,13 @@ +diff --git grep-clean/src/grep.c grep-workdir/src/grep.c +index 491dd02..5a0250a 100644 +--- grep-clean/src/grep.c ++++ grep-workdir/src/grep.c +@@ -1774,7 +1774,7 @@ drain_input (int fd, struct stat const *st) + ssize_t nbytes; + if (S_ISFIFO (st->st_mode) && dev_null_output) + { +-#ifdef SPLICE_F_MOVE ++#if 0 + /* Should be faster, since it need not copy data to user space. */ + nbytes = splice (fd, NULL, STDOUT_FILENO, NULL, + INITIAL_BUFSIZE, SPLICE_F_MOVE);