Re: make installworld failing with locales due to broken symlinks

From: Craig Rodrigues <rodrigc_at_FreeBSD.org>
Date: Sun, 15 Nov 2015 19:08:19 -0800
On Sun, Nov 15, 2015 at 6:27 PM, Craig Rodrigues <rodrigc_at_freebsd.org>
wrote:

> On Sun, Nov 15, 2015 at 5:57 PM, NGie Cooper <yaneurabeya_at_gmail.com>
> wrote:
>
>> $ ls `readlink -f /usr/share/locale/ca_IT.ISO8859-1/LC_CTYPE`
>> ls: /usr/share/locale/la_LN.ISO8859-1: No such file or directory
>>
>
>
> I built the latest world, and then did the following:
>
> rm -fr /tmp/testdir
> mkdir /tmp/testdir
>
> make installworld DESTDIR=/tmp/testdir
>
> cd /tmp/testdir/usr/share/locale
> for f in $(find . -type l) ; do [ ! -e $f ] && echo "$f does not exist";
> done
>
> ./zh_CN.GB2312/LC_NUMERIC does not exist
> ./zh_CN.GB2312/LC_MONETARY does not exist
> ./zh_CN.GB2312/LC_COLLATE does not exist
> ./zh_CN.GB2312/LC_CTYPE does not exist
> ./zh_CN.GB2312/LC_MESSAGES does not exist
> ./zh_CN.GB2312/LC_TIME does not exist
> ./zh_CN.eucCN/LC_MESSAGES does not exist
> ./zh_CN.eucCN/LC_NUMERIC does not exist
> ./zh_CN.eucCN/LC_TIME does not exist
> ./zh_CN.eucCN/LC_CTYPE does not exist
> ./zh_CN.eucCN/LC_MONETARY does not exist
> ./zh_CN.eucCN/LC_COLLATE does not exist
> ./zh_HK.UTF-8/LC_NUMERIC does not exist
> ./zh_HK.UTF-8/LC_MONETARY does not exist
> ./zh_HK.UTF-8/LC_COLLATE does not exist
> ./zh_HK.UTF-8/LC_MESSAGES does not exist
> ./zh_HK.UTF-8/LC_TIME does not exist
> ./zh_HK.UTF-8/LC_CTYPE does not exist
> ./zh_CN.GBK/LC_CTYPE does not exist
> ./zh_CN.GBK/LC_NUMERIC does not exist
> ./zh_CN.GBK/LC_MESSAGES does not exist
> ./zh_CN.GBK/LC_COLLATE does not exist
> ./zh_CN.GBK/LC_MONETARY does not exist
> ./zh_CN.GBK/LC_TIME does not exist
> ./zh_CN.GB18030/LC_COLLATE does not exist
> ./zh_CN.GB18030/LC_MESSAGES does not exist
> ./zh_CN.GB18030/LC_CTYPE does not exist
> ./zh_CN.GB18030/LC_TIME does not exist
> ./zh_CN.GB18030/LC_NUMERIC does not exist
> ./zh_CN.GB18030/LC_MONETARY does not exist
> ./zh_TW.UTF-8/LC_MESSAGES does not exist
> ./zh_TW.UTF-8/LC_NUMERIC does not exist
> ./zh_TW.UTF-8/LC_MONETARY does not exist
> ./zh_TW.UTF-8/LC_TIME does not exist
> ./zh_TW.UTF-8/LC_CTYPE does not exist
> ./zh_TW.UTF-8/LC_COLLATE does not exist
> ./zh_HK.Big5HKSCS/LC_MONETARY does not exist
> ./zh_HK.Big5HKSCS/LC_NUMERIC does not exist
> ./zh_HK.Big5HKSCS/LC_CTYPE does not exist
> ./zh_HK.Big5HKSCS/LC_TIME does not exist
> ./zh_HK.Big5HKSCS/LC_COLLATE does not exist
> ./zh_HK.Big5HKSCS/LC_MESSAGES does not exist
> ./zh_TW.Big5/LC_MONETARY does not exist
> ./zh_TW.Big5/LC_CTYPE does not exist
> ./zh_TW.Big5/LC_TIME does not exist
> ./zh_TW.Big5/LC_NUMERIC does not exist
> ./zh_TW.Big5/LC_MESSAGES does not exist
> ./zh_TW.Big5/LC_COLLATE does not exist
>
> --
> Craig
>
>


This fixed it for me:

Index: Makefile
===================================================================
--- Makefile    (revision 290902)
+++ Makefile    (working copy)
_at__at_ -15,7 +15,7 _at__at_

 .for from to in ${ALIASES}
 .for f in ${LC_FILES}
-SYMLINKS+=     ${from}/${f} ${LOCALEDIR}/${to}/${f}
+SYMLINKS+=     ../${from}/${f} ${LOCALEDIR}/${to}/${f}
 .endfor
 .endfor

--
Craig
Received on Mon Nov 16 2015 - 02:08:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:01 UTC