Bug 1266749

Summary: Package gedit installs .mo language files in wrong folder /usr/@DATADIRNAME@/locale/
Product: [Fedora] Fedora Reporter: c72578
Component: geditAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 21CC: pkrul, rstrode
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-23 12:11:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to spec-file
none
Patch to spec-file none

Description c72578 2015-09-27 11:36:45 UTC
Description of problem:
The .mo files of gedit are installed in the following wrong folder:
/usr/@DATADIRNAME@/locale/

Hence, gedit is only available in English, no other languages.

Version-Release number of selected component (if applicable):
gedit.x86_64 2:3.14.4-1.fc21

How reproducible:
Always

Steps to Reproduce:
1. Install gedit-3.14.4-1.fc21.x86_64 using yum
2. ls /usr/@DATADIRNAME@/locale/
3. There the .mo files for the available languages of gedit are installed

Actual results:
.mo files are in a wrong folder /usr/@DATADIRNAME@/locale/

e.g.:
locate gedit.mo
/usr/@DATADIRNAME@/locale/af/LC_MESSAGES/gedit.mo
/usr/@DATADIRNAME@/locale/am/LC_MESSAGES/gedit.mo
/usr/@DATADIRNAME@/locale/an/LC_MESSAGES/gedit.mo
...

Expected results:
.mo files should be in:
/usr/share/locale

e.g.:
locate gedit.mo
/usr/share/locale/af/LC_MESSAGES/gedit.mo
/usr/share/locale/am/LC_MESSAGES/gedit.mo
/usr/share/locale/an/LC_MESSAGES/gedit.mo


Additional info:

Comment 1 Pieter D.J. Krul 2015-10-06 14:31:45 UTC
Created attachment 1080257 [details]
Patch to spec-file

Patch to fix autoreconf not running libtoolize after intltoolize

Comment 2 Pieter D.J. Krul 2015-10-06 14:33:02 UTC
I see the same undesired /usr/@DATADIRNAME@/locale/ path in the RPM, even after rebuilding.

$ rpm -q --queryformat="%{name}-%{version}.%{arch} - %{buildhost} - %{buildtime}\n\n" gedit

gedit-3.14.4.x86_64 - buildvm-27.phx2.fedoraproject.org - 1437411979

It can be fixed by adding libtoolize to the %setup section in the gedit.spec file (see proposed patch).

Comment 3 c72578 2015-10-06 17:10:33 UTC
Thanks for your patch.
I have tested it [1] and the .mo files are installed into the correct folder:

locate gedit.mo
/usr/share/locale/af/LC_MESSAGES/gedit.mo
/usr/share/locale/am/LC_MESSAGES/gedit.mo
/usr/share/locale/an/LC_MESSAGES/gedit.mo
...

And gedit starts with the language of the currently set locale.

However, some manual cleanup is required, to get rid of the previously installed files, e.g.
rm /usr/@DATADIRNAME@/ -rf


[1] https://copr.fedoraproject.org/coprs/c72578/gedit/

Comment 4 Pieter D.J. Krul 2015-10-06 19:13:02 UTC
Created attachment 1080354 [details]
Patch to spec-file

Patch to fix autoreconf not running libtoolize after intltoolize, and removing /usr/@DATADIRNAME/ from previous versions.

Comment 5 Pieter D.J. Krul 2015-10-06 19:16:07 UTC
Hi,

Please try the new patch #1080257 which also automates the cleanup from prior versions. I also bumped the release to 2.

Cheers,

Pieter

Comment 6 c72578 2015-10-06 20:34:00 UTC
Hello,
patch #1080257 has just been successfully tried.
The currently distributed gedit-3.14.4-1.fc21.x86_64 was installed first and afterwards updated to the patched rpm from the copr c72578/gedit

The directory /usr/@DATADIRNAME@/ was removed as desired.

Thanks,
Wolfgang

Comment 7 c72578 2015-10-23 12:11:17 UTC

*** This bug has been marked as a duplicate of bug 1258110 ***