public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/less] f45: fix processing wrongly formated perldoc files (rhbz#2501990)
@ 2026-08-19 10:10 Michal Hlavinka
  0 siblings, 0 replies; only message in thread
From: Michal Hlavinka @ 2026-08-19 10:10 UTC (permalink / raw)
  To: git-commits

          A new commit has been pushed.

          Repo   : rpms/less
          Branch : f45
          Commit : 9c17532074e13e16a39b75cc5b116228a4845126
          Author : Michal Hlavinka <mhlavink@redhat.com>
          Date   : 2026-08-19T11:07:28+02:00
          Stats  : +19/-1 in 2 file(s)
          URL    : https://src.fedoraproject.org/rpms/less/c/9c17532074e13e16a39b75cc5b116228a4845126?branch=f45

          Log:
          fix processing wrongly formated perldoc files (rhbz#2501990)

credits Wolfgang Friebel

---
diff --git a/less.spec b/less.spec
index 90c8044..973f79f 100644
--- a/less.spec
+++ b/less.spec
@@ -1,7 +1,7 @@
 Summary: A text file browser similar to more, but better
 Name: less
 Version: 704
-Release: 3%{?dist}
+Release: 4%{?dist}
 # less dual license GPL-3.0-only OR BSD-2-Clause
 # lesspipe GPL-2.0-or-later
 License: (GPL-3.0-only OR BSD-2-Clause) AND GPL-2.0-or-later
@@ -18,6 +18,8 @@ Patch9: less-458-less-filters-man.patch
 Patch10: less-458-lesskey-usage.patch
 Patch11: less-458-old-bot-in-help.patch
 Patch13: less-436-help.patch
+# from upstream, for lesspipe <= 2.27, rhbz#2468485
+Patch14: lesspipe-2.27-fixperldoc.patch
 URL: https://www.greenwoodsoftware.com/less/
 BuildRequires: ncurses-devel
 BuildRequires: autoconf automake libtool
@@ -65,6 +67,7 @@ mv lesspipe-%{lesspipe_version} lesspipe-src
 %patch -P 10 -p1 -b .lesskey-usage
 %patch -P 11 -p1 -b .old-bot
 %patch -P 13 -p1 -b .help
+%patch -P 14 -p1 -b .fixperldoc
 
 # get consistent result localy and on builders
 sed -i -e 's|"#!/usr/bin/env $selected_shell"|"#!$shellcmd"|' -e '/ZSH_/d' lesspipe-src/configure
@@ -114,6 +117,10 @@ popd
 %{_bindir}/archive_color
 
 %changelog
+* Wed Aug 19 2026 Michal Hlavinka <mhlavink@redhat.com> - 704-4
+- fix processing wrongly formated perldoc files (rhbz#2501990)
+  credits Wolfgang Friebel
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 704-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

diff --git a/lesspipe-2.27-fixperldoc.patch b/lesspipe-2.27-fixperldoc.patch
new file mode 100644
index 0000000..05fe66a
--- /dev/null
+++ b/lesspipe-2.27-fixperldoc.patch
@@ -0,0 +1,11 @@
+diff -up less-704/lesspipe-src/lesspipe.sh.fixperldoc less-704/lesspipe-src/lesspipe.sh
+--- less-704/lesspipe-src/lesspipe.sh.fixperldoc	2026-06-10 13:03:36.000000000 +0200
++++ less-704/lesspipe-src/lesspipe.sh	2026-08-19 10:29:42.581072760 +0200
+@@ -415,7 +415,6 @@ get_unpack_cmd () {
+ analyze_args () {
+ 	# determine how we are called
+ 	cmdtree=$(ps -oargs= 2>/dev/null)
+-	[[ $cmdtree == *perldoc\ * ]] && exit 0
+ 	while read -r line; do
+ 		arg1=${line%% *}; arg1=${arg1##*/}
+ 		[[ $arg1 == less ]] && lessarg=$line

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-19 10:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-19 10:10 [rpms/less] f45: fix processing wrongly formated perldoc files (rhbz#2501990) Michal Hlavinka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox