Created attachment 578244 [details] suggested patch on .spec file Description of problem: bash-completion contains in completions one shell script and three other symlinks called *.py. rpmbuild tries to run /usr/lib/rpm/brp-python-bytecompile on those scripts with disasterous results: + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 Compiling /builddir/build/BUILDROOT/bash-completion-1.99-1.fc18.noarch/usr/share/bash-completion/completions/asciidoc.py ... SyntaxError: ('invalid syntax', ('/usr/share/bash-completion/completions/asciidoc.py', 5, 15, ' COMPREPLY+=( $( compgen -W \'article book manpage\' -- "$cur" ) )\n')) Compiling /builddir/build/BUILDROOT/bash-completion-1.99-1.fc18.noarch/usr/share/bash-completion/completions/btdownloadcurses.py ... SyntaxError: ('invalid syntax', ('/usr/share/bash-completion/completions/btdownloadcurses.py', 5, 13, ' local cur prev words cword\n')) Compiling /builddir/build/BUILDROOT/bash-completion-1.99-1.fc18.noarch/usr/share/bash-completion/completions/btdownloadgui.py ... SyntaxError: ('invalid syntax', ('/usr/share/bash-completion/completions/btdownloadgui.py', 5, 13, ' local cur prev words cword\n')) Compiling /builddir/build/BUILDROOT/bash-completion-1.99-1.fc18.noarch/usr/share/bash-completion/completions/btdownloadheadless.py ... SyntaxError: ('invalid syntax', ('/usr/share/bash-completion/completions/btdownloadheadless.py', 5, 13, ' local cur prev words cword\n')) RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.57NPQT (%install) Macro %__isa_name has empty body Macro %__isa_bits has empty body Bad exit status from /var/tmp/rpm-tmp.57NPQT (%install) Child returncode was: 1 EXCEPTION: Command failed. See logs for output. (tried also in koji http://koji.fedoraproject.org/koji/taskinfo?taskID=4000853) Version-Release number of selected component (if applicable): bash-completion-1.99-1.fc18 How reproducible: 100% (even in koji) Steps to Reproduce: 1.rpmbuild --rebuild bash-completion-1.99-1.fc18.src.rpm 2. 3. Actual results: build fails Expected results: it shouldn't Additional info: As bash-completion really doesn't contain any true Python scripts, the best line of attack is IMHO just to switch of bytecompilation of Python scripts (see https://fedoraproject.org/wiki/Packaging:Python#Bytecompiling_with_the_correct_python_version) by adding this redefinition to the top of the spec file (on one line): %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') see attached diff
Thanks for the report. This seems to be a cleaner fix: %global _python_bytecompile_errors_terminate_build 0
bash-completion-2.0-1.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/bash-completion-2.0-1.fc17
Package bash-completion-2.0-1.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing bash-completion-2.0-1.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-9735/bash-completion-2.0-1.fc17 then log in and leave karma (feedback).
bash-completion-2.0-1.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.