Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/grafana.spec'], chrootPath='/var/lib/mock/dist-an23-build-278004-64428/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/grafana.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False error: /builddir/build/SPECS/grafana.spec: line 18: Too many levels of recursion in macro expansion. It is likely caused by recursive macro declaration. 63< (%gotestflags) 62< (%gotestflags) 61< (%gotestflags) 60< (%gotestflags) 59< (%gotestflags) 58< (%gotestflags) 57< (%gotestflags) 56< (%gotestflags) 55< (%gotestflags) 54< (%gotestflags) 53< (%gotestflags) 52< (%gotestflags) 51< (%gotestflags) 50< (%gotestflags) 49< (%gotestflags) 48< (%gotestflags) 47< (%gotestflags) 46< (%gotestflags) 45< (%gotestflags) 44< (%gotestflags) 43< (%gotestflags) 42< (%gotestflags) 41< (%gotestflags) 40< (%gotestflags) 39< (%gotestflags) 38< (%gotestflags) 37< (%gotestflags) 36< (%gotestflags) 35< (%gotestflags) 34< (%gotestflags) 33< (%gotestflags) 32< (%gotestflags) 31< (%gotestflags) 30< (%gotestflags) 29< (%gotestflags) 28< (%gotestflags) 27< (%gotestflags) 26< (%gotestflags) 25< (%gotestflags) 24< (%gotestflags) 23< (%gotestflags) 22< (%gotestflags) 21< (%gotestflags) 20< (%gotestflags) 19< (%gotestflags) 18< (%gotestflags) 17< (%gotestflags) 16< (%gotestflags) 15< (%gotestflags) 14< (%gotestflags) 13< (%gotestflags) 12< (%gotestflags) 11< (%gotestflags) 10< (%gotestflags) 9< (%gotestflags) 8< (%gotestflags) 7< (%gotestflags) 6< (%gotestflags) 5< (%gotestflags) 4< (%gotestflags) 3< (%gotestflags) 2< (%gotestflags) 1< (%gotestflags) error: /builddir/build/SPECS/grafana.spec: line 18: Macro %gotestflags failed to expand 0< (%global) Building target platforms: noarch Building for target noarch Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/grafana.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/grafana.spec