Bug 18285 - packageCallbackChoices: default choice ('libreoffice-langpack-af') causes locales-af to be installed, while Afrikaans was never selected
Summary: packageCallbackChoices: default choice ('libreoffice-langpack-af') causes loc...
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords: 6dev1
Depends on:
Blocks:
 
Reported: 2016-04-28 12:30 CEST by Morgan Leijström
Modified: 2016-06-17 14:20 CEST (History)
1 user (show)

See Also:
Source RPM: drakx-installer-stage2
CVE:
Status comment:


Attachments

Description Morgan Leijström 2016-04-28 12:30:24 CEST
Fresh install yesterday mga6dev1 64bit, KDE,  + 900 updates

Locale is set to sweden, swedish already at install, and i also checked and set it again, still:

1) Firefox got installed with swedish language pack as it should, but also three english language packs: -en_GB, -en_US, -en_ZA 

2) LibreOffice installs by default with english instead of swedish


What is responsible for the automatic language pack selections?
Comment 1 Marja Van Waes 2016-04-28 19:46:27 CEST
(In reply to Morgan Leijström from comment #0)
> Fresh install yesterday mga6dev1 64bit, KDE,  + 900 updates


Did you run your updates at the end of install, or after reboot?

> 
> Locale is set to sweden, swedish already at install, and i also checked and
> set it again

You chose Swedish at the beginning of install.... when and where did you check and set it again?

>, still:
> 
> 1) Firefox got installed with swedish language pack as it should, but also
> three english language packs: -en_GB, -en_US, -en_ZA 
> 
> 2) LibreOffice installs by default with english instead of swedish
> 

Please attach your /root/drakx/report.bug.xz from the install

libreoffice-langpack-sv is present on the iso, but new versions and releases of libreoffice were pushed since the iso was built

> 
> What is responsible for the automatic language pack selections?

Probably some magic in stage2. However, since the libreoffice version that's on the iso, several updates of libreoffice have been pushed. There may have been a mismatch between the available libreoffice version on the mirror, and the available libreoffice-langpack-sv. The versions on the iso do match with one another.

Component: RPM Packages => Installer
Source RPM: drakxtools => drakx-installer-stage2
Keywords: (none) => NEEDINFO
CC: (none) => marja11

Comment 2 Morgan Leijström 2016-04-28 23:18:24 CEST
I executed the bug command just before rebooting, saved on stick and uploaded it
https://bugs.mageia.org/attachment.cgi?id=7700 in bug 18284.

IIRC, i rebooted after install, before updating.

Then i ran updates, then installed various additional programs.

While i was looking for what additional programs to install, i relaised LibreOffice was not installed.  
( I think it used to be installed by default in earlier Mageia, right? )

I selected it and saw wrong language was selected.

I then closed drakrpm and checked localisation, it was correctly swedish, i pressed OK or something to that meaning.

Into drakrpm again, chose libreoffice and it again selected english instead of swedish.

So while all was updated, it made wrong selection.

Keywords: NEEDINFO => (none)

Comment 3 Morgan Leijström 2016-04-29 17:59:52 CEST
Now i selected gcompris for install, and it automatically selected the -af language pack instead of -sv.  I aborted.

I found i have locales for -af, -en, -sv installed.

Why do i have -af ??

And even then, why do it not respect my set locale?

I uninstalled locales-af, it also uninstalled hunspell-af and autocorr-af.

I manually uninstalled hyphen-af.
Why was not hyphen-af automatically selected fur uninstall when i uninstalled locales-af??

Anyhow, with only locales-en and locales-sv, the correct gcpmpris language is selected.
Comment 4 Marja Van Waes 2016-04-29 18:13:49 CEST
(In reply to Morgan Leijström from comment #2)
> I executed the bug command just before rebooting, saved on stick and
> uploaded it
> https://bugs.mageia.org/attachment.cgi?id=7700 in bug 18284.


Thanks :-)

