[Pkg-javascript-commits] [pdf.js] 01/01: Set TZ=UTC before calls to zip

David Prévot taffit at moszumanska.debian.org
Sat Aug 29 19:00:09 UTC 2015


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

taffit pushed a commit to branch master
in repository pdf.js.

commit 28f8d0fdfeb970d18bba830f58e574741e4ed5e9
Author: Dhole <dhole at openmailbox.org>
Date:   Tue Jul 21 16:29:12 2015 +0200

    Set TZ=UTC before calls to zip
    
    This change allows to make the package build reproducible.
    
    Closes: #793127
---
 .../0013-Set-TZ-UTC-before-calls-to-zip.patch      | 26 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 27 insertions(+)

diff --git a/debian/patches/0013-Set-TZ-UTC-before-calls-to-zip.patch b/debian/patches/0013-Set-TZ-UTC-before-calls-to-zip.patch
new file mode 100644
index 0000000..2a8f9ac
--- /dev/null
+++ b/debian/patches/0013-Set-TZ-UTC-before-calls-to-zip.patch
@@ -0,0 +1,26 @@
+From: Dhole <dhole at openmailbox.org>
+Date: Tue, 21 Jul 2015 16:29:12 +0200
+Subject: Set TZ=UTC before calls to zip
+
+This change allows to make the package build reproducible.
+
+Bug-Debian: https://bugs.debian.org/793127
+Forwarded: https://github.com/mozilla/pdf.js/pull/6402
+---
+ make.js | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/make.js b/make.js
+index 07bb5ed..f45a693 100644
+--- a/make.js
++++ b/make.js
+@@ -845,6 +845,9 @@ target.firefox = function() {
+   sed('-i', /.*PDFJS_SUPPORTED_LOCALES.*\n/, chromeManifest,
+       FIREFOX_BUILD_DIR + '/chrome.manifest');
+ 
++  // Set timezone to UTC before calling zip to get reproducible results.
++  process.env.TZ = 'UTC';
++
+   // Create the xpi
+   cd(FIREFOX_BUILD_DIR);
+   exec('zip -r ' + FIREFOX_EXTENSION_NAME + ' ' +
diff --git a/debian/patches/series b/debian/patches/series
index 900b797..d2456eb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 0002-Fix-build-versions-in-generated-file.patch
 0003-Add-adobe-CMaps.patch
 0012-Revert-Remove-ShellJS-copy-and-use-the-NPM-version.patch
+0013-Set-TZ-UTC-before-calls-to-zip.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list