FS#19744 - [newsbeuter] 2.2-1 locale doesn't work

Attached to Project: Community Packages
Opened by darwaz (darwaz) - Tuesday, 08 June 2010, 09:07 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Saturday, 26 June 2010, 10:59 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Newsbeuter is translated in several languages.
My locales are generated in french, but Newsbeuter is in english.
I suppose it's the same for the other languages.
Probably it can't reach /usr/share/locale/fr/LC_MESSAGES/newsbeuter.mo for any reason.


Steps to reproduce:
Install it on a non-english system
This task depends upon

Closed by  Jaroslav Lichtblau (Dragonlord)
Saturday, 26 June 2010, 10:59 GMT
Reason for closing:  Fixed
Additional comments about closing:  in version 2.3
Comment by Xavier (shining) - Tuesday, 08 June 2010, 11:07 GMT
The problem is that newsbeuter seems to append a /build/pkg/ prefix while searching for newsbeuter locale.

$ strace newsbeuter 2>&1 | grep locale
open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
open("/usr/share/locale/fr_FR.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/fr_FR.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/fr_FR/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/fr.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/fr.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/fr/LC_MESSAGES/libc.mo", O_RDONLY) = 3
open("/build/pkg/usr/share/locale/fr_FR.UTF-8/LC_MESSAGES/newsbeuter.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/build/pkg/usr/share/locale/fr_FR.utf8/LC_MESSAGES/newsbeuter.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/build/pkg/usr/share/locale/fr_FR/LC_MESSAGES/newsbeuter.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/build/pkg/usr/share/locale/fr.UTF-8/LC_MESSAGES/newsbeuter.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/build/pkg/usr/share/locale/fr.utf8/LC_MESSAGES/newsbeuter.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/build/pkg/usr/share/locale/fr/LC_MESSAGES/newsbeuter.mo", O_RDONLY) = -1 ENOENT (No such file or directory)

It's probably a side-effect of building and installing newsbeuter that way :
make prefix=${pkgdir}/usr || return 1
make prefix=${pkgdir}/usr install || return 1

We should find out whether there is another way to build as we want. The traditional way is :
./configure --prefix=/usr
make
make DESTDIR="$pkgdir/" install

But newsbeuter might not support that. In any cases, this must be fixed, with one way or another.
Comment by Lukas Fleischer (lfleischer) - Tuesday, 08 June 2010, 23:42 GMT
You almost got it, Xavier. Patch attached.

Loading...