Makefile: set LC_{COLLATE, NUMERIC}=C, unexport LC_ALL
PATCH v2 1/1 Makefile: set LC_{COLLATE, NUMERIC}=C, unexport LC_ALL
to have reproducible builds (no locale dependencies).
Get inspiration from Linux kernel, commits:c051346b7db2 ("Makefile: set LC_CTYPE, LC_COLLATE, LC_NUMERIC to C") 07105202bdeb ("Makefile: do not override LC_CTYPE")
NOTE: we don't care about messages not being localized.
Reviewed-by Richard Palethorpe <[email protected]>
Signed-off-by Petr Vorel <[email protected]>
--- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
Makefile +7 -1
@@ -1,8 +1,14 @@ # SPDX-License-Identifier: GPL-2.0-or-later -# Copyright (c) Linux Test Project, 2009-2021 +# Copyright (c) Linux Test Project, 2009-2022 # Copyright (c) Cisco Systems Inc., 2009-2010 # Ngie Cooper, July 2009 +# Avoid funny character set dependencies +unexport LC_ALL +LC_COLLATE=C +LC_NUMERIC=C +export LC_COLLATE LC_NUMERIC + top_srcdir ?= $(CURDIR) include $(top_srcdir)/include/mk/env_pre.mk
Signature · 5 lines
2.38.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Reviewed-by Akihiko Odaki <[email protected]>
Quoted 33 lines · Petr Vorel
to have reproducible builds (no locale dependencies).
Get inspiration from Linux kernel, commits:c051346b7db2("Makefile: setLC_CTYPE,LC_COLLATE,LC_NUMERICto C")07105202bdeb("Makefile: do not overrideLC_CTYPE")NOTE: we don't care about messages not being localized.
Reviewed-by Richard Palethorpe <[email protected]>Signed-off-by Petr Vorel <[email protected]>--- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)Makefile +7
-1@@ -1,8 +1,14 @@ # SPDX-License-Identifier: GPL-2.0-or-later -# Copyright (c) Linux Test Project, 2009-2021 +# Copyright (c) Linux Test Project, 2009-2022 # Copyright (c) Cisco Systems Inc., 2009-2010 # Ngie Cooper, July 2009 +# Avoid funny character set dependencies +unexport LC_ALL +LC_COLLATE=C +LC_NUMERIC=C +export LC_COLLATE LC_NUMERIC + top_srcdir ?= $(CURDIR) include $(top_srcdir)/include/mk/env_pre.mk
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Akihiko, Richard,
thank you for a review, merged.
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp