Accepting request 1135210 from home:bmwiedemann:reproducible

Add reproducible.patch to make ,elc files deterministic (boo#1084909, boo#1047218)

OBS-URL: https://build.opensuse.org/request/show/1135210
OBS-URL: https://build.opensuse.org/package/show/M17N/xemacs?expand=0&rev=116
This commit is contained in:
Hillwood Yang 2023-12-27 06:48:34 +00:00 committed by Git OBS Bridge
parent c398cf4b5e
commit 12c8eca69c
3 changed files with 32 additions and 0 deletions

23
reproducible.patch Normal file
View File

@ -0,0 +1,23 @@
Date: 2017-08-16
Author: Bernhard M. Wiedemann <bwiedemann suse de>
drop timestamp and build host name from .elc files
Index: xemacs-21.5.34/lisp/bytecomp.el
===================================================================
--- xemacs-21.5.34.orig/lisp/bytecomp.el
+++ xemacs-21.5.34/lisp/bytecomp.el
@@ -2156,11 +2156,8 @@ docstrings code.")
finally return res)))
(setq comments
(with-string-as-buffer-contents ""
- (insert "\n;;; compiled by "
- (or (and (boundp 'user-mail-address) user-mail-address)
- (concat (user-login-name) "@" (system-name)))
- " on "
- (current-time-string) "\n;;; from file " filename "\n")
+ (insert "\n;;; compiled"
+ "\n;;; from file " filename "\n")
(insert ";;; emacs version " emacs-version ".\n")
(insert ";;; bytecomp version " byte-compile-version "\n;;; "
(cond

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Dec 27 03:37:32 UTC 2023 - Bernhard Wiedemann <bwiedemann@suse.de>
- Add reproducible.patch to make ,elc files deterministic
(boo#1084909, boo#1047218)
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jan 14 05:04:47 UTC 2023 - Bernhard Wiedemann <bwiedemann@suse.com> Sat Jan 14 05:04:47 UTC 2023 - Bernhard Wiedemann <bwiedemann@suse.com>

View File

@ -114,6 +114,8 @@ Patch62: xemacs-libX11-boo1175028.patch
# PATCH-FIX-SUSE sys_siglist is deprecated # PATCH-FIX-SUSE sys_siglist is deprecated
Patch63: xemacs-21.5.34-strsignal.patch Patch63: xemacs-21.5.34-strsignal.patch
Patch64: xemacs-21.5.34-fix2038.patch Patch64: xemacs-21.5.34-fix2038.patch
# PATCH-FIX-SUSE drop hostname+timestamp from .elc
Patch65: reproducible.patch
Requires(pre): permissions Requires(pre): permissions
Requires: ctags Requires: ctags
Requires: efont-unicode Requires: efont-unicode
@ -229,6 +231,7 @@ exit 1
%endif %endif
%endif %endif
%patch64 -p1 %patch64 -p1
%patch65 -p1
%build %build
cflags () cflags ()