From 2819234263305a2fa3729d182ce2ce68f7d5c060 Mon Sep 17 00:00:00 2001
From: Andreas Wacknitz <A.Wacknitz@gmx.de>
Date: Sat, 19 Aug 2023 10:53:22 +0200
Subject: [PATCH] less: update to 643 & import patch from solaris-userland

---
 components/text/less/Makefile                  |    4 ++--
 components/text/less/patches/01-sigwinch.patch |   12 ++++++++++++
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/components/text/less/Makefile b/components/text/less/Makefile
index 517b3f6..cc88899 100644
--- a/components/text/less/Makefile
+++ b/components/text/less/Makefile
@@ -29,12 +29,12 @@
 include ../../../make-rules/shared-macros.mk
 
 COMPONENT_NAME=		less
-COMPONENT_VERSION=	633
+COMPONENT_VERSION=	643
 COMPONENT_SUMMARY=	Pager program similar to more
 COMPONENT_PROJECT_URL=	https://www.greenwoodsoftware.com/less/
 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
-COMPONENT_ARCHIVE_HASH= sha256:2f201d64b828b88af36dfe6cfdba3e0819ece2e446ebe6224813209aaefed04f
+COMPONENT_ARCHIVE_HASH= sha256:2911b5432c836fa084c8a2e68f6cd6312372c026a58faaa98862731c8b6052e8
 COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
 COMPONENT_FMRI=		text/less
 COMPONENT_CLASSIFICATION=	Development/GNU
diff --git a/components/text/less/patches/01-sigwinch.patch b/components/text/less/patches/01-sigwinch.patch
new file mode 100644
index 0000000..e6f940c
--- /dev/null
+++ b/components/text/less/patches/01-sigwinch.patch
@@ -0,0 +1,12 @@
+# SIGWINCH should not stop reading from pipes; should be send up stream
+--- less-633/ttyin.c.org	2023-05-03 11:43:01.000000000 -0700
++++ less-633/ttyin.c	2023-08-09 03:52:33.769132730 -0700
+@@ -187,7 +187,7 @@
+ 			result = iread(tty, &uc, sizeof(char));
+ 			c = (char) uc;
+ 		}
+-		if (result == READ_INTR)
++		if (result == READ_INTR || result == READ_AGAIN)
+ 			return (READ_INTR);
+ 		if (result < 0)
+ 		{

--
Gitblit v1.9.3