Debian Bug report logs -
#991928
grub2: reproducible builds: embeds different strings depending on (obscure) locales
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, GRUB Maintainers <pkg-grub-devel@alioth-lists.debian.net>:
Bug#991928; Package src:grub2.
(Thu, 05 Aug 2021 22:15: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, GRUB Maintainers <pkg-grub-devel@alioth-lists.debian.net>.
(Thu, 05 Aug 2021 22:15: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: grub2
Severity: minor
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: locale
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
Some locales (e.g. potentially obscure locales used by reprotest) may
cause sort order issues in embedded strings in some of the grub-*.bin
binaries.
The attached patch fixes this by exporting LC_ALL=C.UTF-8 from
debian/rules.
There are still several other outstanding issues affecting the
reproducibility of grub2, but this should help reduce the differences to
troubleshoot the remaining issues.
Thanks for maintaining grub2!
live well,
vagrant
[0003-debian-rules-export-LC_ALL-C.UTF-8-to-ensure-consist.patch (text/x-diff, inline)]
From 372b59d68947aec9f6fe178e19fb87cb77daa46b Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 26 Jul 2021 01:39:05 +0000
Subject: [PATCH 3/3] debian/rules: export LC_ALL=C.UTF-8 to ensure consistent
sort order.
Various grub-*.bin embed strings in a different order depending on
locale.
https://reproducible-builds.org/docs/locales/
---
debian/rules | 1 +
1 file changed, 1 insertion(+)
diff --git a/debian/rules b/debian/rules
index 33309f333..ade4d8a0d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,6 +22,7 @@ export HOST_CFLAGS
export HOST_LDFLAGS
export TARGET_CPPFLAGS := -Wno-unused-but-set-variable
export TARGET_LDFLAGS := -no-pie
+export LC_ALL=C.UTF-8
ifneq (,$(filter sparc sparc64,$(DEB_HOST_ARCH_CPU)))
export TARGET_CCASFLAGS := -fno-PIE
--
2.32.0
[signature.asc (application/pgp-signature, inline)]
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed May 17 12:04:19 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.