Article View: linux.debian.bugs.dist
Article #2329Bug#1033955: pike8.0: reproducible builds: kernel version and timestamp issues
From: Vagrant Cascadian
Date: Tue, 27 Oct 2026 01:20
Date: Tue, 27 Oct 2026 01:20
191 lines
9097 bytes
9097 bytes
--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
On 2023-04-04, Vagrant Cascadian wrote:
> The build directory includes the running kernel version if PIKE_BUILD_OS
> is not set, as upstream the Makefile uses "uname -s -r -m" set this
> valu... resulting in a different build path during the build, which
> indirectly changes the buildid of various binaries.
>
> The attached patch to debian/rules fixes this by setting PIKE_BUILD_OS
> to the value of DEB_HOST_GNU_TYPE, although any number of other
> DEB_HOST_* variables could be used instead while still remaining
> reproducible.
I believe this patch alone should fix the reproducibility failures for
arm64, armhf, loong64, and riscv64 on reproduce.debian.net where the
kernel variant used is often different than on the buildd.debian.org
machines (and sometimes for amd64 and i386 as well):
https://reproduce.debian.net/excuses.html?source_name=3Dpike8.0
> A build timestamp is embedded in the data-timestamp field in various
> .html documentation files:
>
> /usr/share/doc/pike8.0-doc/html/reference/ex/7.4_3A_3A/hash.html
>
> <div id=3D"build-date">Extracted from <strong data-id=3D"version">Pike =
v8.0 release 1738</strong> as of <strong data-id=3D"date" data-timestamp=3D=
"1680404892">2023-04-01</strong>.</div>
> vs.
> <div id=3D"build-date">Extracted from <strong data-id=3D"version">Pike =
v8.0 release 1738</strong> as of <strong data-id=3D"date" data-timestamp=3D=
"1680405437">2023-04-01</strong>.</div>
The timestamp issues have three patches that may only partially fix the
arch:all pike8.0-doc package, although it still would be nice to apply
them to see if there are any outstanding differences on
reproduce.debian.net (The diffoscope output is trucated, and it looks
like the visible issues should be fixed by the patches).
I would like to propose an NMU fixing these issues in the coming weeks
with the patches I plan to apply below; are there any outstanding
concerns?
live well,
vagrant
diff --git a/debian/patches/avoid-embedding-timestamp-in-documentati.patch =
b/debian/patches/avoid-embedding-timestamp-in-documentati.patch
new file mode 100644
index 0000000..224736c
=2D-- /dev/null
+++ b/debian/patches/avoid-embedding-timestamp-in-documentati.patch
@@ -0,0 +1,27 @@
+From: Vagrant Cascadian <vagrant@reproducible-builds.org>
+Date: Mon, 3 Apr 2023 17:52:43 -0700
+X-Dgit-Generated: 8.0.1956-4.1~0 5202bba9046a6704730b368227b9b02451440bb4
+Subject: Avoid embedding timestamp in documentation.
+
+https://reproducible-builds.org/docs/timestamps/
+
+---
+
+diff --git a/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_split_html.=
pike b/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_split_html.pike
+index f8b1b63..dd4a2c4 100644
+--- a/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_split_html.pike
++++ b/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_split_html.pike
+@@ -1503,11 +1503,9 @@ int low_main(string doc_file, string template_file,=
string outdir,
+=20
+ string js_constants =3D sprintf(
+ "PikeDoc.VERSION =3D '%s';\n"
+- "PikeDoc.PUBDATE =3D '%s';\n"
+- "PikeDoc.GENERATED =3D %d;\n",
++ "PikeDoc.PUBDATE =3D '%s';\n",
+ top->pike_version,
+- top->timestamp,
+- time());
++ top->timestamp);
+=20
+ if (exporter) {
+ exporter->filemodify(Git.MODE_FILE, outdir + "/constants.js");
diff --git a/debian/patches/libmodulestools.pmodstandalone.pmodautod.patch =
b/debian/patches/libmodulestools.pmodstandalone.pmodautod.patch
new file mode 100644
index 0000000..cb23d50
=2D-- /dev/null
+++ b/debian/patches/libmodulestools.pmodstandalone.pmodautod.patch
@@ -0,0 +1,25 @@
+From: Vagrant Cascadian <vagrant@reproducible-builds.org>
+Date: Tue, 9 Jun 2026 16:19:02 -0700
+X-Dgit-Generated: 8.0.1956-4.1~1 0f92c82fdb52d9a77fae9098920dcd8476924863
+Subject: lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_split_html.pike:
+
+Redact PikeDoc.PUBDATE.
+
+---
+
+diff --git a/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_split_html.=
pike b/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_split_html.pike
+index dd4a2c4..0f45765 100644
+--- a/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_split_html.pike
++++ b/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_split_html.pike
+@@ -1503,9 +1503,8 @@ int low_main(string doc_file, string template_file, =
string outdir,
+=20
+ string js_constants =3D sprintf(
+ "PikeDoc.VERSION =3D '%s';\n"
+- "PikeDoc.PUBDATE =3D '%s';\n",
+- top->pike_version,
+- top->timestamp);
++ "PikeDoc.PUBDATE =3D 'REDACTED';\n",
++ top->pike_version);
+=20
+ if (exporter) {
+ exporter->filemodify(Git.MODE_FILE, outdir + "/constants.js");
diff --git a/debian/patches/refdocstructuremodref.html-remove-date-a.patch =
b/debian/patches/refdocstructuremodref.html-remove-date-a.patch
new file mode 100644
index 0000000..fbf05c2
=2D-- /dev/null
+++ b/debian/patches/refdocstructuremodref.html-remove-date-a.patch
@@ -0,0 +1,22 @@
+From: Vagrant Cascadian <vagrant@reproducible-builds.org>
+Date: Mon, 3 Apr 2023 15:43:44 -0700
+X-Dgit-Generated: 8.0.1956-4.1~0 e4f8bcc0d3b1627ea188a49588bdacff7c01d866
+Subject: refdoc/structure/modref.html: Remove date and timestamp from gene=
rated documentation.
+
+https://reproducible-builds.org/docs/timestamps/
+
+---
+
+diff --git a/refdoc/structure/modref.html b/refdoc/structure/modref.html
+index 79bb1f9..5fd884e 100644
+--- a/refdoc/structure/modref.html
++++ b/refdoc/structure/modref.html
+@@ -54,7 +54,7 @@
+ </div>
+ </div>
+ <footer>
+- <div id=3D"build-date">Extracted from <strong data-id=3D"version">$=
version$</strong> as of <strong data-id=3D"date" data-timestamp=3D"$generat=
ed$">$date$</strong>.</div>
++ <div id=3D"build-date">Extracted from <strong data-id=3D"version">$=
version$</strong>.</div>
+ </footer>
+ $extra_footer$
+ <script>
diff --git a/debian/patches/series b/debian/patches/series
index 8093dcc..eba8cd9 100644
=2D-- a/debian/patches/series
+++ b/debian/patches/series
@@ -14,3 +14,6 @@ dont_disable_debug_symbols.patch
gz_test_fix.patch
threads_undefined_var_fix.patch
gcc15.patch
+refdocstructuremodref.html-remove-date-a.patch
+avoid-embedding-timestamp-in-documentati.patch
+libmodulestools.pmodstandalone.pmodautod.patch
diff --git a/debian/rules b/debian/rules
index 88da0f3..69f976d 100755
=2D-- a/debian/rules
+++ b/debian/rules
@@ -20,6 +20,7 @@ endif
=20
export DEB_HOST_GNU_TYPE ?=3D $(shell dpkg-architecture -qDEB_HOST_GNU_TY=
PE)
export DEB_BUILD_GNU_TYPE ?=3D $(shell dpkg-architecture -qDEB_BUILD_GNU_T=
YPE)
+export PIKE_BUILD_OS ?=3D $(DEB_HOST_GNU_TYPE)
=20
CFARGSEXTRA :=3D --with-cdebug
=20
--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCat/59QAKCRDcUY/If5cW
qhlMAQCPhJiCaJPk1+4aw4bhUErlI+2kxUYJ5VyJDhzLddouMgEAjLWYNZKd8hmP
JgCPvJ2qG4IYwpOndvM98QlL8B1BugA=
=YJY2
-----END PGP SIGNATURE-----
--=-=-=--
Technical Details
Message-ID:
<NSE13-86Wm-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomodReferences:
<GgXk5-hoda-1@gated-at.bofh.it> <GgXk5-hoda-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Vagrant Cascadian <vagrant@reproducible-builds.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1033955: pike8.0: reproducible builds: kernel version and timestamp issues Date: Tue, 27 Oct 2026 02:20:01 +0100 Message-ID: <NSE13-86Wm-1@gated-at.bofh.it> References: <GgXk5-hoda-1@gated-at.bofh.it> <GgXk5-hoda-1@gated-at.bofh.it> X-Original-To: 1033955@bugs.debian.org, 1033954@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Tue Oct 27 01:17:09 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: Vagrant Cascadian <vagrant@reproducible-builds.org>, 1033955@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: holmgren@debian.org X-Debian-Pr-Message: followup 1033955 X-Debian-Pr-Package: src:pike8.0 X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: pike8.0 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Greylist: delayed 336 seconds by postgrey-1.37 at buxtehude; Tue, 27 Oct 2026 01:15:57 UTC X-Crossassassin-Score: 2 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1999123 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 191 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Magnus Holmgren <holmgren@debian.org> X-Original-Date: Mon, 26 Oct 2026 18:10:12 -0700 X-Original-Message-ID: <87v76o6j9n.fsf@wireframe> X-Original-References: <87o7o3mgut.fsf@wireframe> <87o7o3mgut.fsf@wireframe>