mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Avoid a bus error in the do-build target when nl_langinfo(CODESET) returns "EUC".
PR: ports/57490
This commit is contained in:
parent
19fd949701
commit
2613e7e168
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=90102
@ -68,6 +68,19 @@ DOCUMENTS= ChangeLog.jp NEWS PROBLEMS README README.jp
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# nl_langinfo(CODESET) drops the support of ja_JP.EUC after 5.1-RELEASE
|
||||
.if ${OSVERSION} > 501100
|
||||
LOCALE_CMD?= /usr/bin/locale
|
||||
.if exists(${LOCALE_CMD})
|
||||
CHARMAP!= ${LOCALE_CMD} charmap
|
||||
.if (${CHARMAP} == "EUC")
|
||||
MAKE_ENV= LC_ALL=C
|
||||
pre-build:
|
||||
@${ECHO_CMD} "Warning: Your current locale setting is not supported by the system."
|
||||
.endif
|
||||
.endif
|
||||
.endif
|
||||
|
||||
# formatting groff.info requires texinfo 4.2
|
||||
.if ${OSVERSION} < 470000
|
||||
WITHOUT_INFO= yes
|
||||
|
Loading…
Reference in New Issue
Block a user