From 12c8eca69cc5861f9ef1983c4a3df77362cff2b52f17db23de7445e50a00cab7 Mon Sep 17 00:00:00 2001 From: Hillwood Yang Date: Wed, 27 Dec 2023 06:48:34 +0000 Subject: [PATCH] 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 --- reproducible.patch | 23 +++++++++++++++++++++++ xemacs.changes | 6 ++++++ xemacs.spec | 3 +++ 3 files changed, 32 insertions(+) create mode 100644 reproducible.patch diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..9844c1f --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,23 @@ +Date: 2017-08-16 +Author: Bernhard M. Wiedemann + +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 diff --git a/xemacs.changes b/xemacs.changes index d4a313c..c8e3c68 100644 --- a/xemacs.changes +++ b/xemacs.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Dec 27 03:37:32 UTC 2023 - Bernhard Wiedemann + +- Add reproducible.patch to make ,elc files deterministic + (boo#1084909, boo#1047218) + ------------------------------------------------------------------- Sat Jan 14 05:04:47 UTC 2023 - Bernhard Wiedemann diff --git a/xemacs.spec b/xemacs.spec index aa54ef6..90d6bbd 100644 --- a/xemacs.spec +++ b/xemacs.spec @@ -114,6 +114,8 @@ Patch62: xemacs-libX11-boo1175028.patch # PATCH-FIX-SUSE sys_siglist is deprecated Patch63: xemacs-21.5.34-strsignal.patch Patch64: xemacs-21.5.34-fix2038.patch +# PATCH-FIX-SUSE drop hostname+timestamp from .elc +Patch65: reproducible.patch Requires(pre): permissions Requires: ctags Requires: efont-unicode @@ -229,6 +231,7 @@ exit 1 %endif %endif %patch64 -p1 +%patch65 -p1 %build cflags ()