Debian Bug report logs -
#1003379
last-align: reproducible-builds: cpu-specific features embedded in manpages
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>:
Bug#1003379; Package src:last-align.
(Sun, 09 Jan 2022 06:03:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>.
(Sun, 09 Jan 2022 06:03:03 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: last-align
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: cpu
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
Various manpages embed the relevent SIMD variant of the CPU used in the
build environment:
https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/i386/last-align.html
/usr/share/man/man1/last-merge-batches.1.gz
.B·last-merge-batches-avx
vs.
.B·last-merge-batches-avx2
The attached patch to debian/rules and debian/bin/dispatch-simd creates
an environment variable, SIMD_LIST, which is set in debian/rules to
ensure none of the variants match, falling back to the "plain" variants.
Another option might be to postprocess the manpage...
With this patch applied, last-align should at least build reproducibly
on tests.reproducible-builds.org once it migrates to bookworm/testing,
as build paths are currently only varied in unstable and experimental
which trigger other reproducibility issues.
Thanks for maintaining last-align!
live well,
vagrant
[0001-debian-rules-simd-dispatch-Pass-an-environment-varia.patch (text/x-diff, inline)]
From 6fe1d0e3cfe3efd8f9bc5c1a3ffcd7ea84316352 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 9 Jan 2022 05:43:58 +0000
Subject: [PATCH] debian/rules, simd-dispatch: Pass an environment variable to
use the plain variant to when building manpages with help2man.
The relevent simd variant of the build environment is embedded in the
manpage, breaking build reproducibility depending on the cpu features
of the running build environment.
---
debian/bin/simd-dispatch | 3 ++-
debian/rules | 4 ++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/debian/bin/simd-dispatch b/debian/bin/simd-dispatch
index aa3bef8..5faf6b2 100755
--- a/debian/bin/simd-dispatch
+++ b/debian/bin/simd-dispatch
@@ -14,7 +14,8 @@ function test_and_run () {
fi
}
-for SIMD in avx2 avx sse4.1 ssse3 sse3 sse2 sse mmx ; do test_and_run ${SIMD} "$@" ; done
+SIMD_LIST=${SIMD_LIST:-"avx2 avx sse4.1 ssse3 sse3 sse2 sse mmx"}
+for SIMD in $SIMD_LIST ; do test_and_run ${SIMD} "$@" ; done
# fallback to plain option
$BASE-plain "$@"
diff --git a/debian/rules b/debian/rules
index 2812ffd..73bfc74 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,6 +22,10 @@ export DEB_LDFLAGS_MAINT_APPEND += -pthread
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+# Ensure the COMMAND-plain variants is used to generate the manpages
+# for reproducible builds
+export SIMD_LIST = fallback-to-plain-simd
+
BUILT_USING=$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W "libsimde-dev")
%:
--
2.34.1
[signature.asc (application/pgp-signature, inline)]
Reply sent
to Andreas Tille <tille@debian.org>:
You have taken responsibility.
(Mon, 10 Jan 2022 09:36:03 GMT) (full text, mbox, link).
Notification sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer.
(Mon, 10 Jan 2022 09:36:03 GMT) (full text, mbox, link).
Message #10 received at 1003379-close@bugs.debian.org (full text, mbox, reply):
Source: last-align
Source-Version: 1257-1
Done: Andreas Tille <tille@debian.org>
We believe that the bug you reported is fixed in the latest version of
last-align, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1003379@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andreas Tille <tille@debian.org> (supplier of updated last-align package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Mon, 10 Jan 2022 09:53:09 +0100
Source: last-align
Architecture: source
Version: 1257-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Changed-By: Andreas Tille <tille@debian.org>
Closes: 1003379
Changes:
last-align (1257-1) unstable; urgency=medium
.
[ Vagrant Cascadian ]
* Do not embed cpu-specific features in manpages
Closes: #1003379
.
[ Andreas Tille ]
* Re-enable reprotest in Salca-CI to see whether the means above are
working properly
* New upstream version
* Standards-Version: 4.6.0 (routine-update)
Checksums-Sha1:
f37566120fd943c53f60df20d719521a62c42d65 2139 last-align_1257-1.dsc
1b5764f4cc90912835a35a73d01e8d92042e5ea2 1294152 last-align_1257.orig.tar.xz
3b1dd911813b4a75f46e128b560ae29f1599847c 16716 last-align_1257-1.debian.tar.xz
3e7c783e228c089abd20a007bfc20e4fabd3def1 7270 last-align_1257-1_amd64.buildinfo
Checksums-Sha256:
5a7ddd41d70d01881bcae848830885aa1b9c4e46533004aace86292d51a40e96 2139 last-align_1257-1.dsc
d26fc716f737f8783c96dd7e9cf57e69c8f50c1185b4fd9db6dbf00ab4c5c347 1294152 last-align_1257.orig.tar.xz
adf65d9cf6d7eda5da10a974f7ea51dcfc34f51d22cb9b0373699c2cb1d2eabb 16716 last-align_1257-1.debian.tar.xz
b8cf3780f4f9a6725b4ae925e31d33a356de1fad7355a7914daf12a60e2a1420 7270 last-align_1257-1_amd64.buildinfo
Files:
a24cefbc3cdb7a98140455ba763627e9 2139 science optional last-align_1257-1.dsc
3054ba135a06a9458564f6269006dbfa 1294152 science optional last-align_1257.orig.tar.xz
0b8c86b1c5571854a548d1fb7983230b 16716 science optional last-align_1257-1.debian.tar.xz
e079b1363c4583c35b361db1e7696d67 7270 science optional last-align_1257-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmHb9/gRHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtGJxw/9FJ+2SkusZRm9pABWH2ktx1DjEICXUySs
Dr0N08f35JgQET1XKa22aFWyP0H55mFGIR7uKbtuQRbZzFiVqxSdWDTeUMlrT8L0
LhOD1FjAg7viPg4k5p8pVHPvqySHUf0wdRlOkJWQVm+F6yjk9wlTCYD/n45anb1l
AslDgTemSihn/mGwZtk6jYmn2UqaOvWFbzNh1rgt5YAtrkviEyoMmPBYc9gIoo1I
fjJIr9DF83szpCgXUGQ4sqxUYFP+5QFDHsPhuboBBOGoi3PRxv1XAwmBDEv2muDU
wpq3dz7T38TMF23FfoWV422MQk4HNYvPXp1EN8bgI5kxEh8ul31e6GXdNXLJYe96
/W7b4E4WhYzVP0L3GeqA31r8YzwdZ2bt/0Ajd6+XCwNWXa1JeYLAyL9+p9mbhG6I
3h6iwphEtHXPKhL/8bRjDeEkaAoTeLVic4+A+bVJNsrYWZi11Ixi8R35RHoNJJKO
Buu6txDd3/PUv2R1FWnG5NcyfXdo14h6vrajGxp4L4MbGDuxwxxfEO0mEtESFoLf
FIMgB2er5jdXVAWa0v9a3km4DImijJ4AT1vYbaPnvna1UKZ17RDyR/mz7rg79KrF
XVAg9IMZP037y9PIeG4AdnajdSe2FzxVEqHVDuK3YWE/UPxgLB3kOalL6eteE3PS
andAHP7lLwY=
=MjSA
-----END PGP SIGNATURE-----
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>:
Bug#1003379; Package src:last-align.
(Mon, 10 Jan 2022 11:15:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Andreas Tille <andreas@an3as.eu>:
Extra info received and forwarded to list. Copy sent to Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>.
(Mon, 10 Jan 2022 11:15:02 GMT) (full text, mbox, link).
Message #15 received at 1003379@bugs.debian.org (full text, mbox, reply):
Hi Vagrant,
I applied your patch but according to Salsa-CI[1] last-align does
not yet build reproducibly.
Thanks a lot for the reproducible builds effort anyway
Andreas.
[1] https://salsa.debian.org/med-team/last-align/-/jobs/2355125
--
http://fam-tille.de
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>:
Bug#1003379; Package src:last-align.
(Mon, 10 Jan 2022 18:33:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Extra info received and forwarded to list. Copy sent to Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>.
(Mon, 10 Jan 2022 18:33:02 GMT) (full text, mbox, link).
Message #20 received at 1003379@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On 2022-01-10, Andreas Tille wrote:
> I applied your patch but according to Salsa-CI[1] last-align does
> not yet build reproducibly.
>
> Thanks a lot for the reproducible builds effort anyway
>
> Andreas.
>
>
> [1] https://salsa.debian.org/med-team/last-align/-/jobs/2355125
As mentioned in the original bug report, most likely build paths still
trigger other reproducibility issues. Once it migrates to bookworm we
should hopefully start seeing it build reproducibly on
tests.reproducible-builds.org, where build paths are not varied.
The build path is only varied in unstable and experimental on
tests.reproducible-builds.org and presumably the way the salsa-ci job is
configured too.
Thanks for applying, if nothing else it should at least reduce the
differences between builds. :)
live well,
vagrant
[signature.asc (application/pgp-signature, inline)]
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Tue, 08 Feb 2022 07:31:02 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed May 17 11:03:49 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.