root/build-tools
Scott Little 8744c5f598 Build hangs on macro resolution in spec file
Problem:
Hung on a spec file that contains a seemingly self referential macro ...
   Version: %{_version}

Normally 'Version: x.y.z' has the effect of setting macro %{_version}.
In effect we have 'x=x'.  Not sure how rpm handles this, but we need to
prevent a recursion in our evaluation scripts.

Solution:
1) Test for recursion in spec_evaluate() and fail rather than
entering into a recursion.

2) Record the version from the srpm file name into an environment variable.
If we fail to read the version from the spec file directly, substitute
the one from the environment variable, if defined.

Note: Tripped up on mismatched '`' during testing, so substituted
all occurances with $().  Now a good browser should be able to
highlight an future mismatches.

Story: 2002839
Task: 22778
Change-Id: Ib69f879e531d842ff007d473bd3ad34db46cabf1
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-13 13:52:35 -04:00
..
branching StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build_guest Remove package irqbalance. 2018-08-03 10:14:54 -04:00
build_iso Remove package irqbalance. 2018-08-03 10:14:54 -04:00
build_minimal_iso StarlingX open source release updates 2018-06-01 07:45:23 -07:00
certificates StarlingX open source release updates 2018-06-01 07:45:23 -07:00
mirror_rebase StarlingX open source release updates 2018-06-01 07:45:23 -07:00
mk Uprev grub2 and shim 2018-06-27 13:04:02 -04:00
repo_files Adding comps.xml and mock.proto default files. 2018-07-19 22:45:06 -05:00
signing StarlingX open source release updates 2018-06-01 07:45:23 -07:00
audit-pkgs StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build-guest Move content from stx-utils into stx-integ or stx-update 2018-08-01 16:12:17 -04:00
build-img Shorten "addons/wr-cgcs/layers/cgcs" to just "stx" 2018-07-04 15:12:58 -04:00
build-iso Move content from stx-utils into stx-integ or stx-update 2018-08-01 16:12:17 -04:00
build-pkg-srpm StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build-pkgs StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build-pkgs4 StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build-pkgs-parallel StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build-pkgs-serial StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build-rpms StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build-rpms4 StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build-rpms-parallel Move content from stx-utils into stx-integ or stx-update 2018-08-01 16:12:17 -04:00
build-rpms-serial Move content from stx-utils into stx-integ or stx-update 2018-08-01 16:12:17 -04:00
build-sdk StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build-srpms StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build-srpms4 StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build-srpms-parallel Build hangs on macro resolution in spec file 2018-08-13 13:52:35 -04:00
build-srpms-serial Build hangs on macro resolution in spec file 2018-08-13 13:52:35 -04:00
Cached_Data.txt StarlingX open source release updates 2018-06-01 07:45:23 -07:00
classify StarlingX open source release updates 2018-06-01 07:45:23 -07:00
create_dependancy_cache.py Add third party repo as optional from create_dependancy_cache.py 2018-06-27 09:47:40 -04:00
create-cgcs-centos-repo StarlingX open source release updates 2018-06-01 07:45:23 -07:00
create-cgcs-tis-repo StarlingX open source release updates 2018-06-01 07:45:23 -07:00
create-yum-conf StarlingX open source release updates 2018-06-01 07:45:23 -07:00
default_build_srpm StarlingX open source release updates 2018-06-01 07:45:23 -07:00
find_klm StarlingX open source release updates 2018-06-01 07:45:23 -07:00
find_patched_srpms_needing_upgrade StarlingX open source release updates 2018-06-01 07:45:23 -07:00
ip_report.py StarlingX open source release updates 2018-06-01 07:45:23 -07:00
make-installer-images.sh StarlingX open source release updates 2018-06-01 07:45:23 -07:00
mock_cfg_to_yum_conf.py StarlingX open source release updates 2018-06-01 07:45:23 -07:00
mockchain-parallel StarlingX open source release updates 2018-06-01 07:45:23 -07:00
modify-build-cfg Shorten "addons/wr-cgcs/layers/cgcs" to just "stx" 2018-07-04 15:12:58 -04:00
patch_rebase_1 Shorten "addons/wr-cgcs/layers/cgcs" to just "stx" 2018-07-04 15:12:58 -04:00
patch_rebase_2 Shorten "addons/wr-cgcs/layers/cgcs" to just "stx" 2018-07-04 15:12:58 -04:00
patch_rebase_3 Shorten "addons/wr-cgcs/layers/cgcs" to just "stx" 2018-07-04 15:12:58 -04:00
patch_rebase_4 Shorten "addons/wr-cgcs/layers/cgcs" to just "stx" 2018-07-04 15:12:58 -04:00
patch-iso Move content from stx-utils into stx-integ or stx-update 2018-08-01 16:12:17 -04:00
sign_iso_formal.sh StarlingX open source release updates 2018-06-01 07:45:23 -07:00
sign_patch_formal.sh StarlingX open source release updates 2018-06-01 07:45:23 -07:00
sign-rpms StarlingX open source release updates 2018-06-01 07:45:23 -07:00
sign-secure-boot Uprev grub2 and shim 2018-06-27 13:04:02 -04:00
source_lookup.txt StarlingX open source release updates 2018-06-01 07:45:23 -07:00
spec-utils Build hangs on macro resolution in spec file 2018-08-13 13:52:35 -04:00
srpm-utils Build hangs on macro resolution in spec file 2018-08-13 13:52:35 -04:00
sync_jenkins.sh StarlingX open source release updates 2018-06-01 07:45:23 -07:00
sync-jenkins StarlingX open source release updates 2018-06-01 07:45:23 -07:00
tis.macros StarlingX open source release updates 2018-06-01 07:45:23 -07:00
update-efiboot-image Rename mwa-* subdirectories to match the git repo name 2018-07-04 13:17:17 -04:00
update-pxe-network-installer StarlingX open source release updates 2018-06-01 07:45:23 -07:00
wrs_orig.txt StarlingX open source release updates 2018-06-01 07:45:23 -07:00