Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2024 08:10:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        testing@FreeBSD.org
Subject:   =?UTF-8?B?W0J1ZyAyNzYyMzVdIGBtYWtlIGluc3RhbGx3b3JsZOKAmSBzaG91?= =?UTF-8?B?bGQgY2hlY2sgZm9yIHN0YWxlIHN5bWxpbmtz?=
Message-ID:  <bug-276235-32464@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276235

            Bug ID: 276235
           Summary: `make installworld=E2=80=99 should check for stale syml=
inks
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: tests
          Assignee: testing@FreeBSD.org
          Reporter: wosch@FreeBSD.org

In 14.0-RELEASE and the branch releng/14.0 we have the problem that some of=
 the
locale symlinks are wrong. See Bug 260841

I think we can detect this kind of stale symlinks during `make installworld=
=E2=80=99
and bail out:

As an example:

(set -o pipefail; sudo find /bin /boot /etc /lib /libexec /sbin /usr/bin
/usr/include /usr/lib /usr/lib32 /usr/libdata/ /usr/libexec/ /usr/sbin
/usr/share/ -type l -print0 | perl -0e 'while(<>) { if (! -e $_) { print;
$exit=3D1}}; exit $exit' | xargs -0 ls -ld); echo $?

lrwxr-xr-x  1 root wheel 31 Nov 10 07:59
/usr/share/locale/nn_NO.ISO8859-1/LC_MESSAGES ->
../nn_NO.ISO8859-15/LC_MESSAGES
lrwxr-xr-x  1 root wheel 31 Nov 10 07:59
/usr/share/locale/nn_NO.ISO8859-15/LC_MESSAGES ->
../nn_NO.ISO8859-15/LC_MESSAGES
lrwxr-xr-x  1 root wheel 30 Nov 10 07:59
/usr/share/locale/sl_SI.ISO8859-2/LC_MESSAGES -> ../sr_RS.ISO8859-2/LC_MESS=
AGES
1


Maybe we should write a shell script and put it in src/tools/stale-symlinks=
.sh
and call it from `make installworld=E2=80=99 as the last step.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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