Bug 5473 - en_US/es_ES/fr_FR/de_DE.UTF-8 locales are missing after "pkg image-update"
: en_US/es_ES/fr_FR/de_DE.UTF-8 locales are missing after "pkg image-update"
Status: CLOSED FIXINSOURCE
Product: opensolaris
packaging
: 200811
: Other Solaris
: P2 major (vote)
: in-200811
Assigned To: Rich Burridge
: osol/packaging watcher
:
: rn4
:
:
: 5092
  Show dependency treegraph
 
Reported: 2008-11-26 23:12 UTC by Fuyuki Hasegawa
Modified: 2008-12-10 04:12 UTC (History)
6 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Fuyuki Hasegawa 2008-11-26 23:12:21 UTC
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
Comment 1 Jan Lana 2008-11-27 07:13:05 UTC
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.
Comment 2 Takeshi Asano 2008-11-27 23:27:45 UTC
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.
Comment 3 Jan Lana 2008-11-28 02:13:54 UTC
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
Comment 4 Fuyuki Hasegawa 2008-11-29 01:05:48 UTC
IPS pkg doesn't inherit SVR4 pkg depend file. Need to update IPS import script
manually.
Comment 5 Rich Burridge 2008-12-01 11:08:14 UTC
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.
Comment 6 Rich Burridge 2008-12-01 11:24:54 UTC
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.
Comment 7 Rich Burridge 2008-12-01 12:19:03 UTC
Fixed in changeset 2a81bb4534497b6052ae1b83b24fce058b615fce
Comment 8 Fuyuki Hasegawa 2008-12-02 20:25:50 UTC
> 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.
Comment 9 Danek Duvall 2008-12-09 09:29:36 UTC
*** Bug 5718 has been marked as a duplicate of this bug. ***
Comment 10 Fuyuki Hasegawa 2008-12-10 04:12:10 UTC
LANG=C was missing in the workaround...

$ LANG=C pfexec pkg install SUNWlang-enUS SUNWlang-frFR SUNWlang-esES
SUNWlang-deDE