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:
Created attachment 1080257 [details] Patch to spec-file Patch to fix autoreconf not running libtoolize after intltoolize
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).
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/
Created attachment 1080354 [details] Patch to spec-file Patch to fix autoreconf not running libtoolize after intltoolize, and removing /usr/@DATADIRNAME/ from previous versions.
Hi, Please try the new patch #1080257 which also automates the cleanup from prior versions. I also bumped the release to 2. Cheers, Pieter
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
*** This bug has been marked as a duplicate of bug 1258110 ***