Gents,
I have some trouble with some language files. They are removed during the build, and I dont find the reason why.
I have stripped down the tarball to one language in trouble, handcrafted the .po file with poedit, and generated the .mo using msgfmt.
The build process looks good in the beginning:
111s] creating /home/abuild/rpmbuild/BUILDROOT/tryton-3.6.1.1-6.1.i386/usr/share/locale/nl_NL
111s] creating /home/abuild/rpmbuild/BUILDROOT/tryton-3.6.1.1-6.1.i386/usr/share/locale/nl_NL/LC_MESSAGES
111s] copying share/locale/nl_NL/LC_MESSAGES/tryton.mo -> /home/abuild/rpmbuild/BUILDROOT/tryton-3.6.1.1-6.1.i386/usr/share/locale/nl_NL/LC_MESSAGES
111s] copying share/locale/nl_NL/LC_MESSAGES/tryton.po -> /home/abuild/rpmbuild/BUILDROOT/tryton-3.6.1.1-6.1.i386/usr/share/locale/nl_NL/LC_MESSAGES
But when find-lang runs, it removes the .mo without further error message:
111s] + /usr/lib/rpm/find-lang.sh /home/abuild/rpmbuild/BUILDROOT/tryton-3.6.1.1-6.1.i386 tryton
111s] removing translation /usr/share/locale/nl_NL/LC_MESSAGES/tryton.mo: 278 translated messages.
So, when packing in the end of the build, it fails due to the missing language file.
Now the interesting part: when I manually run
/usr/lib/rpm/find-lang.sh /home/abuild/rpmbuild/BUILD/tryton-3.6.1.1 tryton
everthing works fine…
Any idea what this could be? Other languages are fine in this package…