Accepting request 1232652 from Base:System

OBS-URL: https://build.opensuse.org/request/show/1232652
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/less?expand=0&rev=77
This commit is contained in:
Dominique Leuenberger 2024-12-20 14:24:27 +00:00 committed by Git OBS Bridge
commit ab1085021f
7 changed files with 44 additions and 4 deletions

Binary file not shown.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2b5f0167216e3ef0ffcb0c31c374e287eb035e4e223d5dae315c2783b6e738ed
size 648198

BIN
less-668.sig Normal file

Binary file not shown.

3
less-668.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2819f55564d86d542abbecafd82ff61e819a3eec967faa36cd3e68f1596a44b8
size 649770

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Sun Dec 15 06:16:41 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
- Update to 668
* Fix crash when using --header on command line
* Fix possible crash when scrolling left/right or toggling -S
* Fix bug when using #stop in a lesskey file
* Fix bug when using --shift or --match-shift on command line with a parameter starting with '.'
* Fix bug in R command when file size changes
* Fix bug using --header when file does not fill screen
* Fix ^X bug when output is not a terminal
* Fix bug where ^Z is not handled immediately
* Fix bug where first byte from a LESSOPEN filter is deleted if it is greater than 0x7F
* Fix uninitialized variable in edit_ifile
* Fix incorrect handling of UTF-8 chars in prompts
- Add reproducible.patch to override build date (boo#1047218)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 21 14:48:40 UTC 2024 - Antonio Feijoo <antonio.feijoo@suse.com> Mon Oct 21 14:48:40 UTC 2024 - Antonio Feijoo <antonio.feijoo@suse.com>

View File

@ -23,7 +23,7 @@
%define use_usretc 1 %define use_usretc 1
%endif %endif
Name: less Name: less
Version: 661 Version: 668
Release: 0 Release: 0
Summary: Text File Browser and Pager Similar to more Summary: Text File Browser and Pager Similar to more
License: BSD-2-Clause OR GPL-3.0-or-later License: BSD-2-Clause OR GPL-3.0-or-later
@ -38,6 +38,7 @@ Source5: https://www.greenwoodsoftware.com/less/less-%{version}.sig
Source6: https://www.greenwoodsoftware.com/less/pubkey.asc#/%{name}.keyring Source6: https://www.greenwoodsoftware.com/less/pubkey.asc#/%{name}.keyring
Patch0: less-429-shell.patch Patch0: less-429-shell.patch
Patch2: less-429-more.patch Patch2: less-429-more.patch
Patch3: reproducible.patch
BuildRequires: automake BuildRequires: automake
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig

22
reproducible.patch Normal file
View File

@ -0,0 +1,22 @@
https://github.com/gwsw/less/pull/567
From c02f7554a1e5685e4332fb6857e95761953c8db4 Mon Sep 17 00:00:00 2001
From: Mark Nudelman <markn@greenwoodsoftware.com>
Date: Mon, 9 Sep 2024 14:48:10 -0700
Subject: [PATCH] Allow SOURCE_DATE_EPOCH to override timestamps in generated
files.
Related to #567.
diff --git a/mkhelp.pl b/mkhelp.pl
index e93535b..452d9a0 100755
--- a/mkhelp.pl
+++ b/mkhelp.pl
@@ -7,7 +7,7 @@ use strict;
# whose content is the input to this script.
{
- my ($sec,$min,$hour,$mday,$mon,$year) = gmtime();
+ my ($sec,$min,$hour,$mday,$mon,$year) = gmtime($ENV{SOURCE_DATE_EPOCH} // time());
printf "/* This file was generated by mkhelp.pl from less.hlp at %d:%02d on %d/%d/%d */\n",
$hour, $min, $year+1900, $mon+1, $mday;
print "#include \"less.h\"\n";