aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2020-10-30 19:20:24 -0700
committerGlenn Morris2020-10-30 19:21:04 -0700
commit1fc9de4b81ceacabef6aafe48ecaabaf76f34bb2 (patch)
tree15dd6d78d01d6319ef33d26372b24a8ebdc2f34b
parentda6234e2dfd8c345bad1ff3075033b282b64f958 (diff)
downloademacs-1fc9de4b81ceacabef6aafe48ecaabaf76f34bb2.tar.gz
emacs-1fc9de4b81ceacabef6aafe48ecaabaf76f34bb2.zip
Improve reproducibility of generated -pkg.el files
* lisp/emacs-lisp/package.el (package-generate-description-file): Don't include the full name of the source file in the header, since that varies non-reproducibly according to the build directory. https://bugs.debian.org/972861 Note that elpa.gnu.org's admin/archive-contents.el does this by hand and already only includes the nondirectory part.
-rw-r--r--lisp/emacs-lisp/package.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index fc8dfe12ca2..504eb99eb1d 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -963,7 +963,8 @@ untar into a directory named DIR; otherwise, signal an error."
963 (write-region 963 (write-region
964 (concat 964 (concat
965 ";;; Generated package description from " 965 ";;; Generated package description from "
966 (replace-regexp-in-string "-pkg\\.el\\'" ".el" pkg-file) 966 (replace-regexp-in-string "-pkg\\.el\\'" ".el"
967 (file-name-nondirectory pkg-file))
967 " -*- no-byte-compile: t -*-\n" 968 " -*- no-byte-compile: t -*-\n"
968 (prin1-to-string 969 (prin1-to-string
969 (nconc 970 (nconc