Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1428964

Summary: traceback during install
Product: [Fedora] Fedora Reporter: Dan Horák <dan>
Component: afflibAssignee: Nicolas Chauvet (kwizart) <kwizart>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: kwizart, rebus
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-03 17:56:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 467765    

Description Dan Horák 2017-03-03 17:20:13 UTC
There is a python traceback during install making the package to be FTBFS on s390x.

...
Making install in pyaff
make[1]: Entering directory '/builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff'
cd . && /usr/bin/python setup.py \
	build --build-base /builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff/build \
	build_ext --include-dirs /builddir/build/BUILD/AFFLIBv3-3.7.15/include --library-dirs /builddir/build/BUILD/AFFLIBv3-3.7.15/lib/.libs
running build
running build_ext
make[2]: Entering directory '/builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff'
cd . && /usr/bin/python setup.py \
	build --build-base /builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff/build \
	egg_info --egg-base /builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff \
	install --prefix /builddir/build/BUILDROOT/afflib-3.7.15-1.fc26.s390x/usr --single-version-externally-managed --record=/builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff/installed.txt \
	bdist_egg --dist-dir /builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff/dist
running build
running build_ext
running egg_info
creating /builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff/PyAFF.egg-info
writing /builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff/PyAFF.egg-info/PKG-INFO
writing top-level names to /builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff/PyAFF.egg-info/top_level.txt
writing dependency_links to /builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff/PyAFF.egg-info/dependency_links.txt
writing manifest file '/builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff/PyAFF.egg-info/SOURCES.txt'
reading manifest file '/builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff/PyAFF.egg-info/SOURCES.txt'
writing manifest file '/builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff/PyAFF.egg-info/SOURCES.txt'
running install
running install_lib
creating /builddir/build/BUILDROOT/afflib-3.7.15-1.fc26.s390x/usr/lib64/python2.7
creating /builddir/build/BUILDROOT/afflib-3.7.15-1.fc26.s390x/usr/lib64/python2.7/site-packages
copying /builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff/build/lib.linux-s390x-2.7/pyaff.so -> /builddir/build/BUILDROOT/afflib-3.7.15-1.fc26.s390x/usr/lib64/python2.7/site-packages
running install_egg_info
Copying /builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff/PyAFF.egg-info to /builddir/build/BUILDROOT/afflib-3.7.15-1.fc26.s390x/usr/lib64/python2.7/site-packages/PyAFF-0.1-py2.7.egg-info
running install_scripts
Traceback (most recent call last):
  File "setup.py", line 24, in <module>
    ext_modules = pyaff)
  File "/usr/lib64/python2.7/distutils/core.py", line 151, 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/install.py", line 61, in run
    return orig.install.run(self)
  File "/usr/lib64/python2.7/distutils/command/install.py", line 575, in run
    self.run_command(cmd_name)
  File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  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/install_scripts.py", line 33, in run
    bs_cmd = (self.get_finalized_command('build_scripts', create=False) or
  File "/usr/lib64/python2.7/distutils/cmd.py", line 312, in get_finalized_command
    cmd_obj.ensure_finalized()
AttributeError: 'NoneType' object has no attribute 'ensure_finalized'
make[2]: Leaving directory '/builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff'
make[2]: *** [Makefile:470: install-exec-local] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/AFFLIBv3-3.7.15/pyaff'
make[1]: *** [Makefile:354: install-am] Error 2
make: *** [Makefile:564: install-recursive] Error 1
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.f1gRES (%install)
    Bad exit status from /var/tmp/rpm-tmp.f1gRES (%install)
Child return code was: 1
EXCEPTION: [Error()]


for full logs please see https://s390.koji.fedoraproject.org/koji/taskinfo?taskID=2510985


Version-Release number of selected component (if applicable):
afflib-3.7.15-1.fc26

Comment 1 Dan Horák 2017-03-03 17:56:42 UTC
hmm, local build is OK, scratch build is OK, there must be something bad slipping into the koji-shadow constructed buildroot ...

fixed in https://s390.koji.fedoraproject.org/koji/buildinfo?buildID=477389