Bug 223624

Summary: language packages are installed when yast -i is called in a different language
Product: [openSUSE] openSUSE 10.2 Reporter: Marcus Meissner <meissner>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P5 - None CC: mvidner
Version: RC 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: YaST2.tar.bz2
YaST2.tar.bz2

Description Marcus Meissner 2006-11-24 14:36:16 UTC
Case:

Olaf installed RC1 in english.

I logged in remotely as root with LANG=de_DE.utf8.

Then I did:

yast -i zypper

Instead of just installing "zypper", it installed "zypper" and
around 85MB of "*-de" packages, includiong OpenOffice_org-de 
susehelp_de, ispell-german and smilar ones.


It should likely not do this.,
Comment 1 Stefan Schubert 2006-11-24 15:02:53 UTC
Logfiles ? Prefered with "export ZYPP_FULLLOG=1";-)
Comment 2 Marcus Meissner 2006-11-24 15:24:36 UTC
Created attachment 106868 [details]
YaST2.tar.bz2

yast logs.... but without fulllog.
Comment 3 Marcus Meissner 2006-11-24 15:25:23 UTC
it was no longer reproducable after
rpm -e OpenOffice_org
yast -i gphoto
did not install OpenOffiec_org-de again.

so it will be reinstall to get more debug :(
Comment 4 Martin Vidner 2006-11-24 15:32:42 UTC
It seems it is not the solver, but yast YCP code wanting to install [language]de_DE:

2006-11-24 15:43:28 <1> mjolnir(27738) [wfm] clients/sw_single.ycp:377 Pkg Builtin called: PkgSolve
2006-11-24 15:43:28 <1> mjolnir(27738) [solver] Resolver.cc(resolvePool):1039 Resolver::resolvePool()
2006-11-24 15:43:28 <0> mjolnir(27738) [solver] Resolver.cc(show_pool):1005 2884: U_Tu_[S0:0][language]de_DE-.noarch
2006-11-24 15:43:28 <0> mjolnir(27738) [solver] Resolver.cc(show_pool):1005 20541: U_Th_[S3:1][package]zen-updater-7.1.100-33.x86_64
Comment 5 Marcus Meissner 2006-11-24 15:41:57 UTC
Created attachment 106875 [details]
YaST2.tar.bz2

zypp_fulllog
of instaling gtkam with LANG=cs_CZ.utf8
Comment 6 Stefan Schubert 2006-11-24 16:06:45 UTC
Yes indeed. That is the initial queue:
Resolver.cc(resolvePool):1040 Pool before resolve
Resolver.cc(show_pool):998 ---------------------------------------
Resolver.cc(show_pool):1005 1063: U_Tu_[S0:0][language]cs_CZ-.noarch
Resolver.cc(show_pool):1005 1189: U_Th_[S1:4][package]gtkam-0.1.13.head-20.ppc
Resolver.cc(show_pool):1008 ---------------------------------------

Martin can you help here. Who is responsible for setting the language ?
Comment 7 Martin Vidner 2006-11-30 16:41:42 UTC
It is because of a Pkg::SetLocale call. It not only sets the text domain but also selects the language resolvable for installation. I think that the builtin needs splitting.

See also bug 162064.
Comment 8 Ladislav Slezák 2006-12-01 06:26:44 UTC
Yes, it seems that we should split the builtin.
Comment 9 Ladislav Slezák 2007-01-26 09:47:27 UTC
Fixed in yast2-packager-2.15.5 (the builtin has been split in yast2-pkg-bindings-2.15.3)