[packages/less] - fix support for procfs
adwol
adwol at pld-linux.org
Sun Feb 12 02:28:35 CET 2023
commit 699679eac7aa46055b4ee5d897de23975534477c
Author: Adam Osuchowski <adwol at pld-linux.org>
Date: Sun Feb 12 02:27:09 2023 +0100
- fix support for procfs
less-procfs.patch | 24 ++++++++++++++++++++++++
less.spec | 4 +++-
2 files changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/less.spec b/less.spec
index 49d8b03..1190ac8 100644
--- a/less.spec
+++ b/less.spec
@@ -9,7 +9,7 @@ Summary(tr.UTF-8): Metin dosyası görüntüleyici - more benzeri
Summary(uk.UTF-8): Програма для перегляду текстових файлів схожа на more, але краща
Name: less
Version: 608
-Release: 1
+Release: 2
License: GPL v3+
Group: Applications/Text
#Source0Download: http://www.greenwoodsoftware.com/less/download.html
@@ -21,6 +21,7 @@ Source2: %{name}echo.1
Patch0: %{name}-shell.patch
Patch1: %{name}-multilib.patch
Patch2: %{name}-libtinfo.patch
+Patch3: %{name}-procfs.patch
URL: http://www.greenwoodsoftware.com/less/
BuildRequires: autoconf >= 2.50
BuildRequires: ncurses-devel >= 5.0
@@ -77,6 +78,7 @@ sağlar.
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
%{__autoconf}
diff --git a/less-procfs.patch b/less-procfs.patch
new file mode 100644
index 0000000..c58b9af
--- /dev/null
+++ b/less-procfs.patch
@@ -0,0 +1,24 @@
+diff -ruNp less-608.orig/ch.c less-608/ch.c
+--- less-608.orig/ch.c 2022-07-22 21:26:24.000000000 +0200
++++ less-608/ch.c 2023-02-12 02:22:29.484707848 +0100
+@@ -28,6 +28,7 @@ extern ino_t curr_ino;
+
+ #if HAVE_PROCFS
+ #include <sys/statfs.h>
++#include <linux/magic.h>
+ #endif
+
+ typedef POSITION BLOCKNUM;
+diff -ruNp less-608.orig/configure.ac less-608/configure.ac
+--- less-608.orig/configure.ac 2022-07-22 21:26:24.000000000 +0200
++++ less-608/configure.ac 2023-02-12 02:22:29.484707848 +0100
+@@ -271,7 +271,8 @@ AC_TRY_COMPILE([#include <sys/types.h>
+ [struct stat s; dev_t dev = s.st_dev; ino_t ino = s.st_ino;],
+ [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_STAT_INO)], [AC_MSG_RESULT(no)])
+ AC_MSG_CHECKING(for procfs)
+-AC_TRY_COMPILE([#include <sys/statfs.h>],
++AC_TRY_COMPILE([#include <sys/statfs.h>
++#include <linux/magic.h>],
+ [struct statfs s; s.f_type = PROC_SUPER_MAGIC; (void) fstatfs(0,&s); ],
+ [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_PROCFS)], [AC_MSG_RESULT(no)])
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/less.git/commitdiff/699679eac7aa46055b4ee5d897de23975534477c
More information about the pld-cvs-commit
mailing list