forked from pool/WindowMaker
Accepting request 558817 from home:bmwiedemann:branches:X11:windowmanagers
Add WindowMaker-0.95.8-reproducible.patch to make build reproducible OBS-URL: https://build.opensuse.org/request/show/558817 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/WindowMaker?expand=0&rev=46
This commit is contained in:
parent
22a16dfdc8
commit
16f28618b9
35
WindowMaker-0.95.8-reproducible.patch
Normal file
35
WindowMaker-0.95.8-reproducible.patch
Normal file
@ -0,0 +1,35 @@
|
||||
could be upstreamed, but upstream seems dead
|
||||
with lists.windowmaker.org down and the last git commit is from March
|
||||
|
||||
commit e9ab99877b71669a75c1c1a43c1fb24cb32c1bdf
|
||||
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
|
||||
Date: Tue Dec 19 21:13:21 2017 +0100
|
||||
|
||||
texi2txt: Use ChangeLog date instead of build date
|
||||
|
||||
in order to make builds reproducible.
|
||||
See https://reproducible-builds.org/ for why this is good.
|
||||
|
||||
This date call works with GNU date and BSD date.
|
||||
|
||||
Without this patch, /usr/share/doc/packages/WindowMaker/README.i18n
|
||||
will differ in the line
|
||||
Published by The Window Maker team on ...
|
||||
|
||||
---
|
||||
An alternative solution could use the $SOURCE_DATE_EPOCH variable
|
||||
defined in https://reproducible-builds.org/specs/source-date-epoch/
|
||||
|
||||
diff --git a/script/generate-txt-from-texi.sh b/script/generate-txt-from-texi.sh
|
||||
index 3800c72c..ee4e8603 100755
|
||||
--- a/script/generate-txt-from-texi.sh
|
||||
+++ b/script/generate-txt-from-texi.sh
|
||||
@@ -822,7 +822,7 @@ function execute_commands(line, replaced_line, command) {
|
||||
} else if (command == "today") {
|
||||
# Make sure the date will be in english (we use "C" because it not certain
|
||||
# that the English locale is enabled on the machine of the user)
|
||||
- replaced_line = replaced_line "'"`LANG=C date '+%d %B %Y' | sed -e 's,^0,,' `"'";
|
||||
+ replaced_line = replaced_line "'"`LANG=C date -u -r ../../ChangeLog '+%d %B %Y' | sed -e 's,^0,,' `"'";
|
||||
|
||||
# Commands to display text in a special style ##############################
|
||||
} else if (command == "asis") {
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 20 12:11:03 UTC 2017 - bwiedemann@suse.com
|
||||
|
||||
- Add WindowMaker-0.95.8-reproducible.patch to make build reproducible
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 28 20:21:32 UTC 2017 - crrodriguez@opensuse.org
|
||||
|
||||
|
@ -38,6 +38,8 @@ Patch2: %{name}-menu.patch
|
||||
Patch3: fix_wmgenmenu_paths.patch
|
||||
#
|
||||
Patch101: wm-giflib.patch
|
||||
# PATCH-FEATURE-OPENSUSE
|
||||
Patch102: WindowMaker-0.95.8-reproducible.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: fontconfig-devel
|
||||
@ -98,6 +100,7 @@ cp %{name}/{menu.*,plmenu.*} menu_orig
|
||||
%patch2
|
||||
%patch3
|
||||
%patch101
|
||||
%patch102 -p1
|
||||
cp %{S:4} .
|
||||
cp %{S:6} .
|
||||
%if 0%{?suse_version} < 1140
|
||||
|
Loading…
Reference in New Issue
Block a user