[arch-commits] Commit in buildbot/trunk (PKGBUILD reproducible-html.diff)

Chih-Hsuan Yen yan12125 at archlinux.org
Mon May 25 16:13:30 UTC 2020


    Date: Monday, May 25, 2020 @ 16:13:29
  Author: yan12125
Revision: 634634

upgpkg: buildbot 2.7.0-2; make python-buildbot-www reproducible

Added:
  buildbot/trunk/reproducible-html.diff
Modified:
  buildbot/trunk/PKGBUILD

------------------------+
 PKGBUILD               |    9 ++++++---
 reproducible-html.diff |   22 ++++++++++++++++++++++
 2 files changed, 28 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-25 16:11:51 UTC (rev 634633)
+++ PKGBUILD	2020-05-25 16:13:29 UTC (rev 634634)
@@ -10,7 +10,7 @@
          python-buildbot-wsgi-dashboards python-buildbot-badges)
 pkgver=2.7.0
 _bb_contrib_commit=ada3c8f30ca7e1b6bb260e2e5971053fbd254333
-pkgrel=1
+pkgrel=2
 arch=(any)
 url='https://buildbot.net'
 license=(GPL2)
@@ -28,13 +28,15 @@
         "git+https://github.com/buildbot/buildbot-contrib.git#commit=$_bb_contrib_commit"
         "pygments-2.5.diff"
         "sphinx-issue7139.diff"
-        "sphinx-3.0.patch")
+        "sphinx-3.0.patch"
+        "reproducible-html.diff")
 sha256sums=('8b0ce7d332c5013517bf3bbcc70638d16c8ded8c099770bfbc8126332ff3016a'
             'SKIP'
             'SKIP'
             'aab7437b4db78fd07971b875db0cdb9af4e4807ae8c0b7d5d4bae5ae03074ec2'
             '44753dd07bef78105528d371a053594fd7a24922e23a2841d67ff44c764224b6'
-            '148410975575748984de7ae7d013135899bc522a56b7b678df3ac9bb55321f6f')
+            '148410975575748984de7ae7d013135899bc522a56b7b678df3ac9bb55321f6f'
+            'b921d29994eff3af134ca1b37acf291a6a95f5da35a2a4f885557adcca22f864')
 validpgpkeys=(
   '390EB159056ED56F66AB1092AECD456B4D2531FC'  # Pierre Tardy <tardyp at gmail.com> (@tardyp on GitHub)
   'FD0004A26EADFE43A4C3F249C6F7AE200374452D'  # Povilas Kanapickas <povilas at radix.lt> (@p12tic on GitHub)
@@ -45,6 +47,7 @@
   patch -Np1 -i ../pygments-2.5.diff
   patch -Np1 -i ../sphinx-issue7139.diff
   patch -Np1 -i ../sphinx-3.0.patch
+  patch -Np1 -i ../reproducible-html.diff
 
   # HACK: do not use virtualenv
   sed -i -e 's#frontend_deps:.*#frontend_deps:#' Makefile

Added: reproducible-html.diff
===================================================================
--- reproducible-html.diff	                        (rev 0)
+++ reproducible-html.diff	2020-05-25 16:13:29 UTC (rev 634634)
@@ -0,0 +1,22 @@
+--- a/www/base/src/app/layout.jade	2020-02-28 05:30:40.000000000 +0800
++++ b/www/base/src/app/layout.jade	2020-05-24 22:01:39.401819550 +0800
+@@ -1,3 +1,5 @@
++- var timestamp = process.env.SOURCE_DATE_EPOCH ? (parseInt(process.env.SOURCE_DATE_EPOCH) * 1000) : new Date().getTime();
++
+ doctype html
+ html.no-js(ng-app="app", xmlns:ng='http://angularjs.org', xmlns:app='ignored')
+     head
+@@ -18,10 +20,10 @@
+     script(src="browser-warning-list.js")
+     script
+       | window.T =  {{ custom_templates | tojson }};
+-    script(src="scripts.js?_" + (new Date()).getTime())
++    script(src="scripts.js?_" + timestamp)
+     | {% for app in config.plugins -%}
+-    script(src="{{app}}/scripts.js?_" + (new Date()).getTime())
+-    link(href='{{app}}/styles.css?_' + (new Date()).getTime(), rel='stylesheet')
++    script(src="{{app}}/scripts.js?_" + timestamp)
++    link(href='{{app}}/styles.css?_' + timestamp, rel='stylesheet')
+     script
+       | angular.module('app').requires.push('{{app}}')
+     | {% endfor %}



More information about the arch-commits mailing list