tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
LANG issues in check/check-shlibs-elf.awk
I'm encountering LANG issues when using native (localised) gcc and binutils
with check-shlibs-elf as noticed on Arch Linux:
> => Checking for missing run-time search paths in cwrappers-20160908
> ERROR: libexec/cwrappers/as-wrapper: missing library: 0x0000000000000001 (NEEDED) Bibliothèque partagée: [libc.so.6
> ERROR: libexec/cwrappers/c++-wrapper: missing library: 0x0000000000000001 (NEEDED) Bibliothèque partagée: [libc.so.6
> ERROR: libexec/cwrappers/cc-wrapper: missing library: 0x0000000000000001 (NEEDED) Bibliothèque partagée: [libc.so.6
> ERROR: libexec/cwrappers/cpp-wrapper: missing library: 0x0000000000000001 (NEEDED) Bibliothèque partagée: [libc.so.6
> ERROR: libexec/cwrappers/f77-wrapper: missing library: 0x0000000000000001 (NEEDED) Bibliothèque partagée: [libc.so.6
> ERROR: libexec/cwrappers/imake-wrapper: missing library: 0x0000000000000001 (NEEDED) Bibliothèque partagée: [libc.so.6
> ERROR: libexec/cwrappers/ld-wrapper: missing library: 0x0000000000000001 (NEEDED) Bibliothèque partagée: [libc.so.6
> ERROR: libexec/cwrappers/libtool-wrapper: missing library: 0x0000000000000001 (NEEDED) Bibliothèque partagée: [libc.so.6
> ERROR: libexec/cwrappers/shlibtool-wrapper: missing library: 0x0000000000000001 (NEEDED) Bibliothèque partagée: [libc.so.6
> *** Error code 1
bsd.pkg.mk sets ALL_ENV+= LANG=C,
but it appears that the shlib checks run in its own CHECK_SHLIBS_NATIVE_ENV
The following seems to work allright:
> diff --git a/mk/check/check-shlibs.mk b/mk/check/check-shlibs.mk
> index 6f25656..fd06a66 100644
> --- a/mk/check/check-shlibs.mk
> +++ b/mk/check/check-shlibs.mk
> @@ -51,7 +51,7 @@ privileged-install-hook: _check-shlibs
> .endif
>
> .if ${_USE_CHECK_SHLIBS_NATIVE} == "yes"
> -CHECK_SHLIBS_NATIVE_ENV=
> +CHECK_SHLIBS_NATIVE_ENV= LANG=C LC_COLLATE=C LC_ALL=C
> . if ${OBJECT_FMT} == "ELF"
> . if !empty(TOOLS_PLATFORM.elfdump:U)
> CHECK_SHLIBS_NATIVE_ENV+= ELFDUMP=${TOOLS_PLATFORM.elfdump:Q}
--
Richard PALO
Home |
Main Index |
Thread Index |
Old Index