Hi, On Fri, 10 Jul 2015, Axel Braun wrote:
So yes, it's the python implementation of msgfmt that's broken.
Probably not. But bottom line is that msgfmt does not issue an error, while %find_lang removed the .mo file.... Strange
...and even more weird. If I run the find-lang script against the sources it works like charm: T520:/var/tmp/build-root/openSUSE_13.1- i586/home/abuild/rpmbuild/BUILD/tryton-3.6.1/share/locale/nl_NL # /usr/lib/rpm/find-lang.sh /var/tmp/build-root/openSUSE_13.1- i586/home/abuild/rpmbuild/BUILD/tryton-3.6.1 tryton find: ‘/var/tmp/build-root/openSUSE_13.1- i586/home/abuild/rpmbuild/BUILD/tryton-3.6.1/usr/share/locale/’: Datei oder Verzeichnis nicht gefunden find: ‘/var/tmp/build-root/openSUSE_13.1- i586/home/abuild/rpmbuild/BUILD/tryton-3.6.1/usr/share/help/’: Datei oder Verzeichnis nicht gefunden
Do you not see the error messages above? Why do you say that it works like a charm when it clearly doesn't? the topdir you give to find-lang.sh must be the buildroot (so that $TOPDIR/usr/share/locale/ exists), so in your case something like: % /usr/lib/rpm/find-lang.sh /var/tmp/build-root/openSUSE_13.1-i586/ \ trython Also the .mo files that you want to check must be installed into $TOPDIR/usr/share/locale/$lang/, find-lang.sh doesn't do the checking in the current working directory. Just read the script do see what I mean.
-> contains the nl_NL entry that was causing the trouble.
Is this an OBS error then?
No. Ciao, Michael.