Gentoo Archives: gentoo-dev

From: "Remco Rijnders" <remco@×××××××××××.com>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Specifying locale in ebuild
Date: Sun, 21 Mar 2021 17:21:48
Message-Id: YFeAhCwgSkakyePY@settler
1 I hope this is the appropiate place to ask this question as I do not see many
2 questions of this kind on this list...
3
4 Recently I received a bug report for a package of which I am the listed proxy
5 maintainer: https://bugs.gentoo.org/772908
6
7 Having looked into this, it seems the packages Makefile allows for tests to be
8 run which feeds a set of input to the 'remind' executable and compares the
9 resulting output against an included textfile. For the test to run successfully,
10 the Makefile assumes the locale en_US.utf-8 to be available. On the build
11 environment by agostino's tinderbox, this locale is not available and thus the
12 test fails and hence the bug report. While I know the impact of this bug is very
13 minor, I'd still like to fix it, but am unsure on how to best do this.
14
15 Can I somehow enforce the locale to be used in the ebuild? I've tried running
16 the test with the default C locale and the test also fails with this setting. Or
17 should I ask upstream to provide test files for a C locale setting? Or should I
18 skip these tests completely, or mark the bug as WONTFIX? What would you advice
19 as the best approach for dealing with this?
20
21 Many thanks for any and all suggestions!
22
23 Regards,
24
25 Remco

Replies

Subject Author
Re: [gentoo-dev] Specifying locale in ebuild "Michał Górny" <mgorny@g.o>