diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2021-08-19 17:27:04 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2021-08-19 17:38:17 +0000 |
commit | 298ee47e1988a120249b24470c2c7c45f8c4359f (patch) | |
tree | bbe98f146387b9f74a996365243fd2ed1b730c8b /share/ctypedef | |
parent | c81ea895b563c4d1e39468a8525284b7474fe850 (diff) | |
download | src-298ee47e1988a120249b24470c2c7c45f8c4359f.tar.gz src-298ee47e1988a120249b24470c2c7c45f8c4359f.zip |
localedef: unbreak WITHOUT_LOCALES
After 0fa5403d493b ("pkgbase: move locales into their own package") we
need usr.bin/localedef as a bootstrap tool independent on where
WITHOUT_LOCALE was specified as we ALWAYS process C.UTF-8.
At the same time LOCALES= in the local Makefile is empty but
C.UTF-8 with WITHOUT_LOCALES. C.UTF-8 is excluded from FILES, and thus
after the replacement FILES= is set to only .LC_CTYPE which results in
a build failure not knowing how to build that. Tweak the substitution to
replace only non-empty words so that FILES remains harmlessly empty.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D31589
Diffstat (limited to 'share/ctypedef')
-rw-r--r-- | share/ctypedef/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/ctypedef/Makefile b/share/ctypedef/Makefile index 798576f7ad08..d8b00bfb8acc 100644 --- a/share/ctypedef/Makefile +++ b/share/ctypedef/Makefile @@ -218,7 +218,7 @@ SAME+= ko_KR.eucKR ko_KR.CP949 # legacy (same charset) # C.UTF-8 is the default locale, so it should always been installed. ALWAYS= C.UTF-8.LC_CTYPE -FILES= ${LOCALES:NC.UTF-8:S/$/.LC_CTYPE/} +FILES= ${LOCALES:NC.UTF-8:C/.+$/&.LC_CTYPE/} CLEANFILES= ${FILES} .for f t in ${SAME} |