Bugzilla – Bug 5473
en_US/es_ES/fr_FR/de_DE.UTF-8 locales are missing after "pkg image-update"
Last modified: 2008-12-10 04:12:10 UTC
You need to log in before you can comment on or make changes to this bug.
When performing "pkg image-update" from earlier version (snv_100 or earlier) to 2008.11 (snv_101a), the following locales will not be installed. en_US.UTF-8 es_ES.UTF-8 fr_FR.UTF-8 de_DE.UTF-8 This is caused by the following package split at snv_101 (bug 3676) : SUNWlang-en -> SUNWlang-en & SUNWlang-enUS SUNWlang-fr -> SUNWlang-fr & SUNWlang-frFR SUNWlang-es -> SUNWlang-es & SUNWlang-esES SUNWlang-de -> SUNWlang-de & SUNWlang-deDE Workaround: install the missing packages. pfexec pkg install SUNWlang-enUS SUNWlang-frFR SUNWlang-esES SUNWlang-deDE Possible fix(workaround) is to add the following dependency into the IPS import script of SUNWlang-en/fr/es/de. package SUNWlang-en classification "System/Localizations" import SUNWlang-en depend SUNWlang-enUS <---- Insert this line end package
I tried to upgrade from 99a and b86 (aka 2008.05) and this does not happen - both SUNWlang-en and SUNWlang-enUS installed. I used the guide http://opensolaris.org/os/project/indiana/resources/relnotes/200805/image-update/ (+ workaround from 2789 for upgrade from b86). v.premkumar@sun.com somehow install opensolaris wihout the file /usr/lib/locale/en_US.UTF-8/en_US.UTF-8.so.3 (http://defect.opensolaris.org/bz/show_bug.cgi?id=5092#c22) but the rest of SUNWlang-enUS is installed. I suppose it is installer issue.
Reproductivity of the problem depends on whether system had "slim_install" cluster before the image-update or not. In recent builds (e.g. 2008.11 RC2) the cluster is not left after installation (see 3398), but if a user did fresh install with older version of slim CD before 3398 is integrated (or global CD: see 5492), the cluster is left unless user has manually uninstalled it. If system have slim_install, SUNWlang-enUS and the three other packages are added during image-update because slim_install itself is updated and the new version of slim_install has the packages as dependencies. But if slim_install has been uninstalled before image-update, there's no package or cluster depends on SUNWlang-enUS et al. (as "require"), so they are not installed during image-update. This causes the four locales lost.
I see, thanks for clarify! Add the dependecies SUNWlang-en: depend SUNWlang-enUS SUNWlang-de: depend SUNWlang-deDE SUNWlang-es: depend SUNWlang-esES SUNWlang-fr: depend SUNWlang-frFR
IPS pkg doesn't inherit SVR4 pkg depend file. Need to update IPS import script manually.
Fix generated, webrev created and copied to cr.opensolaris.org and request for review posted. See: http://mail.opensolaris.org/pipermail/pkg-discuss/2008-December/009071.html Changing status to FIXINPROGRESS.
Questions asked by Danek at code review time. Fuyuki, could you please respond? Should the same happen for SUNWlang-pt / SUNWlang-ptBR? I'm also a little curious why a couple of en_US encodings are in SUNWlang-en-extra, rather than in SUNWlang-enUS. Just because enUS needs to be as small as possible to fit on the CD? Thanks.
Fixed in changeset 2a81bb4534497b6052ae1b83b24fce058b615fce
> Should the same happen for SUNWlang-pt / SUNWlang-ptBR? No (at least for now). These languages are slightly different each other. As for the question to SUNWlang-en-extra, yes, CD space is one of the reasons. An another reason is to promote UTF-8 locale migration from non-UTF-8(legacy) locales.
*** Bug 5718 has been marked as a duplicate of this bug. ***
LANG=C was missing in the workaround... $ LANG=C pfexec pkg install SUNWlang-enUS SUNWlang-frFR SUNWlang-esES SUNWlang-deDE