]> git.99rst.org Git - openwrt-packages.git/commitdiff
less: update to 704
authorAlexandru Ardelean <redacted>
Tue, 28 Jul 2026 12:33:03 +0000 (15:33 +0300)
committerAlexandru Ardelean <redacted>
Fri, 31 Jul 2026 09:52:31 +0000 (12:52 +0300)
Update to the latest upstream stable release.

Signed-off-by: Alexandru Ardelean <redacted>
utils/less/Makefile
utils/less/test.sh

index 8c342294e95b05c6d0c5674647876fa9bc83685d..b22dd156f2579cf6eec1a6edfea12bb40528f1a0 100644 (file)
@@ -8,13 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=less
-PKG_VERSION:=692
+PKG_VERSION:=704
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:= @GNU/less \
        https://www.greenwoodsoftware.com/less
-PKG_HASH:=61300f603798ecf1d7786570789f0ff3f5a1acf075a6fb9f756837d166e37d14
+PKG_HASH:=20a0b0a2bb2525fa53c7eee9beb854b4c9cf172eabb209af7020743547bfe9fb
 
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_LICENSE_FILES:=COPYING
index cb6d61cae04c0ff418b5c56852ee2e1571fdd2ff..7a09a88e66f82138547c876fc928928f18543942 100644 (file)
@@ -1,3 +1,20 @@
 #!/bin/sh
+# less is a pager; with a non-tty output and one-screen content (-F quits
+# at once) it dumps the input verbatim, which we can check without a
+# terminal. Payloads stay small so less never blocks waiting to page.
 
-[ -x /usr/libexec/less-gnu ] || { echo "FAIL: /usr/libexec/less-gnu not installed"; exit 1; }
+LESS_BIN=/usr/libexec/less-gnu
+[ -x "$LESS_BIN" ] || { echo "FAIL: $LESS_BIN not installed"; exit 1; }
+
+payload="$(printf 'alpha\nbeta\ngamma\ndelta')"
+
+# from stdin
+out="$(printf '%s\n' "$payload" | "$LESS_BIN" -F)"
+[ "$out" = "$payload" ] || { echo "FAIL: less mangled stdin"; exit 1; }
+
+# from a file argument
+tmp="$(mktemp)"; printf '%s\n' "$payload" > "$tmp"
+out="$("$LESS_BIN" -F "$tmp")"; rm -f "$tmp"
+[ "$out" = "$payload" ] || { echo "FAIL: less mangled a file argument"; exit 1; }
+
+echo "less: pass-through OK"
git clone https://git.99rst.org/PROJECT