Article View: linux.debian.bugs.dist
Article #6814Bug#1033954: pike8.0: reproducible builds: kernel version and timestamp issues
From: Vagrant Cascadian
Date: Sun, 29 Nov 2026 22:10
Date: Sun, 29 Nov 2026 22:10
226 lines
11010 bytes
11010 bytes
--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="
--=-=-=
Content-Type: text/plain
On 2026-10-26, Vagrant Cascadian wrote:
> 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=pike8.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="build-date">Extracted from <strong data-id="version">Pike v8.0 release 1738</strong> as of <strong data-id="date" data-timestamp="1680404892">2023-04-01</strong>.</div>
>> vs.
>> <div id="build-date">Extracted from <strong data-id="version">Pike v8.0 release 1738</strong> as of <strong data-id="date" data-timestamp="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?
I have uploaded an NMU to DELAYED/10, debdiff attached.
live well,
vagrant
--=-=-=
Content-Type: text/plain
Content-Disposition: inline; filename=pike8.0_8.0.1956-4.1.debdiff.txt
Content-Transfer-Encoding: quoted-printable
diff -Nru pike8.0-8.0.1956/debian/changelog pike8.0-8.0.1956/debian/changel=
og
=2D-- pike8.0-8.0.1956/debian/changelog 2026-01-08 12:50:02.000000000 -0800
+++ pike8.0-8.0.1956/debian/changelog 2026-11-29 13:52:09.000000000 -0800
@@ -1,3 +1,16 @@
+pike8.0 (8.0.1956-4.1) unstable; urgency=3Dmedium
+
+ * Non-maintainer upload.
+ * refdoc/structure/modref.html: Remove date and timestamp from generated
+ documentation. (Closes: #1033954)
+ * Avoid embedding timestamp in documentation. (Closes: #1033954)
+ * lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_split_html.pike:
+ Redact PikeDoc.PUBDATE. (Closes: #1033954)
+ * debian/rules: export PIKE_BUILD_OS to avoid embedding kernel version.
+ (Closes: #1033955)
+
+ -- Vagrant Cascadian <vagrant@reproducible-builds.org> Sun, 29 Nov 2026 =
13:52:09 -0800
+
pike8.0 (8.0.1956-4) unstable; urgency=3Dmedium
=20
* Add libcrypt-dev to Build-Depends (Closes: #1106960).
diff -Nru pike8.0-8.0.1956/debian/patches/avoid-embedding-timestamp-in-docu=
mentati.patch pike8.0-8.0.1956/debian/patches/avoid-embedding-timestamp-in-=
documentati.patch
=2D-- pike8.0-8.0.1956/debian/patches/avoid-embedding-timestamp-in-document=
ati.patch 1969-12-31 16:00:00.000000000 -0800
+++ pike8.0-8.0.1956/debian/patches/avoid-embedding-timestamp-in-documentat=
i.patch 2026-11-29 13:52:09.000000000 -0800
@@ -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 cd0d84a85cec18789e5c6c4558c94b9bda4c3e0a
+Subject: Avoid embedding timestamp in documentation. (Closes: #1033954)
+
+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 -Nru pike8.0-8.0.1956/debian/patches/libmodulestools.pmodstandalone.pm=
odautod.patch pike8.0-8.0.1956/debian/patches/libmodulestools.pmodstandalon=
e.pmodautod.patch
=2D-- pike8.0-8.0.1956/debian/patches/libmodulestools.pmodstandalone.pmodau=
tod.patch 1969-12-31 16:00:00.000000000 -0800
+++ pike8.0-8.0.1956/debian/patches/libmodulestools.pmodstandalone.pmodauto=
d.patch 2026-11-29 13:52:09.000000000 -0800
@@ -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 d7b0d8a09e15228066b60e9ef9ae6b6bb075e2d6
+Subject: lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_split_html.pike:
+
+Redact PikeDoc.PUBDATE. (Closes: #1033954)
+
+---
+
+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 -Nru pike8.0-8.0.1956/debian/patches/refdocstructuremodref.html-remove=
-date-a.patch pike8.0-8.0.1956/debian/patches/refdocstructuremodref.html-re=
move-date-a.patch
=2D-- pike8.0-8.0.1956/debian/patches/refdocstructuremodref.html-remove-dat=
e-a.patch 1969-12-31 16:00:00.000000000 -0800
+++ pike8.0-8.0.1956/debian/patches/refdocstructuremodref.html-remove-date-=
a.patch 2026-11-29 13:52:09.000000000 -0800
@@ -0,0 +1,24 @@
+From: Vagrant Cascadian <vagrant@reproducible-builds.org>
+Date: Mon, 3 Apr 2023 15:43:44 -0700
+X-Dgit-Generated: 8.0.1956-4.1 095e29490ec59f0f3688a012c02fa00eb7231afb
+Subject: refdoc/structure/modref.html: Remove date and timestamp from gene=
rated
+
+documentation. (Closes: #1033954)
+
+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 -Nru pike8.0-8.0.1956/debian/patches/series pike8.0-8.0.1956/debian/pa=
tches/series
=2D-- pike8.0-8.0.1956/debian/patches/series 2026-01-08 12:50:02.000000000 =
-0800
+++ pike8.0-8.0.1956/debian/patches/series 2026-11-29 13:52:09.000000000 -0=
800
@@ -14,3 +14,6 @@
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 -Nru pike8.0-8.0.1956/debian/rules pike8.0-8.0.1956/debian/rules
=2D-- pike8.0-8.0.1956/debian/rules 2026-01-08 12:50:02.000000000 -0800
+++ pike8.0-8.0.1956/debian/rules 2026-11-29 13:52:09.000000000 -0800
@@ -20,6 +20,7 @@
=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/If5cWqgUCawyh7gAKCRDcUY/If5cW
qkJ5AQClysDs0cE/xT8yXR1P5DT0y9DPjjBMkt8cnYbriUHsggEA61nRTWs32HUe
Vl2Ydtfx3xfl5h+DqFHumrYX5OSL3QQ=
=spvA
-----END PGP SIGNATURE-----
--==-=-=--
Technical Details
Message-ID:
<O4VfQ-eZXl-23@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<GgXk5-hoda-1@gated-at.bofh.it> <NSE13-86Wm-1@gated-at.bofh.it> <GgX0K-ho6C-11@gated-at.bofh.it> <NSE13-86Wm-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Vagrant Cascadian <vagrant@reproducible-builds.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1033954: pike8.0: reproducible builds: kernel version and timestamp issues Date: Sun, 29 Nov 2026 23:10:02 +0100 Message-ID: <O4VfQ-eZXl-23@gated-at.bofh.it> References: <GgXk5-hoda-1@gated-at.bofh.it> <NSE13-86Wm-1@gated-at.bofh.it> <GgX0K-ho6C-11@gated-at.bofh.it> <NSE13-86Wm-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 Sun Nov 29 22:09:14 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Vagrant Cascadian <vagrant@reproducible-builds.org>, 1033954@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: holmgren@debian.org X-Debian-Pr-Message: followup 1033954 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-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006000 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 226 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Magnus Holmgren <holmgren@debian.org> X-Original-Date: Sun, 29 Nov 2026 14:06:38 -0800 X-Original-Message-ID: <87ecc370nl.fsf@wireframe> X-Original-References: <87o7o3mgut.fsf@wireframe> <87v76o6j9n.fsf@wireframe> <87r0szmhpa.fsf@wireframe> <87v76o6j9n.fsf@wireframe>