Hide Forgot
Bug 672043 affects RHEL6 as well. Currently, all tps-srpm tests fail if abrt-addon-python is installed on the system. +++ This bug was initially created as a clone of Bug #672043 +++ Description of problem: abrt.pth breaks rpmbuild of python Version-Release number of selected component (if applicable): 1.1.14-3 How reproducible: Always Steps to Reproduce: 1. rpmbuild -bb $SPECS/python.spec 2. 3. Actual results: [...] gcc -pthread -shared Modules/xxsubtype.o -o Modules/xxsubtype_d.so Traceback (most recent call last): File "/home/[...]/Rpmbuild/BUILD/Python-2.7.1/Lib/site.py", line 553, in <module> main() File "/home/[...]/Rpmbuild/BUILD/Python-2.7.1/Lib/site.py", line 536, in main known_paths = addsitepackages(known_paths) File "/home/[...]/Rpmbuild/BUILD/Python-2.7.1/Lib/site.py", line 315, in addsitepackages addsitedir(sitedir, known_paths) File "/home/[...]/Rpmbuild/BUILD/Python-2.7.1/Lib/site.py", line 192, in addsitedir addpackage(sitedir, name, known_paths) File "/home/[...]/Rpmbuild/BUILD/Python-2.7.1/Lib/site.py", line 162, in addpackage exec line File "<string>", line 1, in <module> File "/usr/lib/python2.7/site-packages/abrt_exception_handler.py", line 27, in <module> import syslog ImportError: No module named syslog [15673 refs] make: *** [sharedmods] Error 1 error: Bad exit status from /home/[...]/Rpmbuild/TMP/rpm-tmp.x75Dze (%build) RPM build errors: Bad exit status from /home/[...]/Rpmbuild/TMP/rpm-tmp.x75Dze (%build) Expected results: NOTA Additional info: 0) Removing the abrt-addon-python package solves this problem. 1) I don't really understand what's going on here. This seems to be the first time I ran into a .pth file. I'm guessing that syslog (a built-in module) isn't yet available in this stage of the python built.
How about removing abrt-addon-python from this tps-srpm test?