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/rpkg-macros.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-810982-28291/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/rpkg-macros.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 Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1674172800 Wrote: /builddir/build/SRPMS/rpkg-macros-2.0-5.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/rpkg-macros.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-810982-28291/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/rpkg-macros.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 Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1674172800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4vzBRt + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rpkg-util-macros + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/rpkg-util-macros-28034317.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd rpkg-util-macros + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Xs7ulD + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rpkg-macros-2.0-5.fc38.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rpkg-macros-2.0-5.fc38.noarch ++ dirname /builddir/build/BUILDROOT/rpkg-macros-2.0-5.fc38.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rpkg-macros-2.0-5.fc38.noarch + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd rpkg-util-macros + install -d /builddir/build/BUILDROOT/rpkg-macros-2.0-5.fc38.noarch/usr/lib + install -d /builddir/build/BUILDROOT/rpkg-macros-2.0-5.fc38.noarch/usr/lib/rpkg.macros.d + cp -ar macros.d/all.bash macros.d/git.bash macros.d/helpers macros.d/library /builddir/build/BUILDROOT/rpkg-macros-2.0-5.fc38.noarch/usr/lib/rpkg.macros.d + install -d /builddir/build/BUILDROOT/rpkg-macros-2.0-5.fc38.noarch/usr/bin + install -p -m 755 bin/pack_sources /builddir/build/BUILDROOT/rpkg-macros-2.0-5.fc38.noarch/usr/bin/pack_sources + install -d /builddir/build/BUILDROOT/rpkg-macros-2.0-5.fc38.noarch/usr/share/man/man1 + install -p -m 644 man/rpkg-macros.1 /builddir/build/BUILDROOT/rpkg-macros-2.0-5.fc38.noarch//usr/share/man/man1/ + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 2.0-5.fc38 --unique-debug-suffix -2.0-5.fc38.noarch --unique-debug-src-base rpkg-macros-2.0-5.fc38.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/rpkg-util-macros find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs mangling shebang in /usr/bin/pack_sources from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_head_short from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_remote_url from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_remote from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_status from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_head from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_submodule_refs from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_root from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_branch from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_merged_tag_refs from /bin/bash to #!/usr/bin/bash + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.tlTJpZ + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd rpkg-util-macros + PATH=bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + tests/run ====================== test_bash ====================== hint: Using 'master' as the name for the initial branch. This default branch name hint: is subject to change. To configure the initial branch name to use in all hint: of your new repositories, which will suppress this warning, call: hint: hint: git config --global init.defaultBranch hint: hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and hint: 'development'. The just-created branch can be renamed via this command: hint: hint: git branch -m Initialized empty Git repository in /tmp/tmp.Iek3I6tp2M/.git/ > cat /tmp/tmp.Iek3I6tp2M/input | preproc -C /tmp/tmp.Iek3I6tp2M -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.Iek3I6tp2M' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.iygWn8SmBd/output | log_filter > /tmp/tmp.iygWn8SmBd/log > diff /tmp/tmp.rD7MdlNpwr/output /tmp/tmp.iygWn8SmBd/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.iygWn8SmBd/log && die; } > diff log /tmp/tmp.iygWn8SmBd/log || die success. ====================== test_committed ====================== hint: Using 'master' as the name for the initial branch. This default branch name hint: is subject to change. To configure the initial branch name to use in all hint: of your new repositories, which will suppress this warning, call: hint: hint: git config --global init.defaultBranch hint: hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and hint: 'development'. The just-created branch can be renamed via this command: hint: hint: git branch -m Initialized empty Git repository in /tmp/tmp.v1CAAInwHM/.git/ [master (root-commit) 2b3ea83] commit 1 1 file changed, 117 insertions(+) create mode 100644 input [master 1e0fad7] commit 2 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 foo/file [master d41cfea] commit 3 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 bar/file > cat /tmp/tmp.v1CAAInwHM/input | preproc -C /tmp/tmp.v1CAAInwHM -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.v1CAAInwHM' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.nYz42vGLgF/output | log_filter > /tmp/tmp.nYz42vGLgF/log > diff /tmp/tmp.B1gJ34cGAN/output /tmp/tmp.nYz42vGLgF/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.nYz42vGLgF/log && die; } > diff log /tmp/tmp.nYz42vGLgF/log || die success. ====================== test_dirty ====================== hint: Using 'master' as the name for the initial branch. This default branch name hint: is subject to change. To configure the initial branch name to use in all hint: of your new repositories, which will suppress this warning, call: hint: hint: git config --global init.defaultBranch hint: hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and hint: 'development'. The just-created branch can be renamed via this command: hint: hint: git branch -m Initialized empty Git repository in /tmp/tmp.AmT0yItVR5/.git/ [master (root-commit) ac8763c] inital_commit 2 files changed, 117 insertions(+) create mode 100644 foo/file create mode 100644 input > cat /tmp/tmp.AmT0yItVR5/input | preproc -C /tmp/tmp.AmT0yItVR5 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.AmT0yItVR5' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.XWktG27vBn/output | log_filter > /tmp/tmp.XWktG27vBn/log > diff /tmp/tmp.VWBoZdzKVW/output /tmp/tmp.XWktG27vBn/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.XWktG27vBn/log && die; } > diff log /tmp/tmp.XWktG27vBn/log || die success. ====================== test_fn_bumped_version ====================== > cat /tmp/tmp.uBbqV0H2Db/input | preproc -C /tmp/tmp.uBbqV0H2Db -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.uBbqV0H2Db' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.ahRmVgTlJh/output | log_filter > /tmp/tmp.ahRmVgTlJh/log > diff /tmp/tmp.WLBSz2RMWp/output /tmp/tmp.ahRmVgTlJh/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.ahRmVgTlJh/log && die; } > diff log /tmp/tmp.ahRmVgTlJh/log || die success. ====================== test_fn_git_prefix ====================== hint: Using 'master' as the name for the initial branch. This default branch name hint: is subject to change. To configure the initial branch name to use in all hint: of your new repositories, which will suppress this warning, call: hint: hint: git config --global init.defaultBranch hint: hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and hint: 'development'. The just-created branch can be renamed via this command: hint: hint: git branch -m Initialized empty Git repository in /tmp/tmp.XVdw546pTE/.git/ [master (root-commit) 28efb8a] add subdir with file 2 files changed, 6 insertions(+) create mode 100644 input create mode 100644 subdir/file Cloning into '/tmp/tmp.XVdw546pTE/submodule'... fatal: transport 'file' not allowed fatal: clone of '/tmp/tmp.XVdw546pTE' into submodule path '/tmp/tmp.XVdw546pTE/submodule' failed On branch master nothing to commit, working tree clean > cat /tmp/tmp.XVdw546pTE/input | preproc -C /tmp/tmp.XVdw546pTE -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.XVdw546pTE' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.TMjSGtblkX/output | log_filter > /tmp/tmp.TMjSGtblkX/log > diff /tmp/tmp.ENynmAE8xv/output /tmp/tmp.TMjSGtblkX/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.TMjSGtblkX/log && die; } 4,6c4,6 < git_prefix "$GIT_ROOT"/submodule: submodule < git_prefix "$GIT_ROOT"/submodule/subdir: submodule/subdir < git_prefix "$GIT_ROOT"/submodule/subdir/: submodule/subdir --- > git_prefix "$GIT_ROOT"/submodule: > git_prefix "$GIT_ROOT"/submodule/subdir: > git_prefix "$GIT_ROOT"/submodule/subdir/: LOG DIFF: 7a8,10 > /builddir/build/BUILD/rpkg-util-macros/macros.d/helpers/git_root: line 9: cd: /tmp/tmp.XVdw546pTE/submodule: No such file or directory > fatal: cannot change to '/tmp/tmp.XVdw546pTE/submodule': No such file or directory > git_prefix "$GIT_ROOT"/submodule failed with value 128. 9a13,15 > /builddir/build/BUILD/rpkg-util-macros/macros.d/helpers/git_root: line 9: cd: /tmp/tmp.XVdw546pTE/submodule/subdir: No such file or directory > fatal: cannot change to '/tmp/tmp.XVdw546pTE/submodule/subdir': No such file or directory > git_prefix "$GIT_ROOT"/submodule/subdir failed with value 128. 11a18,20 > /builddir/build/BUILD/rpkg-util-macros/macros.d/helpers/git_root: line 9: cd: /tmp/tmp.XVdw546pTE/submodule/subdir/: No such file or directory > fatal: cannot change to '/tmp/tmp.XVdw546pTE/submodule/subdir/': No such file or directory > git_prefix "$GIT_ROOT"/submodule/subdir/ failed with value 128. > diff log /tmp/tmp.TMjSGtblkX/log || die 7a8,10 > /builddir/build/BUILD/rpkg-util-macros/macros.d/helpers/git_root: line 9: cd: /tmp/tmp.XVdw546pTE/submodule: No such file or directory > fatal: cannot change to '/tmp/tmp.XVdw546pTE/submodule': No such file or directory > git_prefix "$GIT_ROOT"/submodule failed with value 128. 9a13,15 > /builddir/build/BUILD/rpkg-util-macros/macros.d/helpers/git_root: line 9: cd: /tmp/tmp.XVdw546pTE/submodule/subdir: No such file or directory > fatal: cannot change to '/tmp/tmp.XVdw546pTE/submodule/subdir': No such file or directory > git_prefix "$GIT_ROOT"/submodule/subdir failed with value 128. 11a18,20 > /builddir/build/BUILD/rpkg-util-macros/macros.d/helpers/git_root: line 9: cd: /tmp/tmp.XVdw546pTE/submodule/subdir/: No such file or directory > fatal: cannot change to '/tmp/tmp.XVdw546pTE/submodule/subdir/': No such file or directory > git_prefix "$GIT_ROOT"/submodule/subdir/ failed with value 128. fail. error: Bad exit status from /var/tmp/rpm-tmp.tlTJpZ (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.tlTJpZ (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/rpkg-macros.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/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 -bb --noclean --target noarch --nodeps /builddir/build/SPECS/rpkg-macros.spec