Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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:
Embargoed:

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?