Debarshi Ray wrote, at 04/30/2010 04:43 AM +9:00:
Anjuta carries a bunch of template sources which are filled up at runtime to generate source files for various kinds of projects. These are placed in /usr/share/anjuta/project. Now /usr/lib/rpm/brp-python-bytecompile is trying to byte compile the Python templates, which are obviously not syntactically correct Python sources. This is failing the build: http://koji.fedoraproject.org/koji/getfile?taskID=2146714&name=build.log
How do I work around this?
Thanks, Debarshi
Looking at /usr/lib/rpm/brp-python-bytecompile, it reads: ------------------------------------------------- 1 #!/bin/bash 2 errors_terminate=$2 -------------------------------------------------
and rpm --showrc shows: ------------------------------------------------- -14: __os_install_post /usr/lib/rpm/redhat/brp-compress %{!?__debug_package: /usr/lib/rpm/redhat/brp-strip %{__strip} /usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} } /usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} /usr/lib/rpm/brp-python-bytecompile %{__python} %{?_python_bytecompile_errors_terminate_build} /usr/lib/rpm/redhat/brp-python-hardlink %{!?__jar_repack:/usr/lib/rpm/redhat/brp-java-repack-jars} %{nil} -------------------------------------------------
So adding "%global _python_bytecompile_errors_terminate_build 0" will perhaps workaround this issue (default is 1).
Regards, Mamoru