public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Hlavinka <mhlavink@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/less] f44: fix processing wrongly formated perldoc files (rhbz#2501990)
Date: Wed, 19 Aug 2026 10:10:31 GMT	[thread overview]
Message-ID: <178713423178.1.15868362600295536642.rpms-less-9c17532074e1@fedoraproject.org> (raw)

          A new commit has been pushed.

          Repo   : rpms/less
          Branch : f44
          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=f44

          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

                 reply	other threads:[~2026-08-19 10:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178713423178.1.15868362600295536642.rpms-less-9c17532074e1@fedoraproject.org \
    --to=mhlavink@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox