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>

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

--tqI+Z3u+9OQ7kwn0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 inst=
alled prior and during the projects/collation merge to head =E2=80=94 reaso=
n is that the target for the symlink doesn=E2=80=99t exist. This might be f=
allout from recent build changes, or a side effect of the broken symlinks=
=E2=80=A6
> Thanks,
> -NGie
>=20
> install: //usr/share/locale/ca_IT.ISO8859-1/LC_CTYPE: No such file or dir=
ectory
> *** Error code 71
>=20
> Stop.
> make[5]: stopped in /usr/src/git/share/ctypedef
> *** Error code 1
>=20
> Stop.
> make[4]: stopped in /usr/src/git/share
> *** Error code 1
>=20
> Stop.
> make[3]: stopped in /usr/src/git
> *** Error code 1
>=20
> Stop.
> make[2]: stopped in /usr/src/git
> *** Error code 1
>=20
> Stop.
> make[1]: stopped in /usr/src/git
> *** Error code 1
>=20
> 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.ISO885=
9-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

--tqI+Z3u+9OQ7kwn0
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

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

--tqI+Z3u+9OQ7kwn0--



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