]> git.pld-linux.org Git - packages/less.git/commitdiff
- fix support for procfs auto/th/less-608-2
authorAdam Osuchowski <adwol@pld-linux.org>
Sun, 12 Feb 2023 01:27:09 +0000 (02:27 +0100)
committerAdam Osuchowski <adwol@pld-linux.org>
Sun, 12 Feb 2023 01:27:09 +0000 (02:27 +0100)
less-procfs.patch [new file with mode: 0644]
less.spec

diff --git a/less-procfs.patch b/less-procfs.patch
new file mode 100644 (file)
index 0000000..c58b9af
--- /dev/null
@@ -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)])
index 49d8b0394de2ad60ad7e5c8aa6d6e6559ff86ddb..1190ac88d34de8cdce71651bb651efe35f99c9e1 100644 (file)
--- 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}
This page took 0.172018 seconds and 4 git commands to generate.