Source: fai
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: locale
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The encoding of fai-guide.ps changes depending on weather a UTF-8 locale
or other locale is used.

The attached patch sets LC_ALL=C.UTF-8 to ensure generated files use
UTF-8 encoding.

With this and the previous patches applied, I think fai-doc will build
reproducibly!

Thanks for maintaining fai!

live well,
  vagrant
From 2a3da19f2c266699974a585d136b82d1eac372b1 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Fri, 25 Sep 2020 00:45:37 +0000
Subject: [PATCH 3/3] debian/rules: Pass LC_ALL=C.UTF-8 to dh_auto_build to
 ensure UTF-8 encoding on generated files.

---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index 08dc9e7f..c2044ca0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,10 @@ export FORCE_SOURCE_DATE=1
 %:
 	dh $@
 
+override_dh_auto_build:
+	# Force UTF-8 locale to ensure UTF-8 file encoding for generated files
+	LC_ALL=C.UTF-8 dh_auto_build
+
 override_dh_installdocs:
 	dh_installdocs -Nfai-server -Nfai-quickstart
 	sed -i 's/FAIVERSIONSTRING/$(VERSIONSTRING)/' debian/fai-client/usr/share/doc/fai-client/README
-- 
2.20.1

Attachment: signature.asc
Description: PGP signature

Reply via email to