diff options
| author | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2023-09-24 09:24:35 +0200 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2023-09-24 09:24:36 +0200 |
| commit | 35fd25af9bbcce84908101a9f487ba106a8d6df7 (patch) | |
| tree | feec70ff9602f9a8d36c53384ca5740fe55c5439 /gnu/packages/patches/emacs-source-date-epoch.patch | |
| parent | 4f35ff1275e05be31f5d41464ccf147e9dbfd016 (diff) | |
| parent | cdbd81ce144f17644ceebd3d08723aa244696a05 (diff) | |
Merge branch 'emacs-team'
Diffstat (limited to 'gnu/packages/patches/emacs-source-date-epoch.patch')
| -rw-r--r-- | gnu/packages/patches/emacs-source-date-epoch.patch | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/gnu/packages/patches/emacs-source-date-epoch.patch b/gnu/packages/patches/emacs-source-date-epoch.patch deleted file mode 100644 index 77ea7ac15c..0000000000 --- a/gnu/packages/patches/emacs-source-date-epoch.patch +++ /dev/null @@ -1,20 +0,0 @@ -Honor SOURCE_DATE_EPOCH variable to avoid non-determinism in generated -"autoloads" files. - ---- a/lisp/emacs-lisp/autoload.el -+++ b/lisp/emacs-lisp/autoload.el -@@ -419,8 +419,12 @@ - ;; nil t)) - ;; (match-end 2)))) - (insert generate-autoload-section-header) -- (prin1 `(autoloads ,autoloads ,load-name ,file ,time) -- outbuf) -+ (let* ((env (getenv "SOURCE_DATE_EPOCH")) -+ (time (if env -+ (seconds-to-time (string-to-number env)) -+ time))) -+ (prin1 `(autoloads ,autoloads ,load-name ,file ,time) -+ outbuf)) - (terpri outbuf) - ;; Break that line at spaces, to avoid very long lines. - ;; Make each sub-line into a comment. |
