[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#979593: rox: FTBFS under some locales



Source: rox
Severity: important
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: username ftbfs
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org kilobyte@angband.pl

The 2.11-3 version of calls iconv from debian/rules, which fails to
build under certain locales, as seen in the reproducible builds test
infrastructure:

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/rox.html

Fortunately, the locale on buildd.debian.org does successfully build, so
this is not a serious bug.

The attached patch fixes this by calling "iconv" under the C.UTF-8
locale in debian/rules.


live well,
  vagrant
From 8541e68d01354dbca56dc7178e1830c643ccd79a Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 8 Jan 2021 19:16:50 +0000
Subject: [PATCH] debian/rules: Run iconv using the C.UTF-8 locale.

Under some locales, iconv fails to run correctly, as shown in the
reproducible builds test infrastructure:

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/rox.html
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index a18cc9c..5c8f2fd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -66,7 +66,7 @@ install: build
 	/bin/sh debian/scripts/locale.sh
 	/bin/sh debian/scripts/manual.sh
 
-	iconv -f iso-8859-1 <README-es >${DESTDIR}/usr/share/doc/${PACKAGE}/README-es
+	LC_ALL=C.UTF-8 iconv -f iso-8859-1 <README-es >${DESTDIR}/usr/share/doc/${PACKAGE}/README-es
 
 # Build architecture-independent files here.
 binary-indep: build install
-- 
2.20.1

Attachment: signature.asc
Description: PGP signature


Reply to: