[Starlingx-discuss] Problems building on master

Penney, Don Don.Penney at windriver.com
Wed Oct 24 18:38:00 UTC 2018

I think you meant this update:

I don’t understand why you’d be seeing an issue, though. It built fine in my environment, and it shouldn’t impact any %if in the spec

From: Martinez Landa, Hayde [mailto:hayde.martinez.landa at intel.com]
Sent: Wednesday, October 24, 2018 2:31 PM
To: starlingx-discuss at lists.starlingx.io
Subject: [Starlingx-discuss] Problems building on master

While trying to build on master I encountered the following issue:

17:09:42 b4: patching file SPECS/libvirt-python.spec
17:09:42 b4: ‘/localdisk/designer/haydemtzl/starlingx/cgcs-root/stx/stx-integ/virt/libvirt-python/centos/patches/0001-Fix-setup-import-to-support-building-wheel.patch’ -> ‘/localdisk/loadbuild/haydemtzl/starlingx/std/srpm_assemble/libvirt-python/rpmbuild/SOURCES/./0001-Fix-setup-import-to-support-building-wheel.patch’
17:09:42 b4: SPEC file: /localdisk/loadbuild/haydemtzl/starlingx/std/srpm_assemble/libvirt-python/rpmbuild/SPECS/libvirt-python.spec
17:09:42 b4: SRPM build directory: /localdisk/loadbuild/haydemtzl/starlingx/std/srpm_assemble/libvirt-python/rpmbuild
17:09:42 b4: TIS_PATCH_VER: 2
17:09:42 b4: error: parse error in expression
17:09:42 b4: error: /localdisk/loadbuild/haydemtzl/starlingx/std/srpm_assemble/libvirt-python/rpmbuild/SPECS/libvirt-python.spec:131: bad %if condition
17:09:42 b4: ERROR: srpm_assemble (1296): rpmbuild failed: rpmbuild -bs /localdisk/loadbuild/haydemtzl/starlingx/std/srpm_assemble/libvirt-python/rpmbuild/SPECS/libvirt-python.spec --define='%_topdir /localdisk/loadbuild/haydemtzl/starlingx/std/srpm_assemble/libvirt-python/rpmbuild' --define='_tis_dist .tis' --undefine=dist
17:09:42 b4: ERROR: build_dir_srpm (802): failed to assemble srpm for 'libvirt-python-4.7.0-1.fc28'
17:09:42 ERROR: reaper (1302): Failed to build src.rpm from source at 'b4'

######## Wed Oct 24 17:09:42 UTC 2018: build-srpm-parallel --std failed with rc=1

Wed Oct 24 17:09:42 UTC 2018: build-srpm-parallel --std failed with rc=1

Whit the help of Erich for debugging this,
We think it come from this change [0] that affects the specific line mentioned on the error above:

[0] https://review.openstack.org/#/c/612519/

I was able to reproduce this in 3 diff environments, including our Jenkins automation setup.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20181024/52f69d52/attachment.html>

More information about the Starlingx-discuss mailing list