Remove hardcoded locale environment variables#79
Conversation
|
+1 for breaking sha512 of these package, some files will fail hash with LC_ALL=C cannot be overridden by or any other way that successfully hash these packages |
|
@kewlfft How about add a variable to explicitly disable setting this way will not break old behavior. But for some package that cannot install with either The only workaround now is to use I suppose it is not what should happen in ansible. |
|
I think locales should be inherited from the system. And playbooks allow setting more env vars that will be passed via |
|
I tend to agree, however I have not tested whether removing 'LC_ALL=C', 'LANGUAGE=C' will break many other packages and is therefore a breaking change for most users. Any idea? |
Line 109 hardcodes the environment variable locales to
C:but this conflicts with certain PKGBUILDs.
For example when extracting source files of the
sabnzbdpackagebsdtarwould complain:and fail the playbook.
The host machine locales were right, with UTF-8.
So removing the locale variables:
def_lang = ['env']and using either:or nothing made it work.
Just as a note, setting:
makes it fail again.
This can be tested with
bsdtardirectly:Download the tar.gz source file from https://aur.archlinux.org/packages/sabnzbd
and it should error out.
Any special reason for keeping it? If anyone needs to specify them,
like any other env. var, the
environmentkey works fine, given the useof
env. And the good thing is that it can be used at the play, block, or task level.