Bug 24221

Summary: Not all files from package were installed
Product: Mageia Reporter: Alex Loginov <loginov_alex>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: tmb
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Alex Loginov 2019-01-22 12:19:51 CET
Description of problem:
Rpm package was installed not full. /usr/share/locale are partially.

eduactiv8
Working directory: /usr/share/eduactiv8
pygame 1.9.4
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "/usr/share/eduactiv8/eduactiv8.py", line 649, in <module>
    main()
  File "/usr/share/eduactiv8/eduactiv8.py", line 639, in main
    app.run()
  File "/usr/share/eduactiv8/eduactiv8.py", line 354, in run
    self.set_up_user()
  File "/usr/share/eduactiv8/eduactiv8.py", line 223, in set_up_user
    self.lang.load_language()
  File "/usr/share/eduactiv8/classes/lang.py", line 44, in load_language
    self.get_lang_attr()
  File "/usr/share/eduactiv8/classes/lang.py", line 51, in get_lang_attr
    self.trans[self.lang] = gettext.GNUTranslations(open(filename, "rb"))
FileNotFoundError: [Errno 2] Нет такого файла или каталога: '/usr/share/locale/uk/LC_MESSAGES/eduactiv8.mo'

For example file /usr/share/locale/uk/LC_MESSAGES/eduactiv8.mo is present in rpm package, but was not installed.

How reproducible: always

Steps to Reproduce:
1. Install package with locales
2. Check files of locales
3. Missing files of locales.

This bug is release blocker.
Alex Loginov 2019-01-22 12:20:28 CET

Priority: Normal => release_blocker

Comment 1 Thomas Backlund 2019-01-22 12:25:06 CET
not a bug.

We only install translations according to %_install_langs defined in /etc/rpm/macros
(this gets written at system install time)

This has been the default setup since Mandrake / Mandriva days

CC: (none) => tmb
Severity: major => normal
Resolution: (none) => INVALID
Status: NEW => RESOLVED
Priority: release_blocker => Normal

Comment 2 Alex Loginov 2019-01-22 13:56:34 CET
Thomas, what to do if program needs all MO files and it has switching of langs in GUI?