From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Cc: Richard Palethorpe <rpalethorpe@suse.com>
Subject: [LTP] [PATCH v2 1/1] Makefile: set LC_{COLLATE, NUMERIC}=C, unexport LC_ALL
Date: Mon, 7 Nov 2022 15:54:53 +0100 [thread overview]
Message-ID: <20221107145453.25262-1-pvorel@suse.cz> (raw)
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 <rpalethorpe@suse.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index eb12b9d69..cb80622d6 100644
--- a/Makefile
+++ b/Makefile
@@ -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
--
2.38.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2022-11-07 14:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-07 14:54 Petr Vorel [this message]
2022-11-08 3:38 ` [LTP] [PATCH v2 1/1] Makefile: set LC_{COLLATE, NUMERIC}=C, unexport LC_ALL Akihiko Odaki
2022-11-10 18:14 ` Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221107145453.25262-1-pvorel@suse.cz \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
--cc=rpalethorpe@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.