Debian Bug report logs - #979023
lirc: reproducible builds: File contents may vary depending on locale

Package: src:lirc; Maintainer for src:lirc is Debian Lirc Team <team+debian-lirc@tracker.debian.org>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Sat, 2 Jan 2021 03:27:02 UTC

Severity: normal

Tags: patch

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian Lirc Team <team+debian-lirc@tracker.debian.org>:
Bug#979023; Package src:lirc. (Sat, 02 Jan 2021 03:27:04 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 Lirc Team <team+debian-lirc@tracker.debian.org>. (Sat, 02 Jan 2021 03:27:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: lirc: reproducible builds: File contents may vary depending on locale
Date: Fri, 01 Jan 2021 19:26:18 -0800
[Message part 1 (text/plain, inline)]
Source: lirc
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: locale
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The contents of various files appears to vary with certain locales.

│ │ │ ├── ./usr/include/lirc/input_map.inc
│ │ │ │┄ Ordering differences only
│ │ │ │ @@ -1,12 +1,12 @@
│ │ │ │  {"KEY_0", 11},
│ │ │ │ -{"KEY_1", 2},
│ │ │ │  {"KEY_102ND", 86},
│ │ │ │  {"KEY_10CHANNELSDOWN", 0x1b9},
│ │ │ │  {"KEY_10CHANNELSUP", 0x1b8},
│ │ │ │ +{"KEY_1", 2},
│ │ │ │  {"KEY_2", 3},
│ │ │ │  {"KEY_3", 4},


The attached patches fix this by setting the locale to C.UTF-8 from
debian/rules.


Thanks for maintaining lirc!


live well,
  vagrant
[0004-debian-rules-Run-build-in-the-C.UTF-8-locale.patch (text/x-diff, inline)]
From 096e6062ab50f03c6c0826176d8152f1b724f0d9 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 2 Jan 2021 02:55:00 +0000
Subject: [PATCH 4/5] debian/rules: Run build in the C.UTF-8 locale.

Some file contents may vary sort order when built in different
locales.

https://reproducible-builds.org/docs/locales/
---
 debian/rules | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/rules b/debian/rules
index 446510f..beabc5e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,8 @@ include /usr/share/dpkg/architecture.mk
 export DEB_BUILD_MAINT_OPTIONS      = hardening=+all
 export DEB_LDFLAGS_MAINT_APPEND     = -Wl,--as-needed
 
+export LC_ALL=C.UTF-8
+
 %:
 	dh $@ --with python3
 
-- 
2.30.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 09:59:36 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.