]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve reproducibility of generated -pkg.el files
authorGlenn Morris <rgm@gnu.org>
Sat, 31 Oct 2020 02:20:24 +0000 (19:20 -0700)
committerGlenn Morris <rgm@gnu.org>
Sat, 31 Oct 2020 02:21:04 +0000 (19:21 -0700)
* 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.

lisp/emacs-lisp/package.el

index fc8dfe12ca20ab9e1db5a7deaa2f70e833c5dd7b..504eb99eb1dc4e0dbd8f2870f7b265371dcff885 100644 (file)
@@ -963,7 +963,8 @@ untar into a directory named DIR; otherwise, signal an error."
       (write-region
        (concat
         ";;; Generated package description from "
-        (replace-regexp-in-string "-pkg\\.el\\'" ".el" pkg-file)
+        (replace-regexp-in-string "-pkg\\.el\\'" ".el"
+                                  (file-name-nondirectory pkg-file))
         "  -*- no-byte-compile: t -*-\n"
         (prin1-to-string
          (nconc