Hide Forgot
Description of problem: %check fails for rebuilding pyliblzma-0.5.3-8.el7.src.rpm on RHEL7 Version-Release number of selected component (if applicable):pyliblzma-0.5.3-8.el7.src.rpm How reproducible: 100% Steps to Reproduce: 1. load RHEL7 and listed BuildRequires 2. rpmbuild --rebuild pyliblzma-0.5.3-8.el7.src.rpm 3. %check fails to run Actual results: Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.tE2l5u + umask 022 + cd /builddir/build/BUILD + cd pyliblzma-0.5.3 + /usr/bin/python setup.py test running test running egg_info writing pyliblzma.egg-info/PKG-INFO writing top-level names to pyliblzma.egg-info/top_level.txt writing dependency_links to pyliblzma.egg-info/dependency_links.txt reading manifest file 'pyliblzma.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'pyliblzma.egg-info/SOURCES.txt' running build_ext copying build/lib.linux-x86_64-2.7/lzma.so -> Traceback (most recent call last): File "setup.py", line 81, in <module> test_suite = 'tests', File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/lib/python2.7/site-packages/setuptools/command/test.py", line 138, in run self.with_project_on_sys_path(self.run_tests) File "/usr/lib/python2.7/site-packages/setuptools/command/test.py", line 118, in with_project_on_sys_path func() File "/usr/lib/python2.7/site-packages/setuptools/command/test.py", line 164, in run_tests testLoader = cks File "/usr/lib64/python2.7/unittest/main.py", line 94, in __init__ self.parseArgs(argv) File "/usr/lib64/python2.7/unittest/main.py", line 149, in parseArgs self.createTests() File "/usr/lib64/python2.7/unittest/main.py", line 158, in createTests self.module) File "/usr/lib64/python2.7/unittest/loader.py", line 128, in loadTestsFromNames suites = [self.loadTestsFromName(name, module) for name in names] File "/usr/lib64/python2.7/unittest/loader.py", line 103, in loadTestsFromName return self.loadTestsFromModule(obj) File "/usr/lib/python2.7/site-packages/setuptools/command/test.py", line 35, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/usr/lib64/python2.7/unittest/loader.py", line 100, in loadTestsFromName parent, obj = obj, getattr(obj, part) AttributeError: 'module' object has no attribute 'test_liblzma' error: Bad exit status from /var/tmp/rpm-tmp.tE2l5u (%check) Bad exit status from /var/tmp/rpm-tmp.tE2l5u (%check) Expected results: able to rebuild source rpm Additional info: Related Debian bug report of similar behavior: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614627
Created attachment 846317 [details] mock config added mock config to replicate problem
Fix for thsis is very simple: BuildRequires: python-test
*** Bug 1048897 has been marked as a duplicate of this bug. ***
*** Bug 1028571 has been marked as a duplicate of this bug. ***
*** Bug 1055688 has been marked as a duplicate of this bug. ***
This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request.