Bug 1260865 - ovirt-engine-sdk-python for el7 is failing on missing python3 dependencies
Summary: ovirt-engine-sdk-python for el7 is failing on missing python3 dependencies
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine-sdk-python
Classification: oVirt
Component: General
Version: ---
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ovirt-4.0.0-alpha
: 4.0.0a
Assignee: Juan Hernández
QA Contact: Lukas Svaty
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-08 05:58 UTC by Sandro Bonazzola
Modified: 2016-02-18 11:15 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-18 11:15:00 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.0.0+
ylavi: planning_ack+
rule-engine: devel_ack+
rule-engine: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 45837 0 master MERGED packaging: Distribution specific RPM spec files Never

Description Sandro Bonazzola 2015-09-08 05:58:33 UTC
Logs from http://jenkins.ovirt.org/job/ovirt-engine-sdk_master_build-artifacts-el7-x86_64/21/artifact/exported-artifacts/logs.tgz


========== Running the shellscript automation/build-artifacts.sh
error: Macro %py2_install has unterminated body
sed \
	-e 's/@RPM_VERSION@/4.0.0.0/g' \
	-e 's/@RPM_RELEASE@/0.1.20150901.git5fbfd34.el7.centos/g' \
	-e 's/@TARBALL@/ovirt-engine-sdk-python-4.0.0.0.tar.gz/g' \
	< ovirt-engine-sdk-python.spec.in \
	> ovirt-engine-sdk-python.spec
git ls-files | tar --transform='s|^|ovirt-engine-sdk-python/|' --files-from /proc/self/fd/0 -czf ovirt-engine-sdk-python-4.0.0.0.tar.gz ovirt-engine-sdk-python.spec
rpmbuild \
	--define="_topdir /home/jenkins/workspace/ovirt-engine-sdk_master_build-artifacts-el7-x86_64/ovirt-engine-sdk/rpmtop" \
	-ts ovirt-engine-sdk-python-4.0.0.0.tar.gz
error: Macro %py2_install has unterminated body
Wrote: /home/jenkins/workspace/ovirt-engine-sdk_master_build-artifacts-el7-x86_64/ovirt-engine-sdk/rpmtop/SRPMS/ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.src.rpm
error: Macro %py2_install has unterminated body
error: Macro %py2_install has unterminated body
error: Macro %py2_install has unterminated body
error: Macro %py2_install has unterminated body
Getting requirements for ./ovirt-engine-sdk-python.spec
 --> python-devel-2.7.5-18.el7_1.1.x86_64
 --> python-setuptools-0.9.8-3.el7.noarch
Error: No Package found for python3-devel
Error: No Package found for python3-setuptools
error: Macro %py2_install has unterminated body
sed \
	-e 's/@RPM_VERSION@/4.0.0.0/g' \
	-e 's/@RPM_RELEASE@/0.1.20150901.git5fbfd34.el7.centos/g' \
	-e 's/@TARBALL@/ovirt-engine-sdk-python-4.0.0.0.tar.gz/g' \
	< ovirt-engine-sdk-python.spec.in \
	> ovirt-engine-sdk-python.spec
git ls-files | tar --transform='s|^|ovirt-engine-sdk-python/|' --files-from /proc/self/fd/0 -czf ovirt-engine-sdk-python-4.0.0.0.tar.gz ovirt-engine-sdk-python.spec
rpmbuild \
	--define="_topdir /home/jenkins/workspace/ovirt-engine-sdk_master_build-artifacts-el7-x86_64/ovirt-engine-sdk/rpmtop" \
	-ts ovirt-engine-sdk-python-4.0.0.0.tar.gz
error: Macro %py2_install has unterminated body
Wrote: /home/jenkins/workspace/ovirt-engine-sdk_master_build-artifacts-el7-x86_64/ovirt-engine-sdk/rpmtop/SRPMS/ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.src.rpm
error: Macro %py2_install has unterminated body
error: Macro %py2_install has unterminated body
rpmbuild \
	--define="_topdir /home/jenkins/workspace/ovirt-engine-sdk_master_build-artifacts-el7-x86_64/ovirt-engine-sdk/rpmtop" \
	--rebuild /home/jenkins/workspace/ovirt-engine-sdk_master_build-artifacts-el7-x86_64/ovirt-engine-sdk/rpmtop/SRPMS/ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.src.rpm
error: Macro %py2_install has unterminated body
error: Failed build dependencies:
	python-devel is needed by ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.noarch
	python-setuptools is needed by ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.noarch
	python3-devel is needed by ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.noarch
	python3-setuptools is needed by ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.noarch
error: Macro %py2_install has unterminated body
Installing /home/jenkins/workspace/ovirt-engine-sdk_master_build-artifacts-el7-x86_64/ovirt-engine-sdk/rpmtop/SRPMS/ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.src.rpm
make: *** [rpm] Error 1
Archiving ./ovirt-engine-sdk-python-4.0.0.0.tar.gz
Archiving ./rpmtop/SRPMS/ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.src.rpm
Archiving ./rpmtop/SOURCES/ovirt-engine-sdk-python-4.0.0.0.tar.gz
Took 4 seconds
===================================

Comment 1 Juan Hernández 2015-09-08 08:38:33 UTC
This happens because we try to build Python 3 packages for all the distributions. the solution is to do that only for the distributions that support it.

Comment 3 Red Hat Bugzilla Rules Engine 2015-10-18 08:34:40 UTC
Bug tickets that are moved to testing must have target release set to make sure tester knows what to test. Please set the correct target release before moving to ON_QA.


Note You need to log in before you can comment on or make changes to this bug.