pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/elixir lang/elixir: Improve locale handling
details: https://anonhg.NetBSD.org/pkgsrc/rev/a0ee6ef6b0cf
branches: trunk
changeset: 391140:a0ee6ef6b0cf
user: gdt <gdt%pkgsrc.org@localhost>
date: Wed Jan 04 01:19:58 2023 +0000
description:
lang/elixir: Improve locale handling
- actually set the build env for the diagnostics
- set LC_ALL after bsd.pkg.mk
- document why we are setting it
diffstat:
lang/elixir/Makefile | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r 1a2d14b31cea -r a0ee6ef6b0cf lang/elixir/Makefile
--- a/lang/elixir/Makefile Wed Jan 04 00:22:01 2023 +0000
+++ b/lang/elixir/Makefile Wed Jan 04 01:19:58 2023 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2023/01/04 00:22:01 gdt Exp $
+# $NetBSD: Makefile,v 1.31 2023/01/04 01:19:58 gdt Exp $
DISTNAME= elixir-1.14.2
CATEGORIES= lang
@@ -18,8 +18,6 @@
BUILD_TARGET= compile
TEST_TARGET= test
-ALL_ENV+= LC_ALL="en_US.UTF-8"
-
MAKE_FLAGS+= MAN_PREFIX=${PREFIX}/${PKGMANDIR}
REPLACE_INTERPRETER+= elixir
@@ -33,8 +31,14 @@
# Debug locale problems.
pre-build:
@echo ENV:
- @env | egrep "^(LANG|LC_)" || true
+ @${PKGSRC_SETENV} ${MAKE_ENV} env | egrep "^(LANG|LC_)" || true
@echo LOCALE:
- @locale
+ @${PKGSRC_SETENV} ${MAKE_ENV} locale
.include "../../mk/bsd.pkg.mk"
+
+# erlang chooses latin1 or utf8 encoding for file names depending on
+# the character encoding, and elixir requires utf8. Force erl to
+# choose utf8. We'd like to set LC_CTYPE, but we need to override the
+# LC_ALL set by bsd.pkg.mk.
+ALL_ENV+= LC_ALL="en_US.UTF-8"
Home |
Main Index |
Thread Index |
Old Index