Received: by mail.netbsd.org (Postfix, from userid 605) id 472BB84EB7; Wed, 4 Jan 2023 01:20:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 7724684EB3 for ; Wed, 4 Jan 2023 01:19:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id F2aaj8IO32vf for ; Wed, 4 Jan 2023 01:19:59 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id C109C84CFE for ; Wed, 4 Jan 2023 01:19:58 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id B78BCFA90; Wed, 4 Jan 2023 01:19:58 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_167279519868160" MIME-Version: 1.0 Date: Wed, 4 Jan 2023 01:19:58 +0000 From: "Greg Troxel" Subject: CVS commit: pkgsrc/lang/elixir To: pkgsrc-changes@NetBSD.org Reply-To: gdt@netbsd.org X-Mailer: log_accum Message-Id: <20230104011958.B78BCFA90@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_167279519868160 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: gdt Date: Wed Jan 4 01:19:58 UTC 2023 Modified Files: pkgsrc/lang/elixir: Makefile Log Message: 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 To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 pkgsrc/lang/elixir/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_167279519868160 Content-Disposition: inline Content-Length: 1206 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/elixir/Makefile diff -u pkgsrc/lang/elixir/Makefile:1.30 pkgsrc/lang/elixir/Makefile:1.31 --- pkgsrc/lang/elixir/Makefile:1.30 Wed Jan 4 00:22:01 2023 +++ pkgsrc/lang/elixir/Makefile Wed Jan 4 01:19:58 2023 @@ -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 @@ USE_TOOLS+= gmake:run 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 @@ CHECK_INTERPRETER_SKIP+= lib/elixir/bin/ # 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" --_----------=_167279519868160--