Thread View: linux.debian.bugs.dist
2 messages
2 total messages
Started by Vagrant Cascadian
Tue, 27 Oct 2026 01:20
Bug#1033955: pike8.0: reproducible builds: kernel version and timestamp issues
Author: 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-----
--=-=-=--
Bug#1033954: pike8.0: reproducible builds: kernel version and timestamp issues
Author: 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-----
--==-=-=--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads