* [gentoo-dev] Specifying locale in ebuild
@ 2021-03-21 17:21 Remco Rijnders
2021-03-21 19:43 ` Michał Górny
0 siblings, 1 reply; 3+ messages in thread
From: Remco Rijnders @ 2021-03-21 17:21 UTC (permalink / raw
To: gentoo-dev
I hope this is the appropiate place to ask this question as I do not see many
questions of this kind on this list...
Recently I received a bug report for a package of which I am the listed proxy
maintainer: https://bugs.gentoo.org/772908
Having looked into this, it seems the packages Makefile allows for tests to be
run which feeds a set of input to the 'remind' executable and compares the
resulting output against an included textfile. For the test to run successfully,
the Makefile assumes the locale en_US.utf-8 to be available. On the build
environment by agostino's tinderbox, this locale is not available and thus the
test fails and hence the bug report. While I know the impact of this bug is very
minor, I'd still like to fix it, but am unsure on how to best do this.
Can I somehow enforce the locale to be used in the ebuild? I've tried running
the test with the default C locale and the test also fails with this setting. Or
should I ask upstream to provide test files for a C locale setting? Or should I
skip these tests completely, or mark the bug as WONTFIX? What would you advice
as the best approach for dealing with this?
Many thanks for any and all suggestions!
Regards,
Remco
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] Specifying locale in ebuild
2021-03-21 17:21 [gentoo-dev] Specifying locale in ebuild Remco Rijnders
@ 2021-03-21 19:43 ` Michał Górny
2021-03-21 19:51 ` Remco Rijnders
0 siblings, 1 reply; 3+ messages in thread
From: Michał Górny @ 2021-03-21 19:43 UTC (permalink / raw
To: gentoo-dev
On Sun, 2021-03-21 at 13:21 -0400, Remco Rijnders wrote:
> I hope this is the appropiate place to ask this question as I do not see many
> questions of this kind on this list...
>
> Recently I received a bug report for a package of which I am the listed proxy
> maintainer: https://bugs.gentoo.org/772908
>
> Having looked into this, it seems the packages Makefile allows for tests to be
> run which feeds a set of input to the 'remind' executable and compares the
> resulting output against an included textfile. For the test to run successfully,
> the Makefile assumes the locale en_US.utf-8 to be available. On the build
> environment by agostino's tinderbox, this locale is not available and thus the
> test fails and hence the bug report. While I know the impact of this bug is very
> minor, I'd still like to fix it, but am unsure on how to best do this.
>
> Can I somehow enforce the locale to be used in the ebuild? I've tried running
> the test with the default C locale and the test also fails with this setting. Or
> should I ask upstream to provide test files for a C locale setting? Or should I
> skip these tests completely, or mark the bug as WONTFIX? What would you advice
> as the best approach for dealing with this?
Try forcing C.UTF-8
--
Best regards,
Michał Górny
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] Specifying locale in ebuild
2021-03-21 19:43 ` Michał Górny
@ 2021-03-21 19:51 ` Remco Rijnders
0 siblings, 0 replies; 3+ messages in thread
From: Remco Rijnders @ 2021-03-21 19:51 UTC (permalink / raw
To: gentoo-dev
On Sun, Mar 21, 2021 at 08:43:47PM +0100, Michał wrote in
<3d0e94fee25354fec5284e2edb5c79473c526cd2.camel@gentoo.org>:
>> Can I somehow enforce the locale to be used in the ebuild? I've tried running
>> the test with the default C locale and the test also fails with this setting.
>
>Try forcing C.UTF-8
Very nice, that seems to do the trick! Muito obrigado!
Remmy
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-21 19:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-21 17:21 [gentoo-dev] Specifying locale in ebuild Remco Rijnders
2021-03-21 19:43 ` Michał Górny
2021-03-21 19:51 ` Remco Rijnders
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox