Re: How to force build to use LANG=C.UTF-8?
Hi,
On Fri, Apr 11, 2025 at 7:52 AM Soren Stoutner <soren@debian.org> wrote:
>
> The Redmine package includes a test run at build time that checks for
> a list of particular response values. The problem is that these
> values are translated. Running the build in a different language
> causes the test to fail.
>
> Failure:
> ProjectAdminQueryTest#test_project_statuses_values_should_return_all_statuses
> [test/unit/project_admin_query_test.rb:99]:
> --- expected
> +++ actual
> @@ -1 +1 @@
> -[["active", "1"], ["closed", "5"], ["archived", "9"], ["scheduled for
> deletion", "10"]]
> +[["actif", "1"], ["fermé", "5"], ["archivé", "9"], ["planifié pour
> suppression", “10”]]
>
> https://tests.reproducible-builds.org/debian/rb-pkg/trixie/arm64/
> redmine.html
>
> Setting "export LANG=C.UTF-8” does not prevent this test from running
> in a foreign language.
>
> https://salsa.debian.org/ruby-team/redmine/-/jobs/7360518#L3871
>
I remember there was a fix[0] for this problem. In other words, this
variable needs to be passed when calling test. Hope this helps.
BR,
Bo
[0]: https://salsa.debian.org/debian-mate-team/onboard/-/blob/master/debian/rules?ref_type=heads#L45
Reply to: