Bug 1344

Summary: automatically install proper language pack when thunderbird is installed
Product: Mageia Reporter: Manuel Hiebel <manuel.mageia>
Component: RPM PackagesAssignee: Florian Hubold <doktor5000>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Normal CC: doktor5000, stormi-mageia, thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard: MGA2TOO
Source RPM: mozilla-thunderbird CVE:
Status comment:

Description Manuel Hiebel 2011-05-19 17:15:29 CEST
Description of problem:
During the install of mozilla-thunderbird no rpm's language is added automatically (or requested) 

This is to simplify installation including rpmdrake, see for example bug 1260

Version-Release number of selected component (if applicable):
mozilla-thunderbird-3.1.10-1.mga1.x86_64.rpm

How reproducible:
As no english OS: urpmi mozilla-thunderbird
Manuel Hiebel 2011-05-23 10:28:28 CEST

Summary: fix mozilla-thunderbird to the proper rpm's language => fix mozilla-thunderbird to add the proper rpm's language

Comment 1 Ahmad Samir 2011-05-23 23:38:38 CEST
Maybe we could:
- An empty mozilla-thunderbird-en_US (from the mozilla-thunderbird-l10n src.rpm)
- Add virtual provides, mozilla-thunderbird-l10n to all mozilla-thunderbird localisation packages
- Add a requires on mozilla-thunderbird-l10n in mozilla-thunderbird

CC: (none) => mageia, thierry.vignaud
Severity: normal => enhancement

Comment 2 Samuel Verschelde 2011-10-01 03:55:11 CEST
Assigning to maintainer now that our maintainers database has an entry for
this package. Please assign back to bugsquad@mageia.org in case of a mistake
from me.

CC: (none) => stormi
Assignee: bugsquad => anssi.hannula

Anssi Hannula 2011-10-01 13:07:18 CEST

Assignee: anssi.hannula => doktor5000

Comment 3 Florian Hubold 2011-10-01 23:39:19 CEST
As Ahmad already proposed, this is rather easily doable, just tested that locally. But for most systems, where more than one locales-xx package is installed, installing thunderbird would prompt the user to select one out of these packages.

E.g. on a default german installation, where locales-fr, locales-de and locales-en_GB are installed, the installation of mozilla-thunderbird would prompt for one out of mozilla-thunderbird-fr, mozilla-thunderbird-de or mozilla-thunderbird-en_GB packages.

This is as near as a solution will get. The question would be, do we really want that?

Status: NEW => ASSIGNED
Summary: fix mozilla-thunderbird to add the proper rpm's language => automatically install proper language pack when thunderbird is installed

Comment 4 Manuel Hiebel 2011-10-02 01:03:37 CEST
It's better to do nothing :)
Comment 5 Manuel Hiebel 2011-10-02 01:15:28 CEST
*it's better than doing nothing ...
Comment 6 Samuel Verschelde 2011-10-02 08:58:58 CEST
(In reply to comment #5)
> *it's better than doing nothing ...

+1
Comment 7 Marja Van Waes 2012-05-26 13:08:31 CEST
Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja

Keywords: (none) => NEEDINFO

Manuel Hiebel 2012-05-26 17:30:09 CEST

Keywords: NEEDINFO => (none)
Whiteboard: (none) => MGA2TOO

Colin Guthrie 2012-06-03 21:51:29 CEST

CC: mageia => (none)

Comment 8 Florian Hubold 2012-06-03 23:07:41 CEST
Sorry, i've totally forgotten this one, had it locally but didn't commit it it because it wasn't tested that well. Will try to get back to it after i have my production system upgraded to mga2.

CC: (none) => doktor5000

Comment 9 Florian Hubold 2014-08-24 19:09:51 CEST
Commited http://svnweb.mageia.org/packages?view=revision&revision=667189
Please test with latest firefox-l10n-31.0-3.mga5

Test case:

When locales-XX is installed, urpmi should automatically select according firefox-l10n-XX package. If this works, I'll commit the same for Thunderbird.
Comment 10 Florian Hubold 2014-08-24 19:48:24 CEST
Sorry, forgot the other half of the change:
http://svnweb.mageia.org/packages?view=revision&revision=667194

Please test with firefox-31.0-7.mga5

  urpme -a firefox && urpmi firefox

should propose firefox-l10n-XX package according to installed locales-XX package.

Source RPM: mozilla-thunderbird-3.1.10-1.mga1.src.rpm => mozilla-thunderbird

Comment 11 Florian Hubold 2014-08-25 21:30:31 CEST
Just checked here, seems to be working as expected:

[user1@localhost ~]$ rpm -qa | grep locales
locales-2.19-1.mga5
locales-en-2.19-1.mga5
locales-de-2.19-1.mga5
[user1@localhost ~]$ sudo urpmi firefox
values on reference is experimental at /usr/lib/perl5/vendor_perl/5.18.1/urpm/main_loop.pm line 232.
values on reference is experimental at /usr/lib/perl5/vendor_perl/5.18.1/urpm/main_loop.pm line 232.
values on reference is experimental at /usr/lib/perl5/vendor_perl/5.18.1/urpm/main_loop.pm line 245.
values on reference is experimental at /usr/lib/perl5/vendor_perl/5.18.1/urpm/main_loop.pm line 245.
In order to satisfy the 'firefox-l10n' dependency, one of the following packages is needed:
 1- firefox-de-31.0-3.mga5.noarch: German interface for Firefox (to install)
 2- firefox-en_GB-31.0-3.mga5.noarch: British English interface for Firefox (to install)
 3- firefox-en_ZA-31.0-3.mga5.noarch: English (South Africa) interface for Firefox (to install)
What is your choice? (1-3)

It even proposes firefox-l10n-de as first choice, seems it even can read my mind now :p


Will commit the same for thunderbird and close this one. Please provide feedback if you find any related issues.
Comment 12 Florian Hubold 2014-08-25 21:40:34 CEST
Submitted thunderbird-l10n-31.0-2.mga5 and thunderbird-31.0-2.mga5

Feel free to reopen in case any issues arise. Will try to also add a few lines to Release Notes for this as the whopping new magic feature :)

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED