Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 385671 - sci-geosciences/merkaartor-0.17.2 looks only in /usr/bin/ for translations
Summary: sci-geosciences/merkaartor-0.17.2 looks only in /usr/bin/ for translations
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 22:25 UTC by Nikoli
Modified: 2011-12-16 15:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
add TRANSDIR_MERKAATOR=/usr/share/merkaator/translations to qmake line (merkaartor_transdir.patch,413 bytes, patch)
2011-12-15 12:19 UTC, René Kraneis
Details | Diff
patch for ebuild, works fine for me (merkaartor-0.17.2.ebuild.patch,561 bytes, patch)
2011-12-16 07:04 UTC, Nikoli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2011-10-04 22:25:41 UTC
merkaartor-0.17.2 does not look for translations in /usr/share/merkaartor/translations/, instead it uses /usr/bin/ dir. There is message in status bar:
Warning! Could not load the Merkaartor translations for the "ru" language. Switching to default English.

 $ strace -o /tmp/merk1.log merkaartor
 $ cat /tmp/merk1.log |grep _ru
stat("/usr/share/qt4/translations/qt_ru.qm", {st_mode=S_IFREG|0644, st_size=248453, ...}) = 0
access("/usr/share/qt4/translations/qt_ru.qm", R_OK) = 0
access("/usr/share/qt4/translations/qt_ru.qm", W_OK) = -1 EACCES (Permission denied)
access("/usr/share/qt4/translations/qt_ru.qm", X_OK) = -1 EACCES (Permission denied)
open("/usr/share/qt4/translations/qt_ru.qm", O_RDONLY|O_CLOEXEC) = 12
stat("/usr/bin/merkaartor_ru.qm", 0x18cad48) = -1 ENOENT (No such file or directory)
lstat("/usr/bin/merkaartor_ru.qm", 0x7fffbe831b10) = -1 ENOENT (No such file or directory)
stat("/usr/bin/merkaartor_ru", 0x18c8a78) = -1 ENOENT (No such file or directory)
lstat("/usr/bin/merkaartor_ru", 0x7fffbe831b10) = -1 ENOENT (No such file or directory)
stat("/usr/merkaartor_ru.qm", 0x18cad48) = -1 ENOENT (No such file or directory)
lstat("/usr/merkaartor_ru.qm", 0x7fffbe831b10) = -1 ENOENT (No such file or directory)
stat("/usr/merkaartor_ru", 0x18c9b48)   = -1 ENOENT (No such file or directory)
lstat("/usr/merkaartor_ru", 0x7fffbe831b10) = -1 ENOENT (No such file or directory)

After 'cp /usr/share/merkaartor/translations/merkaartor_ru.qm /usr/bin/' interface is translated to russian. Please fix paths in ebuild.
Comment 1 René Kraneis 2011-12-15 12:19:20 UTC
Created attachment 295903 [details, diff]
add TRANSDIR_MERKAATOR=/usr/share/merkaator/translations to qmake line
Comment 2 René Kraneis 2011-12-15 12:21:43 UTC
Comment on attachment 295903 [details, diff]
add TRANSDIR_MERKAATOR=/usr/share/merkaator/translations to qmake line

http://merkaartor.be/wiki/merkaartor/Compiling
Comment 3 Nikoli 2011-12-16 07:04:50 UTC
Created attachment 296001 [details, diff]
patch for ebuild, works fine for me

Rene, thanks for idea, but your patch has typo and does not set TRANSDIR_SYSTEM.

P.S. media-gfx/zbar is now in portage, time to add USE flag.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2011-12-16 15:24:53 UTC
+  16 Dec 2011; Samuli Suominen <ssuominen@gentoo.org> merkaartor-0.17.2.ebuild,
+  merkaartor-9999.ebuild:
+  Fix problems with localization search dirs wrt #385671 by Nikoli and René
+  Kraneis