Bug 672483

Summary: abrt.pth breaks rpmbuild of python
Product: Red Hat Enterprise Linux 6 Reporter: Petr Šplíchal <psplicha>
Component: abrtAssignee: Jiri Moskovcak <jmoskovc>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: ahecox, anton, dfediuck, dmalcolm, dvlasenk, gavin, iprikryl, jmoskovc, kklic, mnowak, mtoman, npajkovs, ohudlick, pebolle, psplicha, rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 672043 Environment:
Last Closed: 2011-06-14 14:13:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Petr Šplíchal 2011-01-25 09:55:40 UTC
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.

Comment 1 Jiri Moskovcak 2011-01-26 12:14:16 UTC
How about removing abrt-addon-python from this tps-srpm test?