[Fedora-packaging] "No translations found" error in rpmbuild

Michael Schwendt mschwendt at gmail.com
Wed Jan 26 22:01:58 UTC 2011


On Wed, 26 Jan 2011 16:21:43 -0500, Erik wrote:

> In the %install of my spec file I do this:
> 
> Name: sunny
> 
> ...
> 
> rm -rf $RPM_BUILD_ROOT
> %{__python} setup.py install -01 --skip-build --root $RPM_BUILD_ROOT
> %find_lang %{name}
> 
> unfortunately, my rpmbuild dies with this error:
> "No translations found for sunny in
> /home/erikb/rpmbuild/BUILDROOT/sunny-1.0-1.i386"
> 
> Peeking into the BUILDROOT, I find I have these valid .mo and .po files with
> my translations in my buildroot (all copied over by my setup.py):
> BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/locale/da/sunny.mo
> BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/locale/de/sunny.mo
> BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/po/da.po
> BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/po/de.po
> 
> Any suggestions how to get the translations into my application?  I am not
> sure why rpmbuild is not finding the files it needs.  Thank you!
> 
> (Note: if I remove %find_lang, my rpm builds successfully)

Well, /usr/share/sunny/.... isn't the standard search path for message
object files. Plus the *.po files are source files not to be installed.


More information about the packaging mailing list