[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[texlive-bin] 01/02: do not include cwd in PDF ID (Closes: #874102)



This is an automated email from the git hooks/post-receive script.

preining pushed a commit to branch master
in repository texlive-bin.

commit 2ae3375dddfe2dd939f3e5f1985eaf461265b26b
Author: Norbert Preining <preining@debian.org>
Date:   Mon Sep 4 09:21:12 2017 +0900

    do not include cwd in PDF ID (Closes: #874102)
---
 debian/changelog                             |  6 ++++++
 debian/patches/series                        |  1 +
 debian/patches/upstream-reproducible-pdf-ids | 32 ++++++++++++++++++++++++++++
 3 files changed, 39 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 1c5fd18..22ae79f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+texlive-bin (2017.20170613.44572-6) unstable; urgency=medium
+
+  * do not include cwd in PDF ID (Closes: #874102)
+
+ -- Norbert Preining <preining@debian.org>  Mon, 04 Sep 2017 09:20:58 +0900
+
 texlive-bin (2017.20170613.44572-5) unstable; urgency=medium
 
   * fix changelog mess-up.
diff --git a/debian/patches/series b/debian/patches/series
index 65b6637..0bea994 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -14,3 +14,4 @@ disable-seetex-stdin-tests
 upupstream-xdvi-desktop-file
 mf-xt-fix-expose-events
 fix-gcc7-errors
+upstream-reproducible-pdf-ids
diff --git a/debian/patches/upstream-reproducible-pdf-ids b/debian/patches/upstream-reproducible-pdf-ids
new file mode 100644
index 0000000..f1441d6
--- /dev/null
+++ b/debian/patches/upstream-reproducible-pdf-ids
@@ -0,0 +1,32 @@
+--- texlive-bin-2017.20170613.44572.orig/texk/web2c/pdftexdir/utils.c
++++ texlive-bin-2017.20170613.44572/texk/web2c/pdftexdir/utils.c
+@@ -707,29 +707,13 @@ void printID(strnumber filename)
+     md5_byte_t digest[16];
+     char id[64];
+     char *file_name;
+-    char pwd[4096];
+     /* start md5 */
+     md5_init(&state);
+     /* get the time */
+     initstarttime();
+     md5_append(&state, (const md5_byte_t *) start_time_str, strlen(start_time_str));
+     /* get the file name */
+-    if (getcwd(pwd, sizeof(pwd)) == NULL)
+-        pdftex_fail("getcwd() failed (%s), path too long?", strerror(errno));
+-#ifdef WIN32
+-    {
+-        char *p;
+-        for (p = pwd; *p; p++) {
+-            if (*p == '\\')
+-                *p = '/';
+-            else if (IS_KANJI(p))
+-                p++;
+-        }
+-    }
+-#endif
+     file_name = makecstring(filename);
+-    md5_append(&state, (const md5_byte_t *) pwd, strlen(pwd));
+-    md5_append(&state, (const md5_byte_t *) "/", 1);
+     md5_append(&state, (const md5_byte_t *) file_name, strlen(file_name));
+     /* finish md5 */
+     md5_finish(&state, digest);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/texlive-bin.git


Reply to: