Mock Version: 1.4.16 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/prometheus.spec'], chrootPath='/var/lib/mock/1030970-epel-7-x86_64-1568077302.091631/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': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bqscnw2c:/etc/resolv.conf']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bqscnw2c:/etc/resolv.conf'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '6a9f4ec88512402b9b4901b1ecfc0472', '-D', '/var/lib/mock/1030970-epel-7-x86_64-1568077302.091631/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bqscnw2c:/etc/resolv.conf', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/prometheus.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': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/prometheus-2.7.2-3.el7.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/prometheus.spec'], chrootPath='/var/lib/mock/1030970-epel-7-x86_64-1568077302.091631/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': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bqscnw2c:/etc/resolv.conf']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bqscnw2c:/etc/resolv.conf'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'b3fea25a99b9488b9657ec5d8630bc85', '-D', '/var/lib/mock/1030970-epel-7-x86_64-1568077302.091631/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bqscnw2c:/etc/resolv.conf', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/prometheus.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': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.nq79vq + umask 022 + cd /builddir/build/BUILD + rm -rf PROMETHEUS + mkdir -p PROMETHEUS/src/github.com/prometheus/prometheus + tar zxf /builddir/build/SOURCES/4e8cd4c6af4c8833544f800ea995777084dee2bf.tar.gz -C PROMETHEUS/src/github.com/prometheus/prometheus --strip=1 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.R9gRno + umask 022 + cd /builddir/build/BUILD + cd PROMETHEUS BUILDSTDERR: ++ pwd + export GOPATH=/builddir/build/BUILD/PROMETHEUS:/usr/share/gocode + GOPATH=/builddir/build/BUILD/PROMETHEUS:/usr/share/gocode + cd src/github.com/prometheus/prometheus BUILDSTDERR: ++ which promu + PROMU=/usr/bin/promu + make -e build >> building binaries GO111MODULE=on /usr/bin/promu build --prefix /builddir/build/BUILD/PROMETHEUS/src/github.com/prometheus/prometheus > prometheus > promtool + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.XQGrLv + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64 + rm -rf /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64 + mkdir -p /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/usr/bin + mkdir -p /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/usr/share/prometheus/console_libraries/ + mkdir -p /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/usr/share/prometheus/consoles/ + mkdir -p /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/etc/prometheus/ + binaries=(prometheus promtool) + cd PROMETHEUS/src/github.com/prometheus/prometheus + mkdir stripped + touch keep_symbols + for i in '"${binaries[@]}"' + echo 'Dumping dynamic symbols for prometheus' Dumping dynamic symbols for prometheus + nm -D prometheus --format=posix --defined-only + sort + awk '{ print $1 }' BUILDSTDERR: nm: prometheus: no symbols + echo 'Dumping function symbols for prometheus' Dumping function symbols for prometheus + nm prometheus --format=posix --defined-only + sort + awk '{ if ($2 == "T" || $2 == "t" || $2 == "D") print $1 }' Grabbing other function symbols from prometheus + echo 'Grabbing other function symbols from prometheus' + comm -13 dynsyms funcsyms remove unnecessary debug info from prometheus + COMPRESSED_NAME=prometheus_debuginfo + '[' -s keep_symbols ']' + echo 'remove unnecessary debug info from prometheus' + objcopy -S --remove-section .gdb_index --remove-section .comment --keep-symbols=keep_symbols prometheus prometheus_debuginfo stripping: prometheus + echo 'stripping: prometheus' + strip -o stripped/prometheus -s prometheus compress debugdata for prometheus into prometheus_debuginfo.xz + '[' -f prometheus_debuginfo ']' + echo 'compress debugdata for prometheus into prometheus_debuginfo.xz' + xz prometheus_debuginfo + echo 'inject compressed data into .gnu_debugdata for prometheus' inject compressed data into .gnu_debugdata for prometheus + objcopy --add-section .gnu_debugdata=prometheus_debuginfo.xz stripped/prometheus + cp -pav stripped/prometheus /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/usr/bin/ 'stripped/prometheus' -> '/builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/usr/bin/prometheus' + for i in '"${binaries[@]}"' + echo 'Dumping dynamic symbols for promtool' Dumping dynamic symbols for promtool + awk '{ print $1 }' + nm -D promtool --format=posix --defined-only BUILDSTDERR: nm: promtool: no symbols + sort + echo 'Dumping function symbols for promtool' Dumping function symbols for promtool + nm promtool --format=posix --defined-only + sort + awk '{ if ($2 == "T" || $2 == "t" || $2 == "D") print $1 }' + echo 'Grabbing other function symbols from promtool' Grabbing other function symbols from promtool + comm -13 dynsyms funcsyms + COMPRESSED_NAME=promtool_debuginfo + '[' -s keep_symbols ']' + echo 'remove unnecessary debug info from promtool' remove unnecessary debug info from promtool + objcopy -S --remove-section .gdb_index --remove-section .comment --keep-symbols=keep_symbols promtool promtool_debuginfo + echo 'stripping: promtool' stripping: promtool + strip -o stripped/promtool -s promtool + '[' -f promtool_debuginfo ']' + echo 'compress debugdata for promtool into promtool_debuginfo.xz' compress debugdata for promtool into promtool_debuginfo.xz + xz promtool_debuginfo + echo 'inject compressed data into .gnu_debugdata for promtool' inject compressed data into .gnu_debugdata for promtool + objcopy --add-section .gnu_debugdata=promtool_debuginfo.xz stripped/promtool + cp -pav stripped/promtool /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/usr/bin/ 'stripped/promtool' -> '/builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/usr/bin/promtool' + cp -a console_libraries/ /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/usr/share/prometheus + ln -sf /usr/share/prometheus/console_libraries/ /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/etc/prometheus/ + cp -a consoles/ /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/usr/share/prometheus/ + ln -sf /usr/share/prometheus/consoles/ /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/etc/prometheus/ + cp -a documentation/examples/prometheus.yml /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/etc/prometheus/prometheus.yml + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip /usr/bin/strip + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: prometheus-2.7.2-3.el7.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.l5KDRq + umask 022 + cd /builddir/build/BUILD + DOCDIR=/builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/usr/share/doc/prometheus-2.7.2 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/usr/share/doc/prometheus-2.7.2 + cp -pr PROMETHEUS/src/github.com/prometheus/prometheus/README.md /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/usr/share/doc/prometheus-2.7.2 + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.5quOZl + umask 022 + cd /builddir/build/BUILD + LICENSEDIR=/builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/usr/share/licenses/prometheus-2.7.2 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/usr/share/licenses/prometheus-2.7.2 + cp -pr PROMETHEUS/src/github.com/prometheus/prometheus/LICENSE /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64/usr/share/licenses/prometheus-2.7.2 + exit 0 Provides: config(prometheus) = 2.7.2-3.el7 prometheus = 2.7.2-3.el7 prometheus(x86-64) = 2.7.2-3.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64 Wrote: /builddir/build/RPMS/prometheus-2.7.2-3.el7.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.Tp0UZb + umask 022 + cd /builddir/build/BUILD + /usr/bin/rm -rf /builddir/build/BUILDROOT/prometheus-2.7.2-3.el7.x86_64 + exit 0 Child return code was: 0