[opensuse-packaging] Python package and .po files
Hi. The Solaar package is in several repositories, but none of them install the translations files. I've branched the package to try to build it with the translations but if I do what I have done with other packages, use the %lang_package macro and add %files lang -f %{name}.lang in the spec file, it doesn't work. I get this: find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64/usr/share/locale/': No such file or directory find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64/usr/share/help/': No such file or directory No translations found for solaar in /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64 error: Bad exit status from /var/tmp/rpm-tmp.GyVbWN (%install) I have no clue on how to fix this. Any hints? I've tried copying the .po files to the locale dir and it doesn't work. I'm making the translation for my languaje and I'd like it to be included in the package. Greetings. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Sat 31 May 2014 12:06:48 AM CDT, jcsl wrote:
Hi.
The Solaar package is in several repositories, but none of them install the translations files. I've branched the package to try to build it with the translations but if I do what I have done with other packages, use the %lang_package macro and add %files lang -f %{name}.lang in the spec file, it doesn't work. I get this:
find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64/usr/share/locale/': No such file or directory find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64/usr/share/help/': No such file or directory No translations found for solaar in /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64 error: Bad exit status from /var/tmp/rpm-tmp.GyVbWN (%install)
I have no clue on how to fix this. Any hints? I've tried copying the .po files to the locale dir and it doesn't work. I'm making the translation for my languaje and I'd like it to be included in the package.
Greetings. Hi Did you read the docs/i18n.md file?
-- Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890) openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-11-desktop up 4:20, 3 users, load average: 0.07, 0.08, 0.07 CPU Intel® B840@1.9GHz | GPU Intel® Sandybridge Mobile -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
El Viernes, 30 de mayo de 2014 20:34:39 Malcolm escribió:
On Sat 31 May 2014 12:06:48 AM CDT, jcsl wrote:
Hi.
The Solaar package is in several repositories, but none of them install the translations files. I've branched the package to try to build it with the translations but if I do what I have done with other packages, use the %lang_package macro and add %files lang -f %{name}.lang in the spec file, it doesn't work. I get this:
find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64/usr/share/locale/ ': No such file or directory find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64/usr/share/help/': No such file or directory No translations found for solaar in /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64
error: Bad exit status from /var/tmp/rpm-tmp.GyVbWN (%install)
I have no clue on how to fix this. Any hints? I've tried copying the .po files to the locale dir and it doesn't work. I'm making the translation for my languaje and I'd like it to be included in the package.
Greetings.
Hi Did you read the docs/i18n.md file?
Hi. I did read that file, but isn't it the process to "create" new .po files for translation? If it is not, then I haven't understood a thing. By the way, when I run ./tools/po-update.sh <language> the .po file for my language is built, but there are errors: /usr/bin/msgunfmt: error al abrir el fichero "/usr/share/locale- langpack/es_ES/LC_MESSAGES/gtk30.mo" para lectura: No existe el fichero o el directorio /usr/bin/msgunfmt: error al abrir el fichero "/usr/share/locale- langpack/es_ES/LC_MESSAGES/gtk30-properties.mo" para lectura: No existe el fichero o el directorio /usr/bin/msgmerge: error al abrir el fichero "" para lectura: No existe el fichero o el directorio "No existe el fichero o el directorio" means "No such file or directory". The package that provides those files is "bundle-lang-common-es", that it is installed. Greetings. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
El Sábado, 31 de mayo de 2014 00:06:48 jcsl escribió:
Hi.
The Solaar package is in several repositories, but none of them install the translations files. I've branched the package to try to build it with the translations but if I do what I have done with other packages, use the %lang_package macro and add %files lang -f %{name}.lang in the spec file, it doesn't work. I get this:
find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64/usr/share/locale/' : No such file or directory find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64/usr/share/help/': No such file or directory No translations found for solaar in /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64 error: Bad exit status from /var/tmp/rpm-tmp.GyVbWN (%install)
I have no clue on how to fix this. Any hints? I've tried copying the .po files to the locale dir and it doesn't work. I'm making the translation for my languaje and I'd like it to be included in the package.
Greetings.
If, for example, I add this to the install section of the spec file install -m 755 -d %{buildroot}%{_datadir}/locale/pl/ install -m 644 ./po/pl.po %{buildroot}%{_datadir}/locale/pl/%{name}.po I get this error: [ 40s] + /usr/lib/rpm/find-lang.sh /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-36.1.x86_64 solaar [ 40s] find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-36.1.x86_64/usr/share/help/': No such file or directory [ 40s] No translations found for solaar in /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-36.1.x86_64 [ 40s] error: Bad exit status from /var/tmp/rpm-tmp.gtEYu7 (%install) If I don't, I get: [ 37s] + /usr/lib/rpm/find-lang.sh /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-37.1.x86_64 solaar [ 37s] find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-37.1.x86_64/usr/share/locale/': No such file or directory [ 37s] find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-37.1.x86_64/usr/share/help/': No such file or directory [ 37s] No translations found for solaar in /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-37.1.x86_64 [ 37s] error: Bad exit status from /var/tmp/rpm-tmp.e7R35l (%install) So the offending dir is different en each case, but the error is the same. Greetings. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
El Sábado, 31 de mayo de 2014 00:06:48 jcsl escribió:
Hi.
The Solaar package is in several repositories, but none of them install the translations files. I've branched the package to try to build it with the translations but if I do what I have done with other packages, use the %lang_package macro and add %files lang -f %{name}.lang in the spec file, it doesn't work. I get this:
find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64/usr/share/locale/' : No such file or directory find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64/usr/share/help/': No such file or directory No translations found for solaar in /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64 error: Bad exit status from /var/tmp/rpm-tmp.GyVbWN (%install)
I have no clue on how to fix this. Any hints? I've tried copying the .po files to the locale dir and it doesn't work. I'm making the translation for my languaje and I'd like it to be included in the package.
Greetings.
If, for example, I add this to the install section of the spec file
install -m 755 -d %{buildroot}%{_datadir}/locale/pl/ install -m 644 ./po/pl.po %{buildroot}%{_datadir}/locale/pl/%{name}.po
I get this error:
[ 40s] + /usr/lib/rpm/find-lang.sh /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-36.1.x86_64 solaar [ 40s] find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-36.1.x86_64/usr/share/help/': No such file or directory [ 40s] No translations found for solaar in /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-36.1.x86_64 [ 40s] error: Bad exit status from /var/tmp/rpm-tmp.gtEYu7 (%install)
If I don't, I get:
[ 37s] + /usr/lib/rpm/find-lang.sh /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-37.1.x86_64 solaar [ 37s] find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-37.1.x86_64/usr/share/locale/': No such file or directory [ 37s] find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-37.1.x86_64/usr/share/help/': No such file or directory [ 37s] No translations found for solaar in /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-37.1.x86_64 [ 37s] error: Bad exit status from /var/tmp/rpm-tmp.e7R35l (%install)
So the offending dir is different en each case, but the error is the same.
Greetings. Hi But you need to convert (compile) the po files so they are mo files and install those. There must be some python setup routines to do
On Sat 31 May 2014 08:15:15 PM CDT, jcsl wrote: that, they would then be patched into the setup.py file. -- Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890) openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-11-desktop up 6:31, 3 users, load average: 0.33, 0.17, 0.09 CPU Intel® B840@1.9GHz | GPU Intel® Sandybridge Mobile -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
El Sábado, 31 de mayo de 2014 15:22:06 Malcolm escribió:
On Sat 31 May 2014 08:15:15 PM CDT, jcsl wrote:
El Sábado, 31 de mayo de 2014 00:06:48 jcsl escribió:
Hi.
The Solaar package is in several repositories, but none of them install the translations files. I've branched the package to try to build it with the translations but if I do what I have done with other packages, use the %lang_package macro and add %files lang -f %{name}.lang in the spec file, it doesn't work. I get this:
find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64/usr/share/local e/'>> : No such file or directory
find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64/usr/share/help/ ': No such file or directory No translations found for solaar in /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64
error: Bad exit status from /var/tmp/rpm-tmp.GyVbWN (%install)
I have no clue on how to fix this. Any hints? I've tried copying the .po files to the locale dir and it doesn't work. I'm making the translation for my languaje and I'd like it to be included in the package.
Greetings.
If, for example, I add this to the install section of the spec file
install -m 755 -d %{buildroot}%{_datadir}/locale/pl/ install -m 644 ./po/pl.po %{buildroot}%{_datadir}/locale/pl/%{name}.po
I get this error:
[ 40s] + /usr/lib/rpm/find-lang.sh /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-36.1.x86_64 solaar [ 40s] find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-36.1.x86_64/usr/share/help/': No such file or directory [ 40s] No translations found for solaar in /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-36.1.x86_64 [ 40s] error: Bad exit status from /var/tmp/rpm-tmp.gtEYu7 (%install)
If I don't, I get:
[ 37s] + /usr/lib/rpm/find-lang.sh /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-37.1.x86_64 solaar [ 37s] find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-37.1.x86_64/usr/share/locale/ ': No such file or directory [ 37s] find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-37.1.x86_64/usr/share/help/': No such file or directory [ 37s] No translations found for solaar in /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-37.1.x86_64 [ 37s] error: Bad exit status from /var/tmp/rpm-tmp.e7R35l (%install)
So the offending dir is different en each case, but the error is the same.
Greetings.
Hi But you need to convert (compile) the po files so they are mo files and install those. There must be some python setup routines to do that, they would then be patched into the setup.py file.
Hi. Yes, that was the problem. Once you build and install the files everything is ok. Thank you very much, and thanks to Krzysztof Żelechowski too. Greetings. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
jcsl
-
Malcolm