Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2015 12:04:34 +0100
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        NGie Cooper <yaneurabeya@gmail.com>
Cc:        freebsd-current Current <freebsd-current@freebsd.org>, Bryan Drewery <bdrewery@freebsd.org>
Subject:   Re: make installworld failing with locales due to broken symlinks
Message-ID:  <20151117110433.GC59189@ivaldir.etoilebsd.net>
In-Reply-To: <94D9C31A-2FDF-4B5C-99AE-847FED0DE859@gmail.com>
References:  <94D9C31A-2FDF-4B5C-99AE-847FED0DE859@gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Sun, Nov 15, 2015 at 05:57:52PM -0800, NGie Cooper wrote:
> Hi,
> 	I run into this error when running `make installworld` with a world installed prior and during the projects/collation merge to head — reason is that the target for the symlink doesn’t exist. This might be fallout from recent build changes, or a side effect of the broken symlinks…
> Thanks,
> -NGie
> 
> install: //usr/share/locale/ca_IT.ISO8859-1/LC_CTYPE: No such file or directory
> *** Error code 71
> 
> Stop.
> make[5]: stopped in /usr/src/git/share/ctypedef
> *** Error code 1
> 
> Stop.
> make[4]: stopped in /usr/src/git/share
> *** Error code 1
> 
> Stop.
> make[3]: stopped in /usr/src/git
> *** Error code 1
> 
> Stop.
> make[2]: stopped in /usr/src/git
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /usr/src/git
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/src/git
> $ ls -l /usr/share/locale/ca_IT.ISO8859-1/LC_CTYPE
> lrwxr-xr-x  1 root  wheel  27 Nov  1 16:24 /usr/share/locale/ca_IT.ISO8859-1/LC_CTYPE -> ../la_LN.ISO8859-1/LC_CTYPE
> $ readlink -f /usr/share/locale/ca_IT.ISO8859-1/LC_CTYPE
> /usr/share/locale/la_LN.ISO8859-1
> $ 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

There is a bug in install(1) basically it tries to follow symlinks when
installing a file instead of replacing the symlink with the said file.

In the current case the problem is la_LN.ISO8859-1 has been removed before, so
the previous symlink is a dead symlink meaning install(1) fails to open it and
die

here is a proposal for a fix:
https://reviews.freebsd.org/D4191

Best regards,
Bapt

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlZLCcEACgkQ8kTtMUmk6EyfWACeMLk0/ftdfS8zYezz1tPRnbqa
/u4AoKUPOtYRyos33qEZEgtQ47/Yd6Ll
=h/9p
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151117110433.GC59189>