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

Bug#874102: marked as done (texlive-bin: please make the PDF IDs reproducible)



Your message dated Mon, 04 Sep 2017 01:05:42 +0000
with message-id <E1dofpe-0009B7-L8@fasolo.debian.org>
and subject line Bug#874102: fixed in texlive-bin 2017.20170613.44572-6
has caused the Debian Bug report #874102,
regarding texlive-bin: please make the PDF IDs reproducible
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
874102: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874102
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: texlive-bin
Version: 2017.20170613.44572-5
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath toolchain
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that texlive-bin was generating PDFs that vary in their "ID" field.

The ID varies because texlive generates it based on the build path
being included in the digest.

For more info, please see:

  http://tug.org/pipermail/tex-live/2017-June/040398.html
  http://tug.org/pipermail/tex-live/2017-July/040419.html
  http://tug.org/pipermail/tex-live/2017-September/040573.html

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
diff --git a/debian/patches/reproducible-pdf-ids b/debian/patches/reproducible-pdf-ids
new file mode 100644
index 0000000..f1441d6
--- /dev/null
+++ b/debian/patches/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);
diff --git a/debian/patches/series b/debian/patches/series
index 65b6637..076b59b 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
+reproducible-pdf-ids

--- End Message ---
--- Begin Message ---
Source: texlive-bin
Source-Version: 2017.20170613.44572-6

