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
diff -Nru pike8.0-8.0.1956/debian/changelog pike8.0-8.0.1956/debian/changelog --- 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=medium + + * 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 <[email protected]> Sun, 29 Nov 2026 13:52:09 -0800 + pike8.0 (8.0.1956-4) unstable; urgency=medium * Add libcrypt-dev to Build-Depends (Closes: #1106960). diff -Nru pike8.0-8.0.1956/debian/patches/avoid-embedding-timestamp-in-documentati.patch pike8.0-8.0.1956/debian/patches/avoid-embedding-timestamp-in-documentati.patch --- pike8.0-8.0.1956/debian/patches/avoid-embedding-timestamp-in-documentati.patch 1969-12-31 16:00:00.000000000 -0800 +++ pike8.0-8.0.1956/debian/patches/avoid-embedding-timestamp-in-documentati.patch 2026-11-29 13:52:09.000000000 -0800 @@ -0,0 +1,27 @@ +From: Vagrant Cascadian <[email protected]> +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, + + string js_constants = sprintf( + "PikeDoc.VERSION = '%s';\n" +- "PikeDoc.PUBDATE = '%s';\n" +- "PikeDoc.GENERATED = %d;\n", ++ "PikeDoc.PUBDATE = '%s';\n", + top->pike_version, +- top->timestamp, +- time()); ++ top->timestamp); + + if (exporter) { + exporter->filemodify(Git.MODE_FILE, outdir + "/constants.js"); diff -Nru pike8.0-8.0.1956/debian/patches/libmodulestools.pmodstandalone.pmodautod.patch pike8.0-8.0.1956/debian/patches/libmodulestools.pmodstandalone.pmodautod.patch --- pike8.0-8.0.1956/debian/patches/libmodulestools.pmodstandalone.pmodautod.patch 1969-12-31 16:00:00.000000000 -0800 +++ pike8.0-8.0.1956/debian/patches/libmodulestools.pmodstandalone.pmodautod.patch 2026-11-29 13:52:09.000000000 -0800 @@ -0,0 +1,25 @@ +From: Vagrant Cascadian <[email protected]> +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, + + string js_constants = sprintf( + "PikeDoc.VERSION = '%s';\n" +- "PikeDoc.PUBDATE = '%s';\n", +- top->pike_version, +- top->timestamp); ++ "PikeDoc.PUBDATE = 'REDACTED';\n", ++ top->pike_version); + + 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-remove-date-a.patch --- pike8.0-8.0.1956/debian/patches/refdocstructuremodref.html-remove-date-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 <[email protected]> +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 generated + +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="build-date">Extracted from <strong data-id="version">$version$</strong> as of <strong data-id="date" data-timestamp="$generated$">$date$</strong>.</div> ++ <div id="build-date">Extracted from <strong data-id="version">$version$</strong>.</div> + </footer> + $extra_footer$ + <script> diff -Nru pike8.0-8.0.1956/debian/patches/series pike8.0-8.0.1956/debian/patches/series --- 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 -0800 @@ -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 --- 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 @@ export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +export PIKE_BUILD_OS ?= $(DEB_HOST_GNU_TYPE) CFARGSEXTRA := --with-cdebug
signature.asc
Description: PGP signature

