Bug#770845: [libinline-java-perl] FTBFS: Assumes a decimal point during the tests

Peter Pentchev roam at ringlet.net
Mon Nov 24 16:06:57 UTC 2014


Source: libinline-java-perl
Severity: serious
Tags: patch

The test suite of the libinline-java-perl package seems to assume
that the decimal point separator is a dot.  This fails if the package
is built with e.g. LANG=bg_BG.UTF-8 and without an appropriate
LC_NUMERIC setting.

Attached is a patch that runs the test suite with LC_NUMERIC=C.
If there are no objections, I intend to commit it to the pkg-perl
Git repository later today.

G'luck,
Peter

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
From 0ea2fa36fd43c5df0e3815dfa42dfa72b4934f30 Mon Sep 17 00:00:00 2001
From: Peter Pentchev <roam at ringlet.net>
Date: Mon, 24 Nov 2014 17:29:30 +0200
Subject: [PATCH 2/3] Use the C locale's decimal point for the tests.

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

diff --git a/debian/rules b/debian/rules
index d21dac9..22b091b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -43,6 +43,9 @@ export JAVA_HOME=/usr/lib/jvm/default-java
 # Have testsuite use JNI
 export PERL_INLINE_JAVA_JNI=1
 
+# Have testsuite use the C locale's decimal point
+DEB_MAKE_CHECK_TARGET += LC_NUMERIC=C
+
 binary-post-install/$(pkg)::
 	chrpath -d $(cdbs_curdestdir)$(perlpath)/auto/Inline/Java/JNI/JNI.so
 
-- 
2.1.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20141124/df5d6c49/attachment.sig>


More information about the pkg-perl-maintainers mailing list