We believe that the bug you reported is fixed in the latest version of
texlive-bin, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 874102@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Norbert Preining <preining@debian.org> (supplier of updated texlive-bin package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 04 Sep 2017 09:23:06 +0900
Source: texlive-bin
Binary: texlive-binaries libkpathsea6 libkpathsea-dev libptexenc1 libptexenc-dev libsynctex1 libsynctex-dev libtexlua52 libtexlua52-dev libtexluajit2 libtexluajit-dev
Architecture: source amd64
Version: 2017.20170613.44572-6
Distribution: unstable
Urgency: medium
Maintainer: Debian TeX Maintainers <debian-tex-maint@lists.debian.org>
Changed-By: Norbert Preining <preining@debian.org>
Description:
 libkpathsea-dev - TeX Live: path search library for TeX (development part)
 libkpathsea6 - TeX Live: path search library for TeX (runtime part)
 libptexenc-dev - TeX Live: ptex encoding library (development part)
 libptexenc1 - TeX Live: pTeX encoding library
 libsynctex-dev - Tex Live: SyncTeX parser library (development part)
 libsynctex1 - TeX Live: SyncTeX parser library
 libtexlua52 - TeX Live: Lua 5.2, modified for use with LuaTeX
 libtexlua52-dev - Tex Live: Lua 5.2, modified for use with LuaTeX (development part
 libtexluajit-dev - Tex Live: LuaJIT, modified for use with LuaJITTeX (development pa
 libtexluajit2 - TeX Live: LuaJIT, modified for use with LuaJITTeX
 texlive-binaries - Binaries for TeX Live
Closes: 874102
Changes:
 texlive-bin (2017.20170613.44572-6) unstable; urgency=medium
 .
   * do not include cwd in PDF ID (Closes: #874102)
   * bump standards version, no changes necessary
Checksums-Sha1:
 300438ecaf37faac9f3aa91c442b964df6c914ec 2944 texlive-bin_2017.20170613.44572-6.dsc
 73c02c9666c4ae7d0b0aa4ec6eee3e993911a83c 52668 texlive-bin_2017.20170613.44572-6.debian.tar.xz
 44ca3a5ef064cb5c5639aefd4e849d4de2aed7e4 188524 libkpathsea-dev_2017.20170613.44572-6_amd64.deb
 3f3ff2802be8bcdb050b33ceb4083af89f57d193 111684 libkpathsea6-dbgsym_2017.20170613.44572-6_amd64.deb
 d02e3204f46bb2e732f6c9100472aeb55d6f6d3e 160942 libkpathsea6_2017.20170613.44572-6_amd64.deb
 55a29a43814d2548ed0303140590ecb8465b3b47 57636 libptexenc-dev_2017.20170613.44572-6_amd64.deb
 54c7d3e43a1301e58f0a9b627d107b83a1853e84 23790 libptexenc1-dbgsym_2017.20170613.44572-6_amd64.deb
 b58a5e117e291bf4ed2ace730f591e156fbd2974 58266 libptexenc1_2017.20170613.44572-6_amd64.deb
 a7f135e68a55f0a766f229dd4dd4b7ccde2283a2 63940 libsynctex-dev_2017.20170613.44572-6_amd64.deb
 b35986ca8744bf1edb55a346729fea2ed4d25509 49854 libsynctex1-dbgsym_2017.20170613.44572-6_amd64.deb
 abc991dc42acb1f85e765a5448ff7487da412d70 65342 libsynctex1_2017.20170613.44572-6_amd64.deb
 ef54c373f360ba41c59076cbb02c3f8830bfb372 252984 libtexlua52-dbgsym_2017.20170613.44572-6_amd64.deb
 d199388bc7ff3f26860154c45e234eae43c491b2 134350 libtexlua52-dev_2017.20170613.44572-6_amd64.deb
 699e76a34e7c969f9bec3c242174cea5d602f90b 111606 libtexlua52_2017.20170613.44572-6_amd64.deb
 65f5bee420e02cce9d1e5018adafcfbda333ed38 290768 libtexluajit-dev_2017.20170613.44572-6_amd64.deb
 16838fe57f52dfce31c58310013833ac7abf1a30 837464 libtexluajit2-dbgsym_2017.20170613.44572-6_amd64.deb
 a0ba66bc8f6498e7fa500b5e7d345f158eabfde2 251054 libtexluajit2_2017.20170613.44572-6_amd64.deb
 f9ff19e91ce12a7310daa33108322ea81d97b3f3 15456 texlive-bin_2017.20170613.44572-6_amd64.buildinfo
 f6fbad0fa1acf35eb818348b2006c550351975b7 28085970 texlive-binaries-dbgsym_2017.20170613.44572-6_amd64.deb
 31fc545f100042b5ae10b4939fb43f180edaaa17 7980208 texlive-binaries_2017.20170613.44572-6_amd64.deb
Checksums-Sha256:
 b887d4700f48005c86ed67725e7e21134c7b58f34110ac02df2dcad6835f5df8 2944 texlive-bin_2017.20170613.44572-6.dsc
 5ab6ed35c35eeba9bb3a9998a0553a647dc8b98139b888a6b6bfe3a6cb0a7eef 52668 texlive-bin_2017.20170613.44572-6.debian.tar.xz
 f3cc4033c75a547c945c120de1016fa2310cec475ad1394e529148adb6260c23 188524 libkpathsea-dev_2017.20170613.44572-6_amd64.deb
 7564aff4325a01f8682dfed5d0913aa392be82ba7a5d8d7189a96b6a125c7481 111684 libkpathsea6-dbgsym_2017.20170613.44572-6_amd64.deb
 b4f0483e73ea219c66d32400b90c4491aa08b986e4406757a87beef7435130a1 160942 libkpathsea6_2017.20170613.44572-6_amd64.deb
 b00e7528b9aadc93145db87c0ffb322987fe0bccf6295ff9075bb51c501bc34a 57636 libptexenc-dev_2017.20170613.44572-6_amd64.deb
 3ddc6dc8f87c5259a55aad16160ec2c522aa81194add1c013caaa2781120de23 23790 libptexenc1-dbgsym_2017.20170613.44572-6_amd64.deb
 c2463c9d6b1fcbd31b3ffc7f86f4932b664069c6cb75344fa1e69998a97830f6 58266 libptexenc1_2017.20170613.44572-6_amd64.deb
 b9956817f1568357c0de60842c9e5ac1eaf932c086e92889ffef5369e59c53db 63940 libsynctex-dev_2017.20170613.44572-6_amd64.deb
 f3e447b6d4169defe110aa602cc40c85e6d854f086962658840571da140e7034 49854 libsynctex1-dbgsym_2017.20170613.44572-6_amd64.deb
 59b0dec0468b2b2eb1df4314b962e0459cd49c0e781fdfbb4c46605b5d518528 65342 libsynctex1_2017.20170613.44572-6_amd64.deb
 782f1ae05ef93a493e4b6ce06880e11a42485502c56a70b0be4bf0ed71ffca58 252984 libtexlua52-dbgsym_2017.20170613.44572-6_amd64.deb
 d43642125d954f79de78351a1be03e799878402f232de2e4e1d1ccee8386f852 134350 libtexlua52-dev_2017.20170613.44572-6_amd64.deb
 f841d10b0d6193a1e900dcf9a01e8cee21752e4efbd972032e19b6e7b4e0f886 111606 libtexlua52_2017.20170613.44572-6_amd64.deb
 6e6a8b23b4e917e8f741ce649ce532dd1039c5f3ec6db12248bc3397e46446c2 290768 libtexluajit-dev_2017.20170613.44572-6_amd64.deb
 23edc6842a0a8de427da82262059cdc84f54880c90305c50ef751894a4785ebd 837464 libtexluajit2-dbgsym_2017.20170613.44572-6_amd64.deb
 9739379d10146cb8eae93427283bfa08731633096b903933280de767c08d1c08 251054 libtexluajit2_2017.20170613.44572-6_amd64.deb
 3fe2715ad65959a054a5b23261963c6befb07df0fa157bd60b751521c9009cc6 15456 texlive-bin_2017.20170613.44572-6_amd64.buildinfo
 b56c5d87ce7fa5e824a7e255f47408c25f900b2a6da0ebd0c658f625d8903c54 28085970 texlive-binaries-dbgsym_2017.20170613.44572-6_amd64.deb
 9f2b6bb78f2909c1db9d2686c80ddeed65b4b151471e02903f0b12a64135e261 7980208 texlive-binaries_2017.20170613.44572-6_amd64.deb
Files:
 69dae01975dad5d9379e0ba02119cd8e 2944 tex optional texlive-bin_2017.20170613.44572-6.dsc
 d032aa37d621b02067ee26e0c821ddca 52668 tex optional texlive-bin_2017.20170613.44572-6.debian.tar.xz
 0807014b2b9453cf2e9bd747e636acba 188524 libdevel optional libkpathsea-dev_2017.20170613.44572-6_amd64.deb
 d5e48a5c39fb81411a5cc39ead94c868 111684 debug extra libkpathsea6-dbgsym_2017.20170613.44572-6_amd64.deb
 66e5989034d391e7a5dae85e2384c979 160942 libs optional libkpathsea6_2017.20170613.44572-6_amd64.deb
 e32ffdeb8360e09930dd102621dbe897 57636 libdevel optional libptexenc-dev_2017.20170613.44572-6_amd64.deb
 2dcf0341b783d0e6ba9d66f5ff26c740 23790 debug extra libptexenc1-dbgsym_2017.20170613.44572-6_amd64.deb
 4f159f11771aa049fffe6c7793bff851 58266 libs optional libptexenc1_2017.20170613.44572-6_amd64.deb
 651f144f285cd8cfde6bcb463dd8d43f 63940 libdevel optional libsynctex-dev_2017.20170613.44572-6_amd64.deb
 eb7791d7c97fa7783a8b45a5fadee5de 49854 debug extra libsynctex1-dbgsym_2017.20170613.44572-6_amd64.deb
 9e2672e2a82c0e7ab12cc793a382c5a7 65342 libs optional libsynctex1_2017.20170613.44572-6_amd64.deb
 7538dc0f96a8ed6f35e39c5695197eed 252984 debug extra libtexlua52-dbgsym_2017.20170613.44572-6_amd64.deb
 82aa610b30c36d076486d151ab43190a 134350 libdevel optional libtexlua52-dev_2017.20170613.44572-6_amd64.deb
 0f5f9310b2c3eabe05616fcf8e5240b9 111606 libs optional libtexlua52_2017.20170613.44572-6_amd64.deb
 2a129cbf538597005e629e98948c38e1 290768 libdevel optional libtexluajit-dev_2017.20170613.44572-6_amd64.deb
 a69323e8fe0946e1f67ad308f10e20a5 837464 debug extra libtexluajit2-dbgsym_2017.20170613.44572-6_amd64.deb
 2cade9b1f121152633050fc2f10c8e89 251054 libs optional libtexluajit2_2017.20170613.44572-6_amd64.deb
 c1deeef10c21bcf69278fd4c3064d455 15456 tex optional texlive-bin_2017.20170613.44572-6_amd64.buildinfo
 6d4142e3c25a11fc0b0c35e0bcf40eea 28085970 debug extra texlive-binaries-dbgsym_2017.20170613.44572-6_amd64.deb
 f1c68ec05d5324b8889933f0feb6ef6b 7980208 tex optional texlive-binaries_2017.20170613.44572-6_amd64.deb

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEWHH4JC3MNmAjYr597AC42tMiZqoFAlmsoHAACgkQ7AC42tMi
ZqrV4Qf+MmZoiK52jpdzL1lrRuaxJStzALx/shrpzRS7Mxsu/Pl3Bm9TegRl8xWO
fPyCHDp0F7ebs5QYRdx8JM/q3Q8pkKm5U9zH5EKvNoLtzs1m/vGZOFUhNLoRykhE
JvPUjilaTICb7kl3HXp6F3GzUsnHidvVm7XOWhvI7tIBFBeZ7zQDMWFeuuYDOhQO
DMv1NWn1q/U9npPa4PxmnfyaJ1X4/LVLXaMyj+lgyFw0wlIvIXMIe1OIAoo64vnU
LGcMzKBJyc0JqT5brucJDYTAu48n5olo6/SHLky6T0Y4BU95Pt1st63m9g9sSj6B
9e2NdvdErqoBwEO/Of/pv1U2VDbk9A==
=aFns
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: