Strip parent path from package descriptions for reprodcibility
authorRob Browning <rlb@defaultvalue.org>
Sat, 7 Nov 2020 21:11:22 +0000 (15:11 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sat, 7 Nov 2020 22:13:16 +0000 (16:13 -0600)
Add 0012-Strip-parent-path-from-package-descriptions-for-repr.patch to
incorporate the changes.

Thanks to Chris Lamb for reporting the problem and tracking down the
cause.

Closes: 972861
1  2 
debian/.git-dpm
debian/patches/0012-Strip-parent-path-from-package-descriptions-for-repr.patch
debian/patches/series

diff --cc debian/.git-dpm
index a7d8b5f67a330d3a86c6669c79b2b08ed81aa0ef,0000000000000000000000000000000000000000..1d7c4aa1cf6a72bc227732914f70ad4cdf674c8e
mode 100644,000000..100644
--- /dev/null
@@@ -1,8 -1,0 +1,8 @@@
- eeeed459bbcad847b83a9687156f24cb4d370880
- eeeed459bbcad847b83a9687156f24cb4d370880
 +# see git-dpm(1) from git-dpm package
++a64353ba297f114e47c5e22d4a522d95bd400b58
++a64353ba297f114e47c5e22d4a522d95bd400b58
 +d429af9a70839a40bba83ebeaa33ad8d7219fbcd
 +d429af9a70839a40bba83ebeaa33ad8d7219fbcd
 +emacs_27.1+1.orig.tar.xz
 +fa38330a1a57cf7a01ee8128f0faf2dd0117f703
 +25483548
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..9cf2a01c1ee2acfff6b2233e12253973978da831
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,34 @@@
++From a64353ba297f114e47c5e22d4a522d95bd400b58 Mon Sep 17 00:00:00 2001
++From: Rob Browning <rlb@defaultvalue.org>
++Date: Sat, 7 Nov 2020 15:05:52 -0600
++Subject: Strip parent path from package descriptions for reproducibility
++
++Previously, the package description would include the full build tree
++path which varies.  Instead, remove any duplicate slashes and any
++components other than the immediate parent.
++
++Thanks to Chris Lamb for reporting the problem and tracking down the
++cause.
++
++Bug-Debian: https://bugs.debian.org/972861
++---
++ lisp/emacs-lisp/package.el | 6 +++++-
++ 1 file changed, 5 insertions(+), 1 deletion(-)
++
++diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
++index 7d6be3cf4e2..60561fdb678 100644
++--- a/lisp/emacs-lisp/package.el
+++++ b/lisp/emacs-lisp/package.el
++@@ -963,7 +963,11 @@ package-generate-description-file
++       (write-region
++        (concat
++         ";;; Generated package description from "
++-        (replace-regexp-in-string "-pkg\\.el\\'" ".el" pkg-file)
+++        (replace-regexp-in-string ;; just the final y.el or x/y.el
+++         "^.*?\\([^/]+/\\)?\\([^/]+\\)$" "\\1\\2"
+++         (replace-regexp-in-string
+++          "/+" "/"
+++          (replace-regexp-in-string "-pkg\\.el\\'" ".el" pkg-file)))
++         "  -*- no-byte-compile: t -*-\n"
++         (prin1-to-string
++          (nconc
index c02bc450a529d95815ada546a9284a2b5ad77361,0000000000000000000000000000000000000000..d9a70efa092549d5dbf1c38a6cbf22658b0c9252
mode 100644,000000..100644
--- /dev/null
@@@ -1,11 -1,0 +1,12 @@@
 +0001-Prefer-usr-share-info-emacs.patch
 +0002-Run-debian-startup-and-set-debian-emacs-flavor.patch
 +0003-Remove-files-that-appear-to-be-incompatible-with-the.patch
 +0004-Adjust-documentation-references-for-Debian.patch
 +0005-Modify-the-output-of-version-to-indicate-Debian-modi.patch
 +0006-Don-t-try-to-build-src-macuvs.h-via-IVD_Sequences.tx.patch
 +0007-Kill-gpg-agent-in-package-test.el-to-avoid-a-race.patch
 +0008-Don-t-downcase-real-xref-in-elisp-mode-tests.patch
 +0009-Mark-vc-bzr-test-fauilt-bzr-autoloads-as-unstable-fo.patch
 +0010-Mark-echo-server-with-dns-test-as-unstable-for-now.patch
 +0011-emacs-module-tests-fix-VPATH-builds.patch
++0012-Strip-parent-path-from-package-descriptions-for-repr.patch