less: update to 704

Update to the latest upstream stable release.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
pull/30159/head
Alexandru Ardelean 2026-07-28 15:33:03 +03:00 committed by Alexandru Ardelean
parent 4504961063
commit fc921fc0b2
2 changed files with 20 additions and 3 deletions

View 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

View 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"