I see:
* selecting libreoffice-langpack-sv-5.1.1.3-2.mga6.x86_64
but it had to be unselected, because installing libreoffice-core was impossible
* adding a reason to already rejected package libreoffice-core-5.1.1.3-2.mga6.x86_64: unsatisfied libuno_sal.so.3(LIBO_UDK_4.1)(64bit)

So a dependency issue caused that LibreOffice couldn't get installed

I do also see:

installing <names of several other packages> firefox-45.0-3.mga6.x86_64.rpm from /tmp/image/media/core
starting installing packages
<those other packages>
firefox-45.0-3.mga6.x86_64
firefox-sv_SE-45.0-1.mga6.noarch

So firefox-sv_SE had gotten installed. 
firefox-en_ZA, firefox-en_GB and firefox-en_US did get installed, too (just like libreoffice-langpack-en was originally selected, too)

I agree just firefox-en_US would have better matched this line in the selectLanguage step:

* selectLanguage: pack_langs: en_US:en:sv_SE:sv utf8-flag: 1

Can you check whether firefox-sv_SE is still installed?
 (with "rpm -qa | grep firefox-sv)

> 
> IIRC, i rebooted after install, before updating.
> 
> Then i ran updates, then installed various additional programs.

If firefox-sv_SE is no longer there, then did you maybe allow to remove it while updating?
> 
> While i was looking for what additional programs to install, i relaised
> LibreOffice was not installed.  
> ( I think it used to be installed by default in earlier Mageia, right? )
> 
> I selected it and saw wrong language was selected.

After install, you have to manually select the correct language package. You can probably not see it in MCC unless you set the package selection to All instead of just to packages with GUI
> 
> I then closed drakrpm and checked localisation, it was correctly swedish, i
> pressed OK or something to that meaning.
> 
> Into drakrpm again, chose libreoffice and it again selected english instead
> of swedish.
> 
> So while all was updated, it made wrong selection.

Yeah, I've never heard that a language pack matching the language of your system was auto-selected outside installer, so if you do not manually select it, you'll get English

Do you have access to the QA isos? I'd like to know whether you can reproduce the problem with LibreOffice getting unselected with a QA 6sta1 iso
Comment 5 Marja Van Waes 2016-04-29 18:16:55 CEST
(In reply to Morgan Leijström from comment #3)
> Now i selected gcompris for install, and it automatically selected the -af
> language pack instead of -sv.  I aborted.
> 

I don't know, why that happens, you should have been asked which language pack you wanted to install along with it. Please file a separate bug report.

This one is about installer, we can maybe keep it for getting all en language packs installed for FF instead of just en_US, or for Libreoffice getting unselected.
Comment 6 Morgan Leijström 2016-04-29 19:50:28 CEST
Thanks, you found why libreoffice was not installed.


firefox-en_ZA, firefox-en_GB and firefox-en_US did all get installed automatically by installer or update.

I manually uninstalled firefox-en_ZA and firefox-en_US 
If any -en at all, i think en_GB is the most "neutral" english for us europeans and international use (but yes there live many people in US)

Yes i still have firefox-en_GB and firefox-sv_SE installed

I think drakrpm (the graphical one started by MCC) always use to automatically pick by the preferred location.  So why did it pick the wrong one?  *that* is a bug

( urpmi from the command line use to ask, IIRC, but for what i have been doing regarding this session i was always using MCC/drakrpm )


And, of course a big question is why did i find these installed::
 locales-af, hunspell-af, autocorr-af, hyphen-af ?
Seems like installer thinks i selected that locale too?


I do not have access to QA isos.  I think.  How would I access them?
Or, even better - would a network install be OK?
 (less download; i have an urpmi-proxy)
But anyhow i will be very busy with other stuff in coming days.
Comment 7 Morgan Leijström 2016-04-29 19:52:58 CEST
Forgot in my second paragraph to also say firefox-sv_SE got installed automatically.
Comment 8 Marja Van Waes 2016-04-29 21:35:38 CEST
(In reply to Morgan Leijström from comment #7)
> Forgot in my second paragraph to also say firefox-sv_SE got installed
> automatically.

Yeah, I misread the description of this bug report, sorry


(In reply to Morgan Leijström from comment #6)
 
> 
> I think drakrpm (the graphical one started by MCC) always use to
> automatically pick by the preferred location.  So why did it pick the wrong
> one?  *that* is a bug

I just checked, and, if you have several locales installed, here drakrpm adds the language pack for the alphabetically first one of the installed locales.

Installer did indeed install locales-af, it got selected when installer was trying to resolve dependencies for LibreOffice
* packageCallbackChoices: default choice ('libreoffice-langpack-af') ....
* replacing libreoffice-langpack[== 5.1.1.3-2.mga6] with libreoffice-langpack-af
* requiring autocorr-af,hunspell-af,hyphen-af,libreoffice-core(x86-64)[== 1:5.1.1.3-2.mga6],locales-af for libreoffice-langpack-af-5.1.1.3-2.mga6.x86_64

and despite libreoffice getting deselected, locales-af did get installed

I do not know whether this would also have happened if libreoffice had installed fine.

(Btw, if you only want en_GB as additional language, then after selecting Swedish in this screen http://doc.mageia.org/installer/5/en/content/selectLanguage.html click on "Multiple languages" and add en_GB there while deselecting en_US ... however, since en(_GB) comes in the alphabet before Swedish, you'll probably have to manually select any Swedish languagepack in drakrpm)

Keywords: (none) => 6dev1
Assignee: bugsquad => thierry.vignaud
Summary: Language pack selection is sometimes wrong => packageCallbackChoices: default choice ('libreoffice-langpack-af') causes locales-af to be installed, while Afrikaans was never selected

Comment 9 Morgan Leijström 2016-04-29 22:19:17 CEST
(In reply to Marja van Waes from comment #8)
> Yeah, I misread the description of this bug report, sorry

No worries, i see you are busy :)

> (In reply to Morgan Leijström from comment #6)
>  
> > 
> > I think drakrpm (the graphical one started by MCC) always use to
> > automatically pick by the preferred location.  So why did it pick the wrong
> > one?  *that* is a bug
> 
> I just checked, and, if you have several locales installed, here drakrpm
> adds the language pack for the alphabetically first one of the installed
> locales.

OK, I have simply been lucky then.

> Installer did indeed install locales-af, it got selected when installer was
> trying to resolve dependencies for LibreOffice
> * packageCallbackChoices: default choice ('libreoffice-langpack-af') ....
> * replacing libreoffice-langpack[== 5.1.1.3-2.mga6] with
> libreoffice-langpack-af
> * requiring autocorr-af,hunspell-af,hyphen-af,libreoffice-core(x86-64)[==
> 1:5.1.1.3-2.mga6],locales-af for
> libreoffice-langpack-af-5.1.1.3-2.mga6.x86_64

wonder why en-af...
did it not already have other en_ variants of autocorr etc for install?

oh, btw i may be mixing -af and az.  I am really tired ATM.

> and despite libreoffice getting deselected, locales-af did get installed

OK, that is a bug by itself.

> I do not know whether this would also have happened if libreoffice had
> installed fine.
> 
> (Btw, if you only want en_GB as additional language, then after selecting
> Swedish in this screen
> http://doc.mageia.org/installer/5/en/content/selectLanguage.html click on
> "Multiple languages" and add en_GB there while deselecting en_US ...
> however, since en(_GB) comes in the alphabet before Swedish, you'll probably
> have to manually select any Swedish languagepack in drakrpm)

OK thanks, I may try next time.    Have a good night  :)
Comment 10 Thierry Vignaud 2016-06-17 14:20:54 CEST
Closing as old as it was a deps issue at one time

Status: NEW => RESOLVED
Resolution: (none) => OLD


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