less/reproducible.patch
Stanislav Brabec 188936d16d 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)

OBS-URL: https://build.opensuse.org/package/show/Base:System/less?expand=0&rev=111
2024-12-19 17:44:35 +00:00

23 lines
801 B
Diff